diff --git a/library.json b/library.json index 74a0a08..fb030f0 100644 --- a/library.json +++ b/library.json @@ -7,7 +7,7 @@ "type": "git", "url": "https://github.com/stm32duino/STM32RTC" }, - "version": "1.3.2", + "version": "1.3.3", "frameworks": "arduino", "platforms": "ststm32", "build": { diff --git a/library.properties b/library.properties index 85e98a8..9079d31 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=STM32duino RTC -version=1.3.2 +version=1.3.3 author=STMicroelectronics, Wi6Labs maintainer=stm32duino sentence=Allows to use the RTC functionalities of STM32 based boards. diff --git a/src/rtc.c b/src/rtc.c index adaf1d2..662aa80 100644 --- a/src/rtc.c +++ b/src/rtc.c @@ -863,6 +863,12 @@ void HAL_RTC_AlarmAEventCallback(RTC_HandleTypeDef *hrtc) void RTC_Alarm_IRQHandler(void) { HAL_RTC_AlarmIRQHandler(&RtcHandle); + +#if defined(STM32F0xx) || defined(STM32G0xx) || defined(STM32L0xx) || defined(STM32L5xx) || defined(STM32U5xx) + // In some cases, the same vector is used to manage WakeupTimer, + // but with a dedicated HAL IRQHandler + HAL_RTCEx_WakeUpTimerIRQHandler(&RtcHandle); +#endif } #ifdef ONESECOND_IRQn