Microchip® Advanced Software Framework

qs_tc_callback.c File Reference

SAM TC - Timer Counter Callback Driver Quick Start.

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

#include <conf_quick_start_callback.h>
#include <asf.h>

Functions

void configure_tc (void)
 [callback_funcs] More...
 
void configure_tc_callbacks (void)
 
int main (void)
 [setup] More...
 
void tc_callback_to_change_duty_cycle (struct tc_module *const module_inst)
 [module_inst] More...
 

Variables

struct tc_module tc_instance
 [module_inst] More...
 

void configure_tc ( void  )

[callback_funcs]

[example_descriptor]

[module_inst]

[setup]

[config_tc]

[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 tc_16bit_config::compare_capture_channel, tc_config::counter_16_bit, tc_config::counter_size, tc_pwm_channel::enabled, tc_pwm_channel::pin_mux, tc_pwm_channel::pin_out, tc_config::pwm_channel, TC_COUNTER_SIZE_16BIT, tc_enable(), tc_get_config_defaults(), tc_init(), tc_instance, TC_WAVE_GENERATION_NORMAL_PWM, and tc_config::wave_generation.

void configure_tc_callbacks ( void  )

[setup_register_callback]

[setup_register_callback]

[setup_enable_callback]

[setup_enable_callback]

References TC_CALLBACK_CC_CHANNEL0, tc_callback_to_change_duty_cycle(), tc_enable_callback(), tc_instance, and tc_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_tc(), configure_tc_callbacks(), system_init(), and system_interrupt_enable_global().

void tc_callback_to_change_duty_cycle ( struct tc_module *const  module_inst)

[module_inst]

[callback_funcs]

References i, TC_COMPARE_CAPTURE_CHANNEL_0, and tc_set_compare_value().

Referenced by configure_tc_callbacks().