Microchip® Advanced Software Framework

qs_tcc_callback.c File Reference

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

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

#include <asf.h>
#include <conf_quick_start_callback.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_change_duty_cycle (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_change_config_pwm]

[setup_change_config_pwm]

[setup_set_config]

[setup_set_config]

[setup_enable]

[setup_enable]

References tcc_config::compare, CONF_PWM_CHANNEL, CONF_PWM_MODULE, CONF_PWM_OUT_MUX, CONF_PWM_OUT_PIN, CONF_PWM_OUTPUT, tcc_config::counter, tcc_pins_config::enable_wave_out_pin, tcc_match_wave_config::match, tcc_counter_config::period, tcc_config::pins, tcc_enable(), tcc_get_config_defaults(), tcc_init(), tcc_instance, TCC_WAVE_GENERATION_SINGLE_SLOPE_PWM, tcc_match_wave_config::wave_generation, tcc_pins_config::wave_out_pin, and tcc_pins_config::wave_out_pin_mux.

Referenced by main().

static void configure_tcc_callbacks ( void  )
static

[setup_register_callback]

[setup_register_callback]

[setup_enable_callback]

[setup_enable_callback]

References CONF_PWM_CHANNEL, tcc_callback_to_change_duty_cycle(), 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_change_duty_cycle ( struct tcc_module *const  module_inst)
static

[module_inst]

[callback_funcs]

References CONF_PWM_CHANNEL, i, and tcc_set_compare_value().

Referenced by configure_tcc_callbacks().

struct tcc_module tcc_instance

[module_inst]