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_USART   (&AVR32_USART1)
 Base address of USART module to use. More...
 
#define EXAMPLE_USART_BAUD   9600
 Baud rate to use with USART module. More...
 
#define EXAMPLE_USART_RX_PIN   AVR32_USART1_RXD_0_0_PIN
 GPIO Pin to use as USART RX. More...
 
#define EXAMPLE_USART_RX_FUNCTION   AVR32_USART1_RXD_0_0_FUNCTION
 Alternate function of the GPIO pin to use (Here USART RX). More...
 
#define EXAMPLE_USART_TX_PIN   AVR32_USART1_TXD_0_0_PIN
 GPIO Pin to use as USART TX. More...
 
#define EXAMPLE_USART_TX_FUNCTION   AVR32_USART1_TXD_0_0_FUNCTION
 Alternate function of the GPIO pin to use (Here USART TX). More...
 

#define EXAMPLE_USART   (&AVR32_USART1)

Base address of USART module to use.

Note
USART module 1 is used in this example.

Referenced by main().

#define EXAMPLE_USART_BAUD   9600

Baud rate to use with USART module.

Note
9600 is used as baud rate in this example.
#define EXAMPLE_USART_RX_FUNCTION   AVR32_USART1_RXD_0_0_FUNCTION

Alternate function of the GPIO pin to use (Here USART RX).

Note
USART1 RX is used as the functionality of PA05
#define EXAMPLE_USART_RX_PIN   AVR32_USART1_RXD_0_0_PIN

GPIO Pin to use as USART RX.

Note
PA05 is used as USART1 RX
#define EXAMPLE_USART_TX_FUNCTION   AVR32_USART1_TXD_0_0_FUNCTION

Alternate function of the GPIO pin to use (Here USART TX).

Note
USART1 TX is used as the functionality of PA06
#define EXAMPLE_USART_TX_PIN   AVR32_USART1_TXD_0_0_PIN

GPIO Pin to use as USART TX.

Note
PA06 is used as USART1 TX