diff options
-rw-r--r-- | ports/stm32/extint.c | 5 | ||||
-rw-r--r-- | ports/stm32/extint.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/ports/stm32/extint.c b/ports/stm32/extint.c index cdfa1a1e1..c67caeb79 100644 --- a/ports/stm32/extint.c +++ b/ports/stm32/extint.c @@ -154,8 +154,13 @@ STATIC const uint8_t nvic_irq_channel[EXTI_NUM_VECTORS] = { #else PVD_IRQn, #endif + #if defined(STM32L4) + OTG_FS_WKUP_IRQn, + RTC_Alarm_IRQn, + #else RTC_Alarm_IRQn, OTG_FS_WKUP_IRQn, + #endif ETH_WKUP_IRQn, OTG_HS_WKUP_IRQn, TAMP_STAMP_IRQn, diff --git a/ports/stm32/extint.h b/ports/stm32/extint.h index 924b48a8b..abe959712 100644 --- a/ports/stm32/extint.h +++ b/ports/stm32/extint.h @@ -34,8 +34,13 @@ // Use the following constants for the internal sources: #define EXTI_PVD_OUTPUT (16) +#if defined(STM32L4) +#define EXTI_RTC_ALARM (18) +#define EXTI_USB_OTG_FS_WAKEUP (17) +#else #define EXTI_RTC_ALARM (17) #define EXTI_USB_OTG_FS_WAKEUP (18) +#endif #define EXTI_ETH_WAKEUP (19) #define EXTI_USB_OTG_HS_WAKEUP (20) #if defined(STM32F0) || defined(STM32L4) |