UM1940
LL_RTC_EnterInitMode
Function name
Function description
Parameters
Return values
Notes
LL_RTC_ExitInitMode
Function name
Function description
Parameters
Return values
Notes
LL_RTC_WaitForSynchro
Function name
Function description
Parameters
Return values
Notes
64.3
RTC Firmware driver defines
64.3.1
RTC
ALARM OUTPUT
ErrorStatus LL_RTC_EnterInitMode (RTC_TypeDef * RTCx)
Enters the RTC Initialization mode.
RTCx: RTC Instance
An: ErrorStatus enumeration value:
SUCCESS: RTC is in Init mode
ERROR: RTC is not in Init mode
The RTC Initialization mode is write protected, use the
LL_RTC_DisableWriteProtection before calling this function.
ErrorStatus LL_RTC_ExitInitMode (RTC_TypeDef * RTCx)
Exit the RTC Initialization mode.
RTCx: RTC Instance
An: ErrorStatus enumeration value:
SUCCESS: RTC exited from in Init mode
ERROR: Not applicable
When the initialization sequence is complete, the calendar
restarts counting after 4 RTCCLK cycles.
The RTC Initialization mode is write protected, use the
LL_RTC_DisableWriteProtection before calling this function.
ErrorStatus LL_RTC_WaitForSynchro (RTC_TypeDef * RTCx)
Waits until the RTC Time and Day registers (RTC_TR and
RTC_DR) are synchronized with RTC APB clock.
RTCx: RTC Instance
An: ErrorStatus enumeration value:
SUCCESS: RTC registers are synchronised
ERROR: RTC registers are not synchronised
The RTC Resynchronization mode is write protected, use the
LL_RTC_DisableWriteProtection before calling this function.
To read the calendar through the shadow registers after
Calendar initialization, calendar update or after wakeup from
low power modes the software must first clear the RSF flag.
The software must then wait until it is set again before reading
the calendar, which means that the calendar registers have
been correctly copied into the RTC_TR and RTC_DR shadow
registers.
DocID028236 Rev 2
LL RTC Generic Driver
1117/1371
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?