Atmel Software Framework

ports/avr32/board_init.h File Reference
#include <board.h>
#include <wl_api.h>
#include <conf_clock.h>

Macros

#define BOARD_RS232_0   AVR32_USART1
 
#define BOARD_RS232_0_RX   { AVR32_USART1_RXD_0_0_PIN, AVR32_USART1_RXD_0_0_FUNCTION }
 
#define BOARD_RS232_0_TX   { AVR32_USART1_TXD_0_0_PIN, AVR32_USART1_TXD_0_0_FUNCTION }
 
#define BOARD_RS232_1   AVR32_USART0
 
#define BOARD_RS232_1_RX   { AVR32_USART0_RXD_0_0_PIN, AVR32_USART0_RXD_0_0_FUNCTION },
 
#define BOARD_RS232_1_TX   { AVR32_USART0_TXD_0_0_PIN, AVR32_USART0_TXD_0_0_FUNCTION }
 
#define CONFIG_CONSOLE_PORT   BOARD_RS232_0
 
#define WL_PDCA_PID_RX   AVR32_PDCA_PID_SPI1_RX
 
#define WL_PDCA_PID_TX   AVR32_PDCA_PID_SPI1_TX
 
#define WL_SPI   AVR32_SPI1 /* Pin 8 NC, so no irq support if using SD-slot */
 
#define WL_SPI_CLOCK_DIVIDER   3 /* due to adapter */
 
#define WL_SPI_CS   1
 
#define WL_SPI_MISO   { AVR32_SPI1_MISO_0_0_PIN, AVR32_SPI1_MISO_0_0_FUNCTION }
 
#define WL_SPI_MOSI   { AVR32_SPI1_MOSI_0_0_PIN, AVR32_SPI1_MOSI_0_0_FUNCTION }
 
#define WL_SPI_NPCS   { AVR32_SPI1_NPCS_1_0_PIN, AVR32_SPI1_NPCS_1_0_FUNCTION }
 
#define WL_SPI_NPCS0   { AVR32_SPI1_NPCS_0_0_PIN, AVR32_SPI1_NPCS_0_0_FUNCTION }
 
#define WL_SPI_SCK   { AVR32_SPI1_SCK_0_0_PIN, AVR32_SPI1_SCK_0_0_FUNCTION }
 

Functions

void board_init (void)
 

#define BOARD_RS232_0   AVR32_USART1
#define BOARD_RS232_0_RX   { AVR32_USART1_RXD_0_0_PIN, AVR32_USART1_RXD_0_0_FUNCTION }

Referenced by init_rs232().

#define BOARD_RS232_0_TX   { AVR32_USART1_TXD_0_0_PIN, AVR32_USART1_TXD_0_0_FUNCTION }

Referenced by init_rs232().

#define BOARD_RS232_1   AVR32_USART0
#define BOARD_RS232_1_RX   { AVR32_USART0_RXD_0_0_PIN, AVR32_USART0_RXD_0_0_FUNCTION },

Referenced by init_rs232().

#define BOARD_RS232_1_TX   { AVR32_USART0_TXD_0_0_PIN, AVR32_USART0_TXD_0_0_FUNCTION }

Referenced by init_rs232().

#define CONFIG_CONSOLE_PORT   BOARD_RS232_0

Referenced by board_putchar(), init_printk(), and io_getc().

#define WL_PDCA_PID_RX   AVR32_PDCA_PID_SPI1_RX
#define WL_PDCA_PID_TX   AVR32_PDCA_PID_SPI1_TX
#define WL_SPI   AVR32_SPI1 /* Pin 8 NC, so no irq support if using SD-slot */

Referenced by init_spi().

#define WL_SPI_CLOCK_DIVIDER   3 /* due to adapter */
#define WL_SPI_CS   1
#define WL_SPI_MISO   { AVR32_SPI1_MISO_0_0_PIN, AVR32_SPI1_MISO_0_0_FUNCTION }

Referenced by init_spi().

#define WL_SPI_MOSI   { AVR32_SPI1_MOSI_0_0_PIN, AVR32_SPI1_MOSI_0_0_FUNCTION }

Referenced by init_spi().

#define WL_SPI_NPCS   { AVR32_SPI1_NPCS_1_0_PIN, AVR32_SPI1_NPCS_1_0_FUNCTION }

Referenced by init_spi().

#define WL_SPI_NPCS0   { AVR32_SPI1_NPCS_0_0_PIN, AVR32_SPI1_NPCS_0_0_FUNCTION }

Referenced by init_spi().

#define WL_SPI_SCK   { AVR32_SPI1_SCK_0_0_PIN, AVR32_SPI1_SCK_0_0_FUNCTION }

Referenced by init_spi().

void board_init ( void  )