diff options
author | Dave Hylands <dhylands@gmail.com> | 2019-02-14 09:42:44 -0800 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-02-19 15:17:28 +1100 |
commit | 9441f4b682b29b0a03e68e5e57567a81ce05afa7 (patch) | |
tree | abb47af0eced9c88ae50bcecfd06c49c9765259e | |
parent | 363900be5d964479a345f5e07da769330734886d (diff) |
stm32/extint: Fix RTC Alarm/FS USB EXTI constants for L4.
-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) |