Skip to content

Commit ccaef40

Browse files
committed
feat: add STM32U3xx support
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 97adafa commit ccaef40

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/rtc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ void RTC_Alarm_IRQHandler(void)
11921192
defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || \
11931193
defined(STM32F030xC) || defined(STM32G0xx) || defined(STM32H5xx) || \
11941194
defined(STM32L0xx) || defined(STM32L5xx) || defined(STM32U0xx) ||\
1195-
defined(STM32U5xx) || defined(STM32WBAxx)
1195+
defined(STM32U3xx) || defined(STM32U5xx) || defined(STM32WBAxx)
11961196
// In some cases, the same vector is used to manage WakeupTimer,
11971197
// but with a dedicated HAL IRQHandler
11981198
HAL_RTCEx_WakeUpTimerIRQHandler(&RtcHandle);

src/rtc.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ typedef void(*voidCallbackPtr)(void *);
129129
#endif /* !STM32F1xx */
130130

131131
#if defined(STM32C0xx) || defined(STM32F0xx) || defined(STM32H5xx) || \
132-
defined(STM32L0xx) || defined(STM32L5xx) || defined(STM32U5xx) || \
133-
defined(STM32WBAxx)
132+
defined(STM32L0xx) || defined(STM32L5xx) || defined(STM32U3xx) || \
133+
defined(STM32U3xx) || defined(STM32U5xx) || defined(STM32WBAxx)
134134
#define RTC_Alarm_IRQn RTC_IRQn
135135
#define RTC_Alarm_IRQHandler RTC_IRQHandler
136136
#endif
@@ -142,7 +142,7 @@ typedef void(*voidCallbackPtr)(void *);
142142
/* mapping the IRQn for the one-second interrupt depending on the soc */
143143
#if defined(STM32F1xx) || (defined(STM32F0xx) && defined(RTC_CR_WUTE)) || \
144144
defined(STM32H5xx) || defined(STM32L0xx) || defined(STM32L5xx) || \
145-
defined(STM32U5xx) || defined(STM32WBAxx)
145+
defined(STM32U3xx) || defined(STM32U5xx) || defined(STM32WBAxx)
146146
// specific WakeUp interrupt
147147
#define ONESECOND_IRQn RTC_IRQn
148148
#elif defined(STM32MP1xx)

0 commit comments

Comments
 (0)