8000 stm32/extint: Fix RTC Alarm/FS USB EXTI constants for L4. · lolsborn/micropython@9441f4b · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit 9441f4b

Browse files
dhylandsdpgeorge
authored andcommitted
stm32/extint: Fix RTC Alarm/FS USB EXTI constants for L4.
1 parent 363900b commit 9441f4b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

ports/stm32/extint.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,13 @@ STATIC const uint8_t nvic_irq_channel[EXTI_NUM_VECTORS] = {
154154
#else
155155
PVD_IRQn,
156156
#endif
157+
#if defined(STM32L4)
158+
OTG_FS_WKUP_IRQn,
159+
RTC_Alarm_IRQn,
160+
#else
157161
RTC_Alarm_IRQn,
158162
OTG_FS_WKUP_IRQn,
163+
#endif
159164
ETH_WKUP_IRQn,
160165
OTG_HS_WKUP_IRQn,
161166
TAMP_STAMP_IRQn,

ports/stm32/extint.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,13 @@
3434
// Use the following constants for the internal sources:
3535

3636
#define EXTI_PVD_OUTPUT (16)
37+
#if defined(STM32L4)
38+
#define EXTI_RTC_ALARM (18)
39+
#define EXTI_USB_OTG_FS_WAKEUP (17)
40+
#else
3741
#define EXTI_RTC_ALARM (17)
3842
#define EXTI_USB_OTG_FS_WAKEUP (18)
43+
#endif
3944
#define EXTI_ETH_WAKEUP (19)
4045
#define EXTI_USB_OTG_HS_WAKEUP (20)
4146
#if defined(STM32F0) || defined(STM32L4)

0 commit comments

Comments
 (0)
0