/* Function for handling the RTC1 interrupt. 
Checks for timeouts, and executes timeout handlers for expired timers.  */
void RTC1_IRQHandler(void)
/* Function for handling the RTC1 interrupt. 
Checks for timeouts, and executes timeout handlers for expired timers.  */
void RTC1_IRQHandler(void)
{
    NRF_RTC1->EVENTS_COMPARE[0] = 0;
    NRF_RTC1->EVENTS_COMPARE[1] = 0;
    NRF_RTC1->EVENTS_COMPARE[2] = 0;
    NRF_RTC1->EVENTS_COMPARE[3] = 0;
    NRF_RTC1->EVENTS_TICK       = 0;
    NRF_RTC1->EVENTS_OVRFLW     = 0;
    timer_timeouts_check();
}