stm32h7: Ensure FS (and the only) PHY is selected for OTG_HS2.

This commit is contained in:
William D. Jones 2019-08-30 22:07:35 -04:00
parent 7153561984
commit 8b165e1024
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ void dcd_init (uint8_t rhport)
// No HNP/SRP (no OTG support), program timeout later, turnaround
// programmed for 32+ MHz.
USB2_OTG_FS->GUSBCFG |= (0x06 << USB_OTG_GUSBCFG_TRDT_Pos);
USB2_OTG_FS->GUSBCFG |= (0x06 << USB_OTG_GUSBCFG_TRDT_Pos) | USB_OTG_GUSBCFG_PHYSEL;
// Clear all used interrupts
USB2_OTG_FS->GINTSTS |= USB_OTG_GINTSTS_OTGINT | USB_OTG_GINTSTS_MMIS | \