Microchip® Advanced Software Framework

tc_example2.c File Reference
#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_OUTPUT_PIN   AVR32_TC_A0_0_0_PIN
 
#define EXAMPLE_TC_OUTPUT_FUNCTION   AVR32_TC_A0_0_0_FUNCTION
 
#define EXAMPLE_TC_INPUT_PIN   AVR32_TC_A1_0_0_PIN
 
#define EXAMPLE_TC_INPUT_FUNCTION   AVR32_TC_A1_0_0_FUNCTION
 

Functions

static void init_tc_input (volatile avr32_tc_t *tc, unsigned int channel)
 Initializes the timer/counter capture. More...
 
static void init_tc_output (volatile avr32_tc_t *tc, unsigned int channel)
 Initializes the timer/counter waveform. More...
 
int main (void)
 Main function. Execution starts here. More...
 

#define EXAMPLE_TC   (&AVR32_TC)

Referenced by main(), and tc_irq().

#define EXAMPLE_TC_INPUT_FUNCTION   AVR32_TC_A1_0_0_FUNCTION

Referenced by main().

#define EXAMPLE_TC_INPUT_PIN   AVR32_TC_A1_0_0_PIN

Referenced by main().

#define EXAMPLE_TC_OUTPUT_FUNCTION   AVR32_TC_A0_0_0_FUNCTION

Referenced by main().

#define EXAMPLE_TC_OUTPUT_PIN   AVR32_TC_A0_0_0_PIN

Referenced by main().

static void init_tc_input ( volatile avr32_tc_t *  tc,
unsigned int  channel 
)
static
static void init_tc_output ( volatile avr32_tc_t *  tc,
unsigned int  channel 
)
static