Atmel Software Framework

usart_example.c File Reference
#include <avr32/io.h>
#include "compiler.h"
#include "board.h"
#include "power_clocks_lib.h"
#include "gpio.h"
#include "usart.h"

Macros

USART Settings
#define EXAMPLE_TARGET_PBACLK_FREQ_HZ   FOSC0
 
#define EXAMPLE_USART   (&AVR32_USART1)
 
#define EXAMPLE_USART_RX_PIN   AVR32_USART1_RXD_0_0_PIN
 
#define EXAMPLE_USART_RX_FUNCTION   AVR32_USART1_RXD_0_0_FUNCTION
 
#define EXAMPLE_USART_TX_PIN   AVR32_USART1_TXD_0_0_PIN
 
#define EXAMPLE_USART_TX_FUNCTION   AVR32_USART1_TXD_0_0_FUNCTION
 
#define EXAMPLE_USART_CLOCK_MASK   AVR32_USART1_CLK_PBA
 
#define EXAMPLE_PDCA_CLOCK_HSB   AVR32_PDCA_CLK_HSB
 
#define EXAMPLE_PDCA_CLOCK_PB   AVR32_PDCA_CLK_PBA
 

Functions

int main (void)
 This is an example demonstrating the USART RS232 TX and RX functionalities using the USART driver. More...
 

#define EXAMPLE_PDCA_CLOCK_HSB   AVR32_PDCA_CLK_HSB

Referenced by main().

#define EXAMPLE_PDCA_CLOCK_PB   AVR32_PDCA_CLK_PBA

Referenced by main().

#define EXAMPLE_TARGET_PBACLK_FREQ_HZ   FOSC0

Referenced by main().

#define EXAMPLE_USART   (&AVR32_USART1)

Referenced by main().

#define EXAMPLE_USART_CLOCK_MASK   AVR32_USART1_CLK_PBA

Referenced by main().

#define EXAMPLE_USART_RX_FUNCTION   AVR32_USART1_RXD_0_0_FUNCTION

Referenced by main().

#define EXAMPLE_USART_RX_PIN   AVR32_USART1_RXD_0_0_PIN

Referenced by main().

#define EXAMPLE_USART_TX_FUNCTION   AVR32_USART1_TXD_0_0_FUNCTION

Referenced by main().

#define EXAMPLE_USART_TX_PIN   AVR32_USART1_TXD_0_0_PIN

Referenced by main().