HAL TimeBase RTC Alarm How to Use

group TimeBase_RTC_Alarm_How_To_Use

How to use this driver

Copy this file to the application folder and modify it as follows:

  • Rename it to ‘stm32_hal_timebase_rtc_alarm.c’.

  • Add this file and the RTC HAL drivers to the project and uncomment the USE_HAL_RTC_MODULE define in stm32c5xx_hal_conf.h.

  • Do not use the HAL RTC alarm and HAL RTC Alarm drivers with low-power modes: The wake-up capability of the RTC can be intrusive when a prior low power mode configuration requires different wake-up sources. Application or example behavior is no longer guaranteed.

  • Use stm32_hal_timebase_rtc_alarm.c for applications or examples requiring low-power modes.