This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 7e5a770880c01b1a89673616b0410c8da846d3b2 Author: raiden00pl <[email protected]> AuthorDate: Mon Nov 9 14:53:36 2026 +0100 boards/stm32h573i-dk: Register the RTC as /dev/rtc0. Register the RTC lower half when CONFIG_RTC_DRIVER and CONFIG_STM32_RTC are enabled. Assisted-by: Claude:claude-fable-5-1 Signed-off-by: raiden00pl <[email protected]> --- boards/arm/stm32h5/stm32h573i-dk/src/stm32_bringup.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/boards/arm/stm32h5/stm32h573i-dk/src/stm32_bringup.c b/boards/arm/stm32h5/stm32h573i-dk/src/stm32_bringup.c index 6d73e1de5c8..eb81c9d22c6 100644 --- a/boards/arm/stm32h5/stm32h573i-dk/src/stm32_bringup.c +++ b/boards/arm/stm32h5/stm32h573i-dk/src/stm32_bringup.c @@ -31,7 +31,9 @@ #include <nuttx/board.h> #include <nuttx/input/buttons.h> #include <nuttx/leds/userled.h> +#include <nuttx/timers/rtc.h> +#include "stm32_rtc.h" #include "stm32h573i-dk.h" /**************************************************************************** @@ -74,6 +76,16 @@ int stm32_bringup(void) } #endif +#if defined(CONFIG_RTC_DRIVER) && defined(CONFIG_STM32_RTC) + /* Register the RTC driver as /dev/rtc0 */ + + ret = rtc_initialize(0, stm32_rtc_lowerhalf()); + if (ret < 0) + { + syslog(LOG_ERR, "ERROR: rtc_initialize() failed: %d\n", ret); + } +#endif + UNUSED(ret); return OK; }
