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