/* Checks whether the specified RTC flag is set or not.  */
FlagStatus RTC_GetFlagStatus(uint16_t RTC_FLAG)
/* Checks whether the specified RTC flag is set or not.  */
FlagStatus RTC_GetFlagStatus(uint16_t RTC_FLAG)
{
    FlagStatus bitstatus = RESET;
    assert_param(IS_RTC_GET_FLAG(RTC_FLAG));
    if ((RTC->CRL & RTC_FLAG) != (uint16_t)RESET)
    {
        bitstatus = SET;
    }
    else
    {
        bitstatus = RESET;
    }
    return bitstatus;
}