Microchip® Advanced Software Framework

qs_tcc_basic.c File Reference

SAM Timer/Counter Driver for Control Applications Basic Quickstart.

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

#include <asf.h>
#include <conf_quick_start.h>

Functions

static void configure_tcc (void)
 [module_inst] More...
 
int main (void)
 [setup] More...
 

Variables

struct tcc_module tcc_instance
 [module_inst] More...
 

static void configure_tcc ( void  )
static

[module_inst]

[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_counter_config::clock_prescaler, 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_CLOCK_PRESCALER_DIV256, 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().

int main ( void  )

[setup]

[setup_init]

[setup_init]

[main]

[main_loop]

[main_loop]

[main]

References configure_tcc(), and system_init().

struct tcc_module tcc_instance

[module_inst]