/*! * @brief override the RTC_IRQ handler */ void MODULE_IRQ_HANDLER(RTC)(void) { if (RTC_DRV_IsAlarmPending(0)) { RTC_DRV_SetAlarmIntCmd(0, false); } }
/*! * @brief ISR for Alarm interrupt * * This function change state of busyWait. */ void RTC_IRQHandler(void) { if (RTC_DRV_IsAlarmPending(RTC_INSTANCE)) { busyWait = false; // Disable second interrupt RTC_DRV_SetAlarmIntCmd(RTC_INSTANCE, false); } }