/* Checks whether the specified RTC interrupt has occurred or not.  */
ITStatus RTC_GetITStatus(uint16_t RTC_IT)
/* Checks whether the specified RTC interrupt has occurred or not.  */
ITStatus RTC_GetITStatus(uint16_t RTC_IT)
{
  ITStatus bitstatus = RESET;
  assert_param(IS_RTC_GET_IT(RTC_IT)); 
  bitstatus = (ITStatus)(RTC->CRL & RTC_IT);
  if (((RTC->CRH & RTC_IT) != (uint16_t)RESET) && (bitstatus != (uint16_t)RESET))
  {
    bitstatus = SET;
  }
  else
  {
    bitstatus = RESET;
  }
  return bitstatus;
}