/* Checks whether the specified RTC flag is set or not.  */
FlagStatus RTC_GetFlagStatus(RTC_FLAG_TypeDef flag)
/* Checks whether the specified RTC flag is set or not.  */
FlagStatus RTC_GetFlagStatus(RTC_FLAG_TypeDef flag)
{
    return  (FlagStatus)(RTC->CSR & flag);
}