Atmel Software Framework

spi_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_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_SPI   (&AVR32_USART2)
 
#define EXAMPLE_USART_SPI_SCK_PIN   AVR32_USART2_CLK_0_PIN
 
#define EXAMPLE_USART_SPI_SCK_FUNCTION   AVR32_USART2_CLK_0_FUNCTION
 
#define EXAMPLE_USART_SPI_MISO_PIN   AVR32_USART2_RXD_0_0_PIN
 
#define EXAMPLE_USART_SPI_MISO_FUNCTION   AVR32_USART2_RXD_0_0_FUNCTION
 
#define EXAMPLE_USART_SPI_MOSI_PIN   AVR32_USART2_TXD_0_0_PIN
 
#define EXAMPLE_USART_SPI_MOSI_FUNCTION   AVR32_USART2_TXD_0_0_FUNCTION
 
#define EXAMPLE_USART_SPI_NSS_PIN   AVR32_USART2_RTS_0_0_PIN
 
#define EXAMPLE_USART_SPI_NSS_FUNCTION   AVR32_USART2_RTS_0_0_FUNCTION
 

Functions

int main (void)
 This is an example demonstrating the SPI mode of USART IP functionalities using the USART driver. More...
 

#define EXAMPLE_USART   (&AVR32_USART1)

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_SPI   (&AVR32_USART2)

Referenced by main().

#define EXAMPLE_USART_SPI_MISO_FUNCTION   AVR32_USART2_RXD_0_0_FUNCTION

Referenced by main().

#define EXAMPLE_USART_SPI_MISO_PIN   AVR32_USART2_RXD_0_0_PIN

Referenced by main().

#define EXAMPLE_USART_SPI_MOSI_FUNCTION   AVR32_USART2_TXD_0_0_FUNCTION

Referenced by main().

#define EXAMPLE_USART_SPI_MOSI_PIN   AVR32_USART2_TXD_0_0_PIN

Referenced by main().

#define EXAMPLE_USART_SPI_NSS_FUNCTION   AVR32_USART2_RTS_0_0_FUNCTION

Referenced by main().

#define EXAMPLE_USART_SPI_NSS_PIN   AVR32_USART2_RTS_0_0_PIN

Referenced by main().

#define EXAMPLE_USART_SPI_SCK_FUNCTION   AVR32_USART2_CLK_0_FUNCTION

Referenced by main().

#define EXAMPLE_USART_SPI_SCK_PIN   AVR32_USART2_CLK_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().