void RTC_StructInit ( RTC_InitTypeDef * RTC_InitStruct)
Fills each RTC_InitStruct member with its default value.
ï‚· RTC_InitStruct : pointer to a RTC_InitTypeDef structure
which will be initialized.
19.2.20.4 RTC_WriteProtectionCmd
void RTC_WriteProtectionCmd ( FunctionalState NewState)
Enables or disables the RTC registers write protection.
ï‚· NewState : new state of the write protection. This parameter
can be: ENABLE or DISABLE.
ï‚· All the RTC registers are write protected except for
RTC_ISR[13:8], RTC_TAFCR and RTC_BKPxR.
ï‚· Writing a wrong key reactivates the write protection.
ï‚· The protection mechanism is not affected by system reset.
19.2.20.5 RTC_EnterInitMode
ErrorStatus RTC_EnterInitMode ( void )
Enters the RTC Initialization mode.
ï‚· 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
RTC_WriteProtectionCmd(DISABLE) before calling this
function.