HAL RTC Overview ¶
Introducing RTC ¶
- group RTC_Introduction
-
The real-time clock (RTC) peripheral provides accurate timekeeping and calendar functionality. It operates independently of the main microcontroller, ensuring continuous time tracking even during low-power modes or system resets. The RTC peripheral supports a wide range of features, including programmable alarms, periodic wake-up events, and timestamping capabilities.
Module and files ¶
The following diagram illustrates the RTC module and its associated files.
Component diagram ¶
The following diagram illustrates the software components involved in the RTC module. It shows the interactions between the user application, HAL drivers, low-level drivers, and the hardware components.
Configuration table ¶
The following table lists the configuration defines for the HAL RTC module, specifying their locations, default values, and descriptions:
- group RTC_Configuration_Table
-
Configuration inside the RTC driver ¶
This configuration table is under development.
Configuration defines
Description
Default value
Note
PRODUCT
from IDE
NA
The selected device (e.g. STM32ynxx)
USE_HAL_RTC_MODULE
from hal_conf.h
1
Allows use of the HAL RTC module
USE_ASSERT_DBG_PARAM
from IDE
None
Allows use of the assert check parameters
USE_HAL_CHECK_PARAM
from hal_conf.h
0
Allows use of the run-time check parameters