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