We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 89c31c7 + 80d8bda commit 573e9dbCopy full SHA for 573e9db
1 file changed
drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_hcd.c
@@ -532,8 +532,11 @@ void HAL_HCD_IRQHandler(HCD_HandleTypeDef *hhcd)
532
(void)USB_FlushTxFifo(USBx, 0x10U);
533
(void)USB_FlushRxFifo(USBx);
534
535
- /* Restore FS Clock */
536
- (void)USB_InitFSLSPClkSel(hhcd->Instance, HCFG_48_MHZ);
+ if (hhcd->Init.phy_itface == USB_OTG_EMBEDDED_PHY)
+ {
537
+ /* Restore FS Clock */
538
+ (void)USB_InitFSLSPClkSel(hhcd->Instance, HCFG_48_MHZ);
539
+ }
540
541
/* Handle Host Port Disconnect Interrupt */
542
#if (USE_HAL_HCD_REGISTER_CALLBACKS == 1U)
0 commit comments