STM32: fix USB HOST HS when cpu is in sleep mode

This commit is contained in:
Nicolas Reinecke 2016-12-05 01:37:32 +01:00
parent c7d33767e0
commit 546ac1d584
1 changed files with 2 additions and 1 deletions

View File

@ -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;