/* Callback run when a XOSC32K crystal operation is detected. */
static void xosc32k_ok_callback(struct tc_module *instance)
/* Callback run when a XOSC32K crystal operation is detected. */
static void xosc32k_ok_callback(struct tc_module *instance)
{
	tc_disable_callback(&tc_xosc32k, TC_CALLBACK_CC_CHANNEL0);
	tc_enable_callback(&tc_osc32k, TC_CALLBACK_CC_CHANNEL0);
	init_dfll((enum system_clock_source)GCLK_GENERATOR_XOSC32K);
	port_pin_set_output_level(LED_0_PIN, LED_0_ACTIVE);
}