Skip to content

Commit d857078

Browse files
committed
fix: 1 RTC vector for both HAL IRQHandler Alarm and WakeUpTimer
Sometimes, both HAL IRQ handler should be call from RTC vector * HAL_RTC_AlarmIRQHandler() * HAL_RTCEx_WakeUpTimerIRQHandler() Signed-off-by: Alexandre Bourdiol <[email protected]>
1 parent 148a0dc commit d857078

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/rtc.c

+6
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,12 @@ void HAL_RTC_AlarmAEventCallback(RTC_HandleTypeDef *hrtc)
863863
void RTC_Alarm_IRQHandler(void)
864864
{
865865
HAL_RTC_AlarmIRQHandler(&RtcHandle);
866+
867+
#if defined(STM32F0xx) || defined(STM32G0xx) || defined(STM32L0xx) || defined(STM32L5xx) || defined(STM32U5xx)
868+
// In some cases, the same vector is used to manage WakeupTimer,
869+
// but with a dedicated HAL IRQHandler
870+
HAL_RTCEx_WakeUpTimerIRQHandler(&RtcHandle);
871+
#endif
866872
}
867873

868874
#ifdef ONESECOND_IRQn

0 commit comments

Comments
 (0)