diff options
| author | Ha Thach <[email protected]> | 2025-10-09 22:13:31 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-09 22:13:31 +0700 |
| commit | 8f2e3ed4418a08cc13aee4527b7bdd1b8bb1bf55 (patch) | |
| tree | c8e710628581c79bd96edfe8dd8037743128ffaa /src/portable | |
| parent | 0fab57b8c192615a019ac232229bf0e1d6b09c40 (diff) | |
| parent | a97da37424f5864a58c273037c7bd92312d81fb7 (diff) | |
Merge pull request #3292 from tangpipi/fix_at32_remap
at32_fsdev: Fix dcd_int_enable when remapping the USB interrupt
Diffstat (limited to 'src/portable')
| -rw-r--r-- | src/portable/st/stm32_fsdev/fsdev_at32.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/portable/st/stm32_fsdev/fsdev_at32.h b/src/portable/st/stm32_fsdev/fsdev_at32.h index f7ee89995..deb1de2a8 100644 --- a/src/portable/st/stm32_fsdev/fsdev_at32.h +++ b/src/portable/st/stm32_fsdev/fsdev_at32.h @@ -175,9 +175,9 @@ void dcd_int_enable(uint8_t rhport) { // shared USB/CAN IRQs to separate CAN and USB IRQs. // This dynamically checks if this remap is active to enable the right IRQs. if (CRM->intmap_bit.usbintmap) { - NVIC_DisableIRQ(USBFS_MAPH_IRQn); - NVIC_DisableIRQ(USBFS_MAPL_IRQn); - NVIC_DisableIRQ(USBFSWakeUp_IRQn); + NVIC_EnableIRQ(USBFS_MAPH_IRQn); + NVIC_EnableIRQ(USBFS_MAPL_IRQn); + NVIC_EnableIRQ(USBFSWakeUp_IRQn); } else #endif { |
