Skip to content

Commit a97da37

Browse files
authored
Fix dcd_int_enable when remapping the USB interrupt
1 parent 20c8e92 commit a97da37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/portable/st/stm32_fsdev/fsdev_at32.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ void dcd_int_enable(uint8_t rhport) {
175175
// shared USB/CAN IRQs to separate CAN and USB IRQs.
176176
// This dynamically checks if this remap is active to enable the right IRQs.
177177
if (CRM->intmap_bit.usbintmap) {
178-
NVIC_DisableIRQ(USBFS_MAPH_IRQn);
179-
NVIC_DisableIRQ(USBFS_MAPL_IRQn);
180-
NVIC_DisableIRQ(USBFSWakeUp_IRQn);
178+
NVIC_EnableIRQ(USBFS_MAPH_IRQn);
179+
NVIC_EnableIRQ(USBFS_MAPL_IRQn);
180+
NVIC_EnableIRQ(USBFSWakeUp_IRQn);
181181
} else
182182
#endif
183183
{

0 commit comments

Comments
 (0)