/* Function for Timer 0 initialization, which will be started and stopped by timer1 and timer2 using PPI.  */
static void timer0_init(void)
/* Function for Timer 0 initialization, which will be started and stopped by timer1 and timer2 using PPI.  */
static void timer0_init(void)
{
    nrf_drv_timer_config_t timer_cfg = NRF_DRV_TIMER_DEFAULT_CONFIG;
    timer_cfg.mode = NRF_TIMER_MODE_COUNTER;
    ret_code_t err_code = nrf_drv_timer_init(&timer0, &timer_cfg, timer_event_handler);
    APP_ERROR_CHECK(err_code);
}