Skip to content

Commit 1994403

Browse files
Miceuzfpistm
authored andcommitted
Add a guard distinguishing CM0+ core of STM32WL55xx. Fix #83
1 parent ea2898b commit 1994403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rtc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ typedef void(*voidCallbackPtr)(void *);
131131
#elif defined(STM32G0xx)
132132
// global RTC/TAMP interrupt
133133
#define ONESECOND_IRQn RTC_TAMP_IRQn
134-
#elif defined(STM32WL54xx)|| defined(STM32WL55xx)
134+
#elif (defined(STM32WL54xx) || defined(STM32WL55xx)) && defined(CORE_CM0PLUS)
135135
// global RTC/LSS interrupt
136136
#define ONESECOND_IRQn RTC_LSECSS_IRQn
137137
#elif defined(RTC_CR_WUTE)

0 commit comments

Comments
 (0)