stm32/extint: Fix RTC Alarm/FS USB EXTI constants for L4.

This commit is contained in:
Dave Hylands 2019-02-14 09:42:44 -08:00 committed by Damien George
parent 363900be5d
commit 9441f4b682
2 changed files with 10 additions and 0 deletions

View File

@ -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,

View File

@ -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)