/* Configure the internal OSC16M oscillator clock source. 
Configures the 16MHz (nominal) internal RC oscillator with the given configuration settings. */
void system_clock_source_osc16m_set_config(struct system_clock_source_osc16m_config *const config)
/* Configure the internal OSC16M oscillator clock source. 
Configures the 16MHz (nominal) internal RC oscillator with the given configuration settings. */
void system_clock_source_osc16m_set_config(struct system_clock_source_osc16m_config *const config)
{
	OSCCTRL_OSC16MCTRL_Type temp = OSCCTRL->OSC16MCTRL;
	temp.bit.FSEL    = config->fsel;
	temp.bit.ONDEMAND = config->on_demand;
	temp.bit.RUNSTDBY = config->run_in_standby;
	OSCCTRL->OSC16MCTRL = temp;
}