/* Checks whether the specified RTC interrupt has occurred or not.  */
INTStatus RTC_GetITStatus(uint32_t RTC_INT)
/* Checks whether the specified RTC interrupt has occurred or not.  */
INTStatus RTC_GetITStatus(uint32_t RTC_INT)
{
    INTStatus bitstatus  = RESET;
    uint32_t tmpregister = 0, enablestatus = 0;
    assert_param(IS_RTC_GET_INT(RTC_INT));
    enablestatus = (uint32_t)((RTC->CTRL & RTC_INT));
    tmpregister = (uint32_t)((RTC->INITSTS & (uint32_t)(RTC_INT >> 4)));
    if ((enablestatus != (uint32_t)RESET) && ((tmpregister & 0x0000FFFF) != (uint32_t)RESET))
    {
        bitstatus = SET;
    }
    else
    {
        bitstatus = RESET;
    }
    return bitstatus;
}