/* Determins if the specified Generic Clock Generator is enabled.  */
bool system_gclk_gen_is_enabled(const uint8_t generator)
/* Determins if the specified Generic Clock Generator is enabled.  */
bool system_gclk_gen_is_enabled(const uint8_t generator)
{
	bool enabled;
	system_interrupt_enter_critical_section();
	*((uint8_t*)&GCLK->GENCTRL.reg) = generator;
	enabled = (GCLK->GENCTRL.reg & GCLK_GENCTRL_GENEN);
	system_interrupt_leave_critical_section();
	return enabled;
}