/**************************************************************************//** * @brief The actual callback for Memory LCD toggling * @param[in] id * The id of the RTC timer (not used) *****************************************************************************/ static void memLcdCallback(RTCDRV_TimerID_t id, void *user) { (void) id; (void) user; rtcCallback(rtcCallbackArg); rtcCallbacks ++; }
// Alarm void RTC_IRQHandler (void) { if(Chip_RTC_GetIntPending(LPC_RTC,RTC_INT_ALARM)==1) { if(rtcCallback!=NULL) rtcCallback(rtcCallbackArg); Chip_RTC_ClearIntPending(LPC_RTC, RTC_INT_ALARM); } else Chip_RTC_ClearIntPending(LPC_RTC, RTC_INT_COUNTER_INCREASE); }