From 7a763ea90e2618f1a68f455ecb1bf96431de4511 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Fri, 19 May 2023 14:21:24 +0200 Subject: [PATCH 1/4] fix(ci): NUCLEO_C031C6 has no One-Second interrupt Signed-off-by: Frederic Pillon --- extras/rtc_cores_config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/rtc_cores_config.json b/extras/rtc_cores_config.json index 788adcb..8b3ed50 100644 --- a/extras/rtc_cores_config.json +++ b/extras/rtc_cores_config.json @@ -191,7 +191,7 @@ { "pattern": "RTC_Seconds", "applicable": false, - "boards": [ "NUCLEO_F030R8", "NUCLEO_F031K6", "NUCLEO_F042K6"] + "boards": [ "NUCLEO_C031C6", "NUCLEO_F030R8", "NUCLEO_F031K6", "NUCLEO_F042K6"] }, { "pattern": "F1RTCDateRetention", From bee8167a532073bcbea89380e8dc81ab5fc7d0b6 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Fri, 19 May 2023 11:03:03 +0200 Subject: [PATCH 2/4] bsp: add support for the STM33H5xx soc Signed-off-by: Frederic Pillon --- src/rtc.c | 4 ++-- src/rtc.h | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/rtc.c b/src/rtc.c index 847cc16..903ca7c 100644 --- a/src/rtc.c +++ b/src/rtc.c @@ -962,8 +962,8 @@ void RTC_Alarm_IRQHandler(void) #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || \ defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F070xB) || \ - defined(STM32F030xC) || defined(STM32G0xx) || defined(STM32L0xx) || \ - defined(STM32L5xx) || defined(STM32U5xx) + defined(STM32F030xC) || defined(STM32G0xx) || defined(STM32H5xx) || \ + 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); diff --git a/src/rtc.h b/src/rtc.h index c8d035f..bad868b 100644 --- a/src/rtc.h +++ b/src/rtc.h @@ -115,8 +115,8 @@ typedef void(*voidCallbackPtr)(void *); #define PREDIVA_MAX 0xFFFFFU #endif /* !STM32F1xx */ -#if defined(STM32C0xx) || defined(STM32F0xx) || defined(STM32L0xx) || \ - defined(STM32L5xx) || defined(STM32U5xx) +#if defined(STM32C0xx) || defined(STM32F0xx) || defined(STM32H5xx) || \ + defined(STM32L0xx) || defined(STM32L5xx) || defined(STM32U5xx) #define RTC_Alarm_IRQn RTC_IRQn #define RTC_Alarm_IRQHandler RTC_IRQHandler #endif @@ -127,7 +127,8 @@ typedef void(*voidCallbackPtr)(void *); /* mapping the IRQn for the one-second interrupt depending on the soc */ #if defined(STM32F1xx) || (defined(STM32F0xx) && defined(RTC_CR_WUTE)) || \ - defined(STM32L0xx) || defined(STM32L5xx) || defined(STM32U5xx) + defined(STM32H5xx) || defined(STM32L0xx) || defined(STM32L5xx) || \ + defined(STM32U5xx) // specific WakeUp interrupt #define ONESECOND_IRQn RTC_IRQn #elif defined(STM32MP1xx) From 61a7fbc7c03b58f7dedf1ce0cf91f79d9834d62e Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Wed, 7 Jun 2023 15:13:49 +0200 Subject: [PATCH 3/4] chore: update version to 1.3.7 Signed-off-by: Frederic Pillon --- library.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.json b/library.json index 02a615d..80ec1cc 100644 --- a/library.json +++ b/library.json @@ -7,7 +7,7 @@ "type": "git", "url": "https://github.com/stm32duino/STM32RTC" }, - "version": "1.3.6", + "version": "1.3.7", "frameworks": "arduino", "platforms": "ststm32", "build": { From f68a311f4ed68cbbd0593bd9f20b2bae6599a5b8 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Wed, 7 Jun 2023 15:14:13 +0200 Subject: [PATCH 4/4] chore: update version to 1.3.7 Signed-off-by: Frederic Pillon --- library.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library.properties b/library.properties index 795d68f..bd8adde 100644 --- a/library.properties +++ b/library.properties @@ -1,6 +1,6 @@ name=STM32duino RTC -version=1.3.6 -author=STMicroelectronics, Wi6Labs +version=1.3.7 +author=STMicroelectronics maintainer=stm32duino sentence=Allows to use the RTC functionalities of STM32 based boards. paragraph=With this library you can use the RTC peripheral in order to program actions related to date and time.