[LL][USB] Fix added to USB_ClearInterrupts(), should write 1 to clear the interrupt status bits of OTG_FS_GINTSTS register Signed-off-by: Aymen Bouattay <aymen.bouattay@st.com>
diff --git a/Src/stm32f7xx_ll_usb.c b/Src/stm32f7xx_ll_usb.c index e7a2536..2a575a9 100644 --- a/Src/stm32f7xx_ll_usb.c +++ b/Src/stm32f7xx_ll_usb.c
@@ -1425,7 +1425,7 @@ */ void USB_ClearInterrupts(USB_OTG_GlobalTypeDef *USBx, uint32_t interrupt) { - USBx->GINTSTS |= interrupt; + USBx->GINTSTS &= interrupt; } /** @@ -2156,6 +2156,10 @@ USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHENA; } } + else + { + USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHENA; + } } else {