21.6.2.11.1 Function system_clock_init()

Initialize clock system based on the configuration in conf_clocks.h.

void system_clock_init( void )

This function will apply the settings in conf_clocks.h when run from the user application. All clock sources and GCLK generators are running when this function returns.

Note: OSC16M is always enabled and if user selects other clocks for GCLK generators, the OSC16M default enable can be disabled after system_clock_init. Make sure the clock switches successfully before disabling OSC8M.