/* Enables a Generic Clock that was previously configured. 
Starts the clock generation of a Generic Clock that was previously configured via a call to  */
void system_gclk_chan_enable(const uint8_t channel)
/* Enables a Generic Clock that was previously configured. 
Starts the clock generation of a Generic Clock that was previously configured via a call to  */
void system_gclk_chan_enable(const uint8_t channel)
{
	system_interrupt_enter_critical_section();
	GCLK->PCHCTRL[channel].reg |= GCLK_PCHCTRL_CHEN;
	while (!(GCLK->PCHCTRL[channel].reg & GCLK_PCHCTRL_CHEN)) {
	}
	system_interrupt_leave_critical_section();
}