/* Checks whether the specified RTC interrupt has occurred or not.  */
ITStatus RTC_GetITStatus(RTC_IT_TypeDef RTC_IT)
/* Checks whether the specified RTC interrupt has occurred or not.  */
ITStatus RTC_GetITStatus(RTC_IT_TypeDef RTC_IT)
{
  ITStatus itstatus = RESET;
  uint8_t enablestatus = 0, tmpreg = 0;
  assert_param(IS_RTC_GET_IT(RTC_IT));
  enablestatus = (uint8_t)(RTC->CR2 & (uint16_t)RTC_IT);
  tmpreg = (uint8_t)(RTC->ISR2 & (uint8_t)((uint16_t)RTC_IT >> 4));
  if ((enablestatus != (uint8_t)RESET) && (tmpreg != (uint8_t)RESET))
  {
    itstatus = SET;
  }
  else
  {
    itstatus = RESET;
  }
  return (ITStatus)itstatus;
}