STM32: fix USB HOST HS when cpu is in sleep mode
This commit is contained in:
parent
c7d33767e0
commit
546ac1d584
|
@ -1361,7 +1361,8 @@ static void _usbh_start(USBHDriver *usbh) {
|
|||
if (&USBHD2 == usbh) {
|
||||
#endif
|
||||
/* OTG HS clock enable and reset.*/
|
||||
rccEnableOTG_HS(FALSE);
|
||||
rccEnableOTG_HS(TRUE); // Enable HS clock when cpu is in sleep mode
|
||||
rccDisableOTG_HSULPI(TRUE); // Disable HS ULPI clock when cpu is in sleep mode
|
||||
rccResetOTG_HS();
|
||||
|
||||
otgp->GINTMSK = 0;
|
||||
|
|
Loading…
Reference in New Issue