Microchip® Advanced Software Framework

example1/tc_example1.c File Reference

AVR XMEGA TC Driver Example 1.

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

#include <conf_example.h>
#include <string.h>
#include <asf.h>

Functions

static void example_cca_interrupt_callback (void)
 Timer Counter Capture/Compare A interrupt callback function. More...
 
static void example_ccb_interrupt_callback (void)
 Timer Counter Capture/Compare B interrupt callback function. More...
 
static void example_ovf_interrupt_callback (void)
 Timer Counter Overflow interrupt callback function. More...
 
int main (void)
 

static void example_cca_interrupt_callback ( void  )
static

Timer Counter Capture/Compare A interrupt callback function.

This function is called when an a capture compare channel A has occurred TIMER_EXAMPLE and toggles LED1.

References gpio_toggle_pin.

Referenced by main().

static void example_ccb_interrupt_callback ( void  )
static

Timer Counter Capture/Compare B interrupt callback function.

This function is called when an a capture compare channel B has occurred TIMER_EXAMPLE and toggles LED2.

References gpio_toggle_pin.

Referenced by main().

static void example_ovf_interrupt_callback ( void  )
static

Timer Counter Overflow interrupt callback function.

This function is called when an overflow interrupt has occurred on TIMER_EXAMPLE and toggles LED0.

References gpio_toggle_pin.

Referenced by main().