Microchip® Advanced Software Framework

qs_tc_timer.c File Reference

SAM TC - Timer Counter Driver Quick Start.

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

#include <asf.h>
#include "conf_qs_tc_timer.h"

Functions

void configure_tc (void)
 [callback_funcs] More...
 
void configure_tc_callbacks (void)
 
int main (void)
 [setup] More...
 
void tc_callback_to_toggle_led (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_set_config]

[setup_set_config]

[setup_enable]

[setup_enable]

References tc_config::clock_prescaler, tc_config::clock_source, tc_8bit_config::compare_capture_channel, tc_config::counter_8_bit, tc_config::counter_size, GCLK_GENERATOR_0, GCLK_GENERATOR_1, tc_8bit_config::period, TC_CLOCK_PRESCALER_DIV1024, TC_COUNTER_SIZE_8BIT, tc_enable(), tc_get_config_defaults(), tc_init(), and tc_instance.

Referenced by main().

void configure_tc_callbacks ( void  )

[setup_register_callback]

[setup_register_callback]

[setup_enable_callback]

[setup_enable_callback]

References TC_CALLBACK_CC_CHANNEL0, TC_CALLBACK_CC_CHANNEL1, TC_CALLBACK_OVERFLOW, tc_callback_to_toggle_led(), 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_toggle_led ( struct tc_module *const  module_inst)

[module_inst]

[callback_funcs]

References port_pin_toggle_output_level().

Referenced by configure_tc_callbacks().

struct tc_module tc_instance

[module_inst]

Referenced by configure_tc(), and configure_tc_callbacks().