/* Set up the measurement and comparison timer events. */
static void setup_tc_events(void)
/* Set up the measurement and comparison timer events. */
static void setup_tc_events(void)
{
	struct tc_events events_calib = { .on_event_perform_action = true };
	tc_enable_events(&tc_calib, &events_calib);
	struct tc_events events_comp = { .generate_event_on_compare_channel[0] = true };
	tc_enable_events(&tc_comp, &events_comp);
	tc_enable(&tc_calib);
	tc_enable(&tc_comp);
}