EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM1581
Real-time clock (RTC)
DocID023800 Rev 1
367/584
19.2.20.6 RTC_ExitInitMode
Function Name
void RTC_ExitInitMode ( void )
Function Description
Exits the RTC Initialization mode.
Parameters
None.
Return values
None.
Notes
When the initialization sequence is complete, the calendar
restarts counting after 4 RTCCLK cycles.
The RTC Initialization mode is write protected, use the
RTC_WriteProtectionCmd(DISABLE) before calling this
function.
19.2.20.7 RTC_WaitForSynchro
Function Name
ErrorStatus RTC_WaitForSynchro ( void )
Function Description
Waits until the RTC Time and Date registers (RTC_TR and
RTC_DR) are synchronized with RTC APB clock.
Parameters
None.
Return values
An ErrorStatus enumeration value:
SUCCESS: RTC registers are synchronised
ERROR: RTC registers are not synchronised
Notes
The RTC Resynchronization mode is write protected, use the
RTC_WriteProtectionCmd(DISABLE) 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.

Table of Contents

Related product manuals