summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrAgiu <[email protected]>2023-03-14 23:17:54 +0800
committersakumisu <[email protected]>2023-03-15 21:42:34 +0800
commit19d509052a01f52a76653fcbccba37dc61743b7c (patch)
tree5ec4d02a8d5a4b8812270e5b2ecf68a9b81d3c67
parentbb8cfe23dee8a1855236d9f8ccf7eaa2d83d8e1d (diff)
fix STM32L4 dwc2 Deactivate VBUS Sensing
-rw-r--r--port/dwc2/usb_dc_dwc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/port/dwc2/usb_dc_dwc2.c b/port/dwc2/usb_dc_dwc2.c
index 3fc53f78..b06e9e6f 100644
--- a/port/dwc2/usb_dc_dwc2.c
+++ b/port/dwc2/usb_dc_dwc2.c
@@ -553,7 +553,7 @@ int usb_dc_init(void)
USB_OTG_GLB->DIEPTXF[i] = 0U;
}
-#if defined(STM32F7) || defined(STM32H7)
+#if defined(STM32F7) || defined(STM32H7) ||defined(STM32L4)
#ifdef CONFIG_DWC2_VBUS_SENSING_ENABLE
/* Enable HW VBUS sensing */
USB_OTG_GLB->GCCFG |= USB_OTG_GCCFG_VBDEN;