Microchip® Advanced Software Framework

qs_gclk_basic.c File Reference

SAM Generic Clock Driver Quick Start.

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

#include <asf.h>

Functions

void configure_gclock_channel (void)
 
void configure_gclock_generator (void)
 [setup] More...
 
int main (void)
 [setup] More...
 

void configure_gclock_channel ( void  )

[setup_6]

[setup_6] [setup_7]

[setup_7]

[setup_8]

[setup_8]

[setup_9]

[setup_9]

[setup_10]

[setup_10]

References GCLK_GENERATOR_1, system_gclk_chan_config::source_generator, system_gclk_chan_enable(), system_gclk_chan_get_config_defaults(), and system_gclk_chan_set_config().

Referenced by main().

void configure_gclock_generator ( void  )

[setup]

[setup_1]

[setup_1] [setup_2]

[setup_2]

[setup_3]

[setup_3]

[setup_4]

[setup_4]

[setup_5]

[setup_5]

References system_gclk_gen_config::division_factor, GCLK_GENERATOR_1, system_gclk_gen_config::source_clock, SYSTEM_CLOCK_SOURCE_OSC16M, system_gclk_gen_enable(), system_gclk_gen_get_config_defaults(), and system_gclk_gen_set_config().

Referenced by main().

int main ( void  )

[setup]

[setup_init]

[setup_init]

[main]

[main]

References configure_gclock_channel(), and configure_gclock_generator().