/* RTC interrupt handler. Clear the RTC interrupt flag and execute the callback function.  */
void RTC_IRQHandler(void)
/* RTC interrupt handler. Clear the RTC interrupt flag and execute the callback function.  */
void RTC_IRQHandler(void)
{
    unsigned long ulEventFlags;
    ulEventFlags = (xHWREG(RTC_RIIR) & (RTC_RIIR_TIF | RTC_RIIR_AIF));
    xHWREG(RTC_RIIR) = ulEventFlags;
    if(g_pfnRTCHandlerCallbacks[0] != 0)
    {
        g_pfnRTCHandlerCallbacks[0](0, 0, ulEventFlags, 0);
    }
}