Microchip® Advanced Software Framework

qs_clock_source.c File Reference

SAM System Clock Driver Quick Start.

Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>

Functions

void configure_dfll_open_loop (void)
 [config_extosc32k] More...
 
void configure_extosc32k (void)
 [config_osc32k] More...
 
void configure_osc32k (void)
 [setup] [config_osc32k] More...
 
int main (void)
 [config_dfll] More...
 

void configure_dfll_open_loop ( void  )

[config_extosc32k]

[config_dfll]

[config_dfll_config]

[config_dfll_config] [config_dfll_get_defaults]

[config_dfll_get_defaults]

[config_dfll_set_config]

[config_dfll_set_config]

Referenced by main().

void configure_extosc32k ( void  )

[config_osc32k]

[setup] [config_extosc32k]

[config_extosc32k_config]

[config_extosc32k_config] [config_extosc32k_get_defaults]

[config_extosc32k_get_defaults]

[config_extosc32k_change_defaults]

[config_extosc32k_change_defaults]

[config_extosc32k_set_config]

[config_extosc32k_set_config]

References system_clock_source_xosc32k_config::startup_time, system_clock_source_xosc32k_get_config_defaults(), system_clock_source_xosc32k_set_config(), and SYSTEM_XOSC32K_STARTUP_4096.

Referenced by main().

void configure_osc32k ( void  )

[setup] [config_osc32k]

[config_osc32k_config]

[config_osc32k_config] [config_osc32k_get_defaults]

[config_osc32k_get_defaults]

[config_osc32k_change_defaults]

[config_osc32k_change_defaults]

[config_osc32k_set_config]

[config_osc32k_set_config]

References system_clock_source_xosc_config::startup_time, system_clock_source_xosc32k_get_config_defaults(), system_clock_source_xosc_set_config(), and SYSTEM_XOSC_STARTUP_4096.

Referenced by main().

int main ( void  )

[config_dfll]

[setup]

[main]

[config_extosc32k_main]

[config_extosc32k_main]

[enable_extosc32k_main]

[enable_extosc32k_main]

[config_dfll_main]

[config_dfll_main]

[enable_dfll_main]

[enable_dfll_main]

[set_sys_wait_states]

[set_sys_wait_states]

[set_sys_clk_src]

[set_sys_clk_src]

[main]

References configure_dfll_open_loop(), configure_extosc32k(), configure_osc32k(), system_gclk_gen_config::division_factor, GCLK_GENERATOR_0, system_gclk_gen_config::source_clock, STATUS_OK, SYSTEM_CLOCK_SOURCE_DFLL, system_clock_source_enable(), SYSTEM_CLOCK_SOURCE_XOSC, SYSTEM_CLOCK_SOURCE_XOSC32K, system_flash_set_waitstates(), system_gclk_gen_get_config_defaults(), and system_gclk_gen_set_config().