Skip to content

Commit 6bdbea4

Browse files
[USB] Enable VBUS sensing for OTG_FS
Previously, this was enabled only for OTG_HS, for some reason. This probably needs to be more configurable by board, but this is enough to for the specific board we are working with now. See stm32duino#886
1 parent 19c461b commit 6bdbea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/stm32/usb/usbd_conf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ USBD_StatusTypeDef USBD_LL_Init(USBD_HandleTypeDef *pdev)
486486
g_hpcd.Instance = USB_OTG_FS;
487487
g_hpcd.Init.use_dedicated_ep1 = DISABLE;
488488
g_hpcd.Init.dma_enable = DISABLE;
489-
g_hpcd.Init.vbus_sensing_enable = DISABLE;
489+
g_hpcd.Init.vbus_sensing_enable = ENABLE;
490490
g_hpcd.Init.use_external_vbus = DISABLE;
491491
#else
492492
g_hpcd.Instance = USB;

0 commit comments

Comments
 (0)