#include <avr32/io.h>
#include "compiler.h"
#include "board.h"
#include "power_clocks_lib.h"
#include "gpio.h"
#include "tc.h"
Macros | |
TC Channel Choice | |
#define | EXAMPLE_TC (&AVR32_TC) |
#define | EXAMPLE_TC_CHANNEL_ID 0 |
#define | EXAMPLE_TC_CHANNEL_PIN AVR32_TC_A0_0_0_PIN |
#define | EXAMPLE_TC_CHANNEL_FUNCTION AVR32_TC_A0_0_0_FUNCTION |
Functions | |
int | main (void) |
Main function. Execution starts here. More... | |
#define EXAMPLE_TC (&AVR32_TC) |
Referenced by main().
#define EXAMPLE_TC_CHANNEL_FUNCTION AVR32_TC_A0_0_0_FUNCTION |
Referenced by main().
#define EXAMPLE_TC_CHANNEL_ID 0 |
Referenced by main().
#define EXAMPLE_TC_CHANNEL_PIN AVR32_TC_A0_0_0_PIN |
Referenced by main().
int main | ( | void | ) |
Main function. Execution starts here.
References tc_waveform_opt_t::channel, EXAMPLE_TC, EXAMPLE_TC_CHANNEL_FUNCTION, EXAMPLE_TC_CHANNEL_ID, EXAMPLE_TC_CHANNEL_PIN, FOSC0, gpio_enable_module_pin(), OSC0_STARTUP, pcl_configure_clocks(), pcl_dfll_freq_param, PCL_OSC0, pcl_switch_to_osc(), SLEEP, TC_BURST_NOT_GATED, TC_CLOCK_RISING_EDGE, TC_CLOCK_SOURCE_TC3, TC_EVT_EFFECT_NOOP, TC_EVT_EFFECT_TOGGLE, TC_EXT_EVENT_SEL_TIOB_INPUT, tc_init_waveform(), TC_SEL_NO_EDGE, tc_start(), TC_WAVEFORM_SEL_UP_MODE, tc_write_ra(), and tc_write_rc().