Skip to content

Commit

Permalink
feat(u0): add STM32U0xx support
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic Pillon <[email protected]>
  • Loading branch information
fpistm committed Sep 5, 2024
1 parent 622310a commit ac3953d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1194,8 +1194,8 @@ void RTC_Alarm_IRQHandler(void)
#if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || \
defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || \
defined(STM32F030xC) || defined(STM32G0xx) || defined(STM32H5xx) || \
defined(STM32L0xx) || defined(STM32L5xx) || defined(STM32U5xx) || \
defined(STM32WBAxx)
defined(STM32L0xx) || defined(STM32L5xx) || defined(STM32U0xx) ||\
defined(STM32U5xx) || defined(STM32WBAxx)
// In some cases, the same vector is used to manage WakeupTimer,
// but with a dedicated HAL IRQHandler
HAL_RTCEx_WakeUpTimerIRQHandler(&RtcHandle);
Expand Down
4 changes: 2 additions & 2 deletions src/rtc.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ typedef void(*voidCallbackPtr)(void *);
#define RTC_Alarm_IRQn RTC_IRQn
#define RTC_Alarm_IRQHandler RTC_IRQHandler
#endif
#if defined(STM32G0xx)
#if defined(STM32G0xx) || defined(STM32U0xx)
#define RTC_Alarm_IRQn RTC_TAMP_IRQn
#define RTC_Alarm_IRQHandler RTC_TAMP_IRQHandler
#endif
Expand All @@ -148,7 +148,7 @@ typedef void(*voidCallbackPtr)(void *);
#elif defined(STM32MP1xx)
// global RTC interrupt
#define ONESECOND_IRQn RTC_WKUP_ALARM_IRQn
#elif defined(STM32G0xx)
#elif defined(STM32G0xx) || defined(STM32U0xx)
// global RTC/TAMP interrupt
#define ONESECOND_IRQn RTC_TAMP_IRQn
#elif defined(CORE_CM0PLUS) && \
Expand Down

0 comments on commit ac3953d

Please sign in to comment.