19.2.20.6 RTC_ExitInitMode
void RTC_ExitInitMode ( void )
Exits the RTC Initialization mode.
ï‚· 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
ErrorStatus RTC_WaitForSynchro ( void )
Waits until the RTC Time and Date registers (RTC_TR and
RTC_DR) are synchronized with RTC APB clock.
ï‚· An ErrorStatus enumeration value:
ï€ SUCCESS: RTC registers are synchronised
ï€ ERROR: RTC registers are not synchronised
ï‚· 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.