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.