Microchip® Advanced Software Framework

tc_event_example4_uc3l.c File Reference
#include <avr32/io.h>
#include "intc.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_TC0)
 
#define EXAMPLE_TC_CHANNEL   1
 
#define EXAMPLE_TC_IRQ_GROUP   AVR32_TC0_IRQ_GROUP
 
#define EXAMPLE_TC_IRQ   AVR32_TC0_IRQ1
 
#define EXAMPLE_EVENT_PIN   AVR32_PIN_PA11
 

Functions

static void init_tc_input (volatile avr32_tc_t *tc, unsigned int channel)
 Initializes the timer/counter capture. More...
 
int main (void)
 Main function: More...
 
static void tc_irq_handler (void)
 TC interrupt handler. More...
 

Variables

static volatile int chan_status = 0
 

#define EXAMPLE_EVENT_PIN   AVR32_PIN_PA11

Referenced by main().

#define EXAMPLE_TC   (&AVR32_TC0)

Referenced by main(), and tc_irq_handler().

#define EXAMPLE_TC_CHANNEL   1

Referenced by main(), and tc_irq_handler().

#define EXAMPLE_TC_IRQ   AVR32_TC0_IRQ1

Referenced by main().

#define EXAMPLE_TC_IRQ_GROUP   AVR32_TC0_IRQ_GROUP

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

TC interrupt handler.

References chan_status, EXAMPLE_TC, EXAMPLE_TC_CHANNEL, gpio_tgl_gpio_pin(), LED0_GPIO, and tc_read_sr().

Referenced by main().

volatile int chan_status = 0
static

Referenced by tc_irq_handler().