From 4c0bcda6742fe03979370a213ea3eedbd68e73d2 Mon Sep 17 00:00:00 2001 From: Alexandre Bourdiol Date: Mon, 7 Nov 2022 14:36:56 +0100 Subject: [PATCH 1/3] 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 --- src/rtc.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 From 3d1c8dd9972ff1b6befdc162b629018e7477a43c Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Mon, 14 Nov 2022 09:10:40 +0100 Subject: [PATCH 2/3] chore: bump version in library.json --- library.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": { From ff664414b439cf3624b6e98d30a1c0b6fed84cf5 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Mon, 14 Nov 2022 09:11:08 +0100 Subject: [PATCH 3/3] chore: bump version in library.properties --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.