Skip to content

Commit 8f2e3ed

Browse files
authored
Merge pull request #3292 from tangpipi/fix_at32_remap
at32_fsdev: Fix dcd_int_enable when remapping the USB interrupt
2 parents 0fab57b + a97da37 commit 8f2e3ed

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)