Microchip® Advanced Software Framework

conf_example3.h File Reference

Clock system example 3 configuration for XMEGA-A1U Xplained Pro.

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

#include <board.h>

Macros

Example configuration
#define LED_TC   TCE0
 Timer/counter to use for LED output. More...
 
#define TC_SYSCLK_PORT   SYSCLK_PORT_E
 Timer/counter port. More...
 
#define TC_SYSCLK_MODULE   SYSCLK_TC0
 Timer/counter module. More...
 
#define NEXT_BUTTON   SW0_PIN
 Pin to use for button input. More...
 

#define LED_TC   TCE0

Timer/counter to use for LED output.

This is the timer/counter module to use for outputting a signal indicating the peripheral clock frequency of the device. Compare/capture channel A of the timer/counter is used in this example, corresponding to pin 0 on its associated port.

Note
This TC is on port E, which is connected to the onboard LEDs.

Referenced by tc_init().

#define NEXT_BUTTON   SW0_PIN

Pin to use for button input.

This is the active low pin to use for user input.

Note
The pin is assumed to be configured by the board initialization.
This is the onboard push button next to LED0.

Referenced by wait_for_switches().

#define TC_SYSCLK_MODULE   SYSCLK_TC0

Timer/counter module.

This specifies to the System Clock Management which timer/counter on the port to enable the peripheral clock for.

#define TC_SYSCLK_PORT   SYSCLK_PORT_E

Timer/counter port.

This specifies to the System Clock Management which port the timer/counter is on.

Referenced by tc_init().