/* : Function for handling the RTC0 interrupts. Triggered on TICK and COMPARE0 match.  */
static void rtc_handler(nrf_drv_rtc_int_type_t int_type)
/* : Function for handling the RTC0 interrupts. Triggered on TICK and COMPARE0 match.  */
static void rtc_handler(nrf_drv_rtc_int_type_t int_type)
{
    if (int_type == NRF_DRV_RTC_INT_COMPARE0)
    {
        nrf_gpio_pin_toggle(COMPARE_EVENT_OUTPUT);
    }
    else if (int_type == NRF_DRV_RTC_INT_TICK)
    {
        nrf_gpio_pin_toggle(TICK_EVENT_OUTPUT);
    }
}