Microchip® Advanced Software Framework

qs_tcc_timer.c File Reference

SAM TCC - Timer Counter for Control Applications Driver Quick Start.

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

#include <asf.h>

Functions

static void configure_tcc (void)
 [callback_funcs] More...
 
static void configure_tcc_callbacks (void)
 
int main (void)
 [setup] More...
 
static void tcc_callback_to_toggle_led (struct tcc_module *const module_inst)
 [module_inst] More...
 

Variables

struct tcc_module tcc_instance
 [module_inst] More...
 

static void configure_tcc ( void  )
static

[callback_funcs]

[setup]

[setup_config]

[setup_config] [setup_config_defaults]

[setup_config_defaults]

[setup_change_config]

[setup_change_config]

[setup_set_config]

[setup_set_config]

[setup_enable]

[setup_enable]

References tcc_counter_config::clock_prescaler, tcc_counter_config::clock_source, tcc_config::compare, tcc_config::counter, GCLK_GENERATOR_0, GCLK_GENERATOR_1, tcc_match_wave_config::match, tcc_counter_config::period, TCC_CLOCK_PRESCALER_DIV64, tcc_enable(), tcc_get_config_defaults(), tcc_init(), and tcc_instance.

Referenced by main().

static void configure_tcc_callbacks ( void  )
static

[setup_register_callback]

[setup_register_callback]

[setup_enable_callback]

[setup_enable_callback]

References TCC_CALLBACK_OVERFLOW, tcc_callback_to_toggle_led(), tcc_enable_callback(), tcc_instance, and tcc_register_callback().

Referenced by main().

int main ( void  )

[setup]

[setup_init]

[setup_init]

[main]

[enable_global_interrupts]

[enable_global_interrupts]

[main_loop]

[main_loop]

[main]

References configure_tcc(), configure_tcc_callbacks(), system_init(), and system_interrupt_enable_global().

static void tcc_callback_to_toggle_led ( struct tcc_module *const  module_inst)
static

[module_inst]

[callback_funcs]

References port_pin_toggle_output_level().

Referenced by configure_tcc_callbacks().