Skip to content

Commit ac3953d

Browse files
committed
feat(u0): add STM32U0xx support
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 622310a commit ac3953d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/rtc.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1194,8 +1194,8 @@ void RTC_Alarm_IRQHandler(void)
11941194
#if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || \
11951195
defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || \
11961196
defined(STM32F030xC) || defined(STM32G0xx) || defined(STM32H5xx) || \
1197-
defined(STM32L0xx) || defined(STM32L5xx) || defined(STM32U5xx) || \
1198-
defined(STM32WBAxx)
1197+
defined(STM32L0xx) || defined(STM32L5xx) || defined(STM32U0xx) ||\
1198+
defined(STM32U5xx) || defined(STM32WBAxx)
11991199
// In some cases, the same vector is used to manage WakeupTimer,
12001200
// but with a dedicated HAL IRQHandler
12011201
HAL_RTCEx_WakeUpTimerIRQHandler(&RtcHandle);

src/rtc.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ typedef void(*voidCallbackPtr)(void *);
134134
#define RTC_Alarm_IRQn RTC_IRQn
135135
#define RTC_Alarm_IRQHandler RTC_IRQHandler
136136
#endif
137-
#if defined(STM32G0xx)
137+
#if defined(STM32G0xx) || defined(STM32U0xx)
138138
#define RTC_Alarm_IRQn RTC_TAMP_IRQn
139139
#define RTC_Alarm_IRQHandler RTC_TAMP_IRQHandler
140140
#endif
@@ -148,7 +148,7 @@ typedef void(*voidCallbackPtr)(void *);
148148
#elif defined(STM32MP1xx)
149149
// global RTC interrupt
150150
#define ONESECOND_IRQn RTC_WKUP_ALARM_IRQn
151-
#elif defined(STM32G0xx)
151+
#elif defined(STM32G0xx) || defined(STM32U0xx)
152152
// global RTC/TAMP interrupt
153153
#define ONESECOND_IRQn RTC_TAMP_IRQn
154154
#elif defined(CORE_CM0PLUS) && \

0 commit comments

Comments
 (0)