Microchip® Advanced Software Framework

conf_example.h File Reference

Example configuration.

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

Macros

Example configuration
#define EXAMPLE_TC   (&AVR32_TC)
 Base address of TC module to use. More...
 
#define EXAMPLE_TC_CHANNEL   0
 Channel to use with TC module. More...
 
#define EXAMPLE_TC_IRQ   AVR32_TC_IRQ0
 IRQ Line number for TC module. More...
 
#define EXAMPLE_TC_IRQ_PRIORITY   AVR32_INTC_INT0
 IRQ Group number for TC module. More...
 
#define EXAMPLE_TOGGLE_PIN   AVR32_PIN_PA03
 GPIO Line to toggle on compare match. More...
 

#define EXAMPLE_TC   (&AVR32_TC)

Base address of TC module to use.

Note
TC module is used in this example.

Referenced by main(), and tc_irq().

#define EXAMPLE_TC_CHANNEL   0

Channel to use with TC module.

Note
TC Channel 0 is used.

Referenced by tc_init(), and tc_irq().

#define EXAMPLE_TC_IRQ   AVR32_TC_IRQ0

IRQ Line number for TC module.

Note
IRQ0 line of channel 0 is used.

Referenced by main().

#define EXAMPLE_TC_IRQ_PRIORITY   AVR32_INTC_INT0

IRQ Group number for TC module.

Note
Interrupt priority 0 is used for TC in this example.

Referenced by main().

#define EXAMPLE_TOGGLE_PIN   AVR32_PIN_PA03

GPIO Line to toggle on compare match.

Note
GPIO PA03 is toggled on compare match in this example.

Referenced by tc_irq().