/* Enables or disables the RTC registers write protection.  */
void RTC_WriteProtectionCmd(FunctionalState NewState)
/* Enables or disables the RTC registers write protection.  */
void RTC_WriteProtectionCmd(FunctionalState NewState)
{
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    RTC->WPR = 0xFF;
  }
  else
  {
    RTC->WPR = 0xCA;
    RTC->WPR = 0x53;
  }
}