int main() { setup(); for (;;) { runAlarm(); } return 0; }
/********************************************//** * \brief update time, check alarms, clear flag * * \param * \param * \return * ***********************************************/ void RTC_IRQHandler(void) { RTC_IntClear(RTC_IF_COMP0); updateTime(); uint8_t alarm = checkAlarms(); if(alarm) { runAlarm(alarm); // check alarms and run if there are any } checkPomodoro(); }