SAM D21 TCC RAMP2C Example Application.
Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
#include <string.h>
#include "conf_example.h"
Functions | |
void | config_ramp2c (void) |
static void | configure_ac (void) |
static void | configure_eic (void) |
static void | configure_evsys (void) |
static void | configure_tcc_ramp2c_mode (void) |
void | TCC0_Handler (void) |
Variables | |
static struct tcc_module | tcc_inst |
void config_ramp2c | ( | void | ) |
References configure_ac(), configure_eic(), configure_evsys(), and configure_tcc_ramp2c_mode().
Referenced by main().
|
static |
References ac_chan_enable(), AC_CHAN_FILTER_NONE, ac_chan_get_config_defaults(), AC_CHAN_MODE_CONTINUOUS, AC_CHAN_NEG_MUX_SCALED_VCC, AC_CHAN_OUTPUT_INTERNAL, AC_CHAN_POS_MUX_PIN3, ac_chan_set_config(), ac_enable(), ac_enable_events(), ac_get_config_defaults(), ac_init(), system_pinmux_config::direction, ac_chan_config::filter, GCLK_GENERATOR_1, ac_events::generate_event_on_state, system_pinmux_config::mux_position, ac_chan_config::negative_input, ac_chan_config::output_mode, ac_chan_config::positive_input, ac_chan_config::sample_mode, system_pinmux_get_config_defaults(), SYSTEM_PINMUX_PIN_DIR_INPUT, system_pinmux_pin_set_config(), and ac_chan_config::vcc_scale_factor.
|
static |
References extint_chan_conf::detection_criteria, extint_chan_get_config_defaults(), extint_chan_set_config(), EXTINT_DETECT_HIGH, extint_enable_events(), EXTINT_PULL_DOWN, extint_events::generate_event_on_detect, extint_chan_conf::gpio_pin, extint_chan_conf::gpio_pin_mux, and extint_chan_conf::gpio_pin_pull.
Referenced by config_ramp2c().
|
static |
Referenced by config_ramp2c().
|
static |
References tcc_recoverable_fault_config::blanking, tcc_recoverable_fault_config::blanking_cycles, tcc_counter_config::clock_prescaler, tcc_counter_config::clock_source, tcc_config::compare, tcc_config::counter, delay_init(), tcc_pins_config::enable_wave_out_pin, tcc_module::hw, tcc_match_wave_config::match, tcc_events::on_event_perform_channel_action, tcc_counter_config::period, tcc_config::pins, tcc_recoverable_fault_config::qualification, tcc_wave_extension_config::recoverable_fault, tcc_recoverable_fault_config::restart, tcc_recoverable_fault_config::source, tcc_enable(), tcc_enable_events(), TCC_FAULT_BLANKING_RISING_EDGE, TCC_FAULT_SOURCE_ENABLE, tcc_get_config_defaults(), tcc_init(), tcc_inst, TCC_RAMP_RAMP2, TCC_WAVE_GENERATION_SINGLE_SLOPE_PWM, tcc_config::wave_ext, tcc_match_wave_config::wave_generation, tcc_pins_config::wave_out_pin, tcc_pins_config::wave_out_pin_mux, tcc_match_wave_config::wave_polarity, and tcc_match_wave_config::wave_ramp.
Referenced by config_ramp2c().
void TCC0_Handler | ( | void | ) |
References delay_us.
|
static |
Referenced by configure_tcc_ramp2c_mode().