File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -247,6 +247,14 @@ void USBPhyHw::init(USBPhyEvents *events)
247
247
hpcd.Init .use_external_vbus = DISABLE;
248
248
249
249
__HAL_RCC_USB_OTG_HS_CLK_ENABLE ();
250
+
251
+ #ifdef __HAL_RCC_USB1_OTG_FS_ULPI_CLK_SLEEP_DISABLE
252
+ __HAL_RCC_USB1_OTG_FS_ULPI_CLK_SLEEP_DISABLE ();
253
+ #endif
254
+ #ifdef __HAL_RCC_USB2_OTG_FS_ULPI_CLK_SLEEP_DISABLE
255
+ __HAL_RCC_USB2_OTG_FS_ULPI_CLK_SLEEP_DISABLE ();
256
+ #endif
257
+
250
258
map = PinMap_USB_HS;
251
259
252
260
#elif (MBED_CONF_TARGET_USB_SPEED == USE_USB_OTG_FS)
@@ -256,6 +264,14 @@ void USBPhyHw::init(USBPhyEvents *events)
256
264
hpcd.Init .speed = PCD_SPEED_FULL;
257
265
258
266
__HAL_RCC_USB_OTG_FS_CLK_ENABLE ();
267
+
268
+ #ifdef __HAL_RCC_USB1_OTG_FS_ULPI_CLK_SLEEP_DISABLE
269
+ __HAL_RCC_USB1_OTG_FS_ULPI_CLK_SLEEP_DISABLE ();
270
+ #endif
271
+ #ifdef __HAL_RCC_USB2_OTG_FS_ULPI_CLK_SLEEP_DISABLE
272
+ __HAL_RCC_USB2_OTG_FS_ULPI_CLK_SLEEP_DISABLE ();
273
+ #endif
274
+
259
275
map = PinMap_USB_FS;
260
276
261
277
#elif (MBED_CONF_TARGET_USB_SPEED == USE_USB_NO_OTG)
You can’t perform that action at this time.
0 commit comments