Skip to content

Commit 29549a6

Browse files
committed
fix(wl): wrong ONESECOND_IRQn definition
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent f83cf25 commit 29549a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rtc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ typedef void(*voidCallbackPtr)(void *);
121121

122122
/* mapping the IRQn for the one-second interrupt depending on the soc */
123123
#if defined(STM32F1xx) || (defined(STM32F0xx) && defined(RTC_CR_WUTE)) || \
124-
defined(STM32L0xx) || defined(STM32L5xx) || defined(STM32U5xx) || \
125-
defined(STM32WLE4xx)
124+
defined(STM32L0xx) || defined(STM32L5xx) || defined(STM32U5xx)
126125
// specific WakeUp interrupt
127126
#define ONESECOND_IRQn RTC_IRQn
128127
#elif defined(STM32MP1xx)
@@ -131,7 +130,8 @@ typedef void(*voidCallbackPtr)(void *);
131130
#elif defined(STM32G0xx)
132131
// global RTC/TAMP interrupt
133132
#define ONESECOND_IRQn RTC_TAMP_IRQn
134-
#elif (defined(STM32WL54xx) || defined(STM32WL55xx)) && defined(CORE_CM0PLUS)
133+
#elif defined(CORE_CM0PLUS) && \
134+
(defined(STM32WL54xx) || defined(STM32WL55xx) || defined(STM32WL5Mxx))
135135
// global RTC/LSS interrupt
136136
#define ONESECOND_IRQn RTC_LSECSS_IRQn
137137
#elif defined(RTC_CR_WUTE)

0 commit comments

Comments
 (0)