Microchip® Advanced Software Framework

uc3_a3_xplained.h File Reference
#include "compiler.h"
#include "led.h"

Macros

#define COMMON_SENSOR_PLATFORM
 Validate board support for the common sensor service. More...
 
#define LED0_GPIO   (AVR32_PIN_PB03)
 
#define LED1_GPIO   (AVR32_PIN_PX22)
 
#define LED2_GPIO   (AVR32_PIN_PB02)
 
#define LED3_GPIO   (AVR32_PIN_PB06)
 
#define LED_COUNT   4
 
Oscillator Definitions
#define FRCOSC   (AVR32_PM_RCOSC_FREQUENCY)
 System oscillator frequencies (Hz.) and startup times (periods). More...
 
#define FOSC32   (32768)
 Osc32 frequency (Hz.) and startup time (RCOsc periods). More...
 
#define OSC32_STARTUP   (AVR32_PM_OSCCTRL32_STARTUP_8192_RCOSC)
 
#define BOARD_OSC32_IS_XTAL   true
 OSC32 uses a crystal, not an external clock. More...
 
#define BOARD_OSC32_HZ   FOSC32
 Clock frequency of OSC32 in Hz. More...
 
#define BOARD_OSC32_STARTUP_US   (570000)
 Startup time of OSC32 in microseconds. More...
 
#define FOSC0   (12000000)
 Osc frequency (Hz.) and startup time (RCOsc periods). More...
 
#define OSC0_STARTUP   (AVR32_PM_OSCCTRL0_STARTUP_2048_RCOSC)
 
#define BOARD_OSC0_IS_XTAL   true
 OSC0 uses a crystal, not an external clock. More...
 
#define BOARD_OSC0_HZ   FOSC0
 Clock frequency of OSC0 in Hz. More...
 
#define BOARD_OSC0_STARTUP_US   (18000)
 Startup time of OSC0 in microseconds. More...
 
GPIO Connections of Push Buttons
#define GPIO_PUSH_BUTTON_0   (AVR32_PIN_PB01)
 
#define GPIO_PUSH_BUTTON_0_PRESSED   (0)
 
SDRAM Definitions
#define SDRAM_PART_HDR   "mt48lc16m16a2tg7e/mt48lc16m16a2tg7e.h"
 Part header file of used SDRAM(s). More...
 
#define SDRAM_DBW   16
 SDRAM(s) data bus width (always 16 bits on UC3) More...
 
USART connections to the UC3B board controller
#define USART   (&AVR32_USART1)
 
#define USART_RXD_PIN   AVR32_USART1_RXD_0_0_PIN
 
#define USART_RXD_FUNCTION   AVR32_USART1_RXD_0_0_FUNCTION
 
#define USART_TXD_PIN   AVR32_USART1_TXD_0_0_PIN
 
#define USART_TXD_FUNCTION   AVR32_USART1_TXD_0_0_FUNCTION
 
#define USART_IRQ   AVR32_USART1_IRQ
 
#define USART_IRQ_GROUP   AVR32_USART1_IRQ_GROUP
 
#define USART_SYSCLK   SYSCLK_USART1
 
TWI Master connections to GPIO
Todo:
The TWIM pins that are mapped here should correspond with the TWIM interfaces selected in the conf_board.h file. In addition, the default values below map TWIM the pins on the Xplaned J1 block. Modify the mappings or add appropriate conditional compilation as needed.
#define TWIMS0_TWD_PIN   AVR32_TWIMS0_TWD_0_0_PIN
 
#define TWIMS0_TWD_FUNCTION   AVR32_TWIMS0_TWD_0_0_FUNCTION
 
#define TWIMS0_TWCK_PIN   AVR32_TWIMS0_TWCK_0_0_PIN
 
#define TWIMS0_TWCK_FUNCTION   AVR32_TWIMS0_TWCK_0_0_FUNCTION
 
MXT143E Xplained top module
#define MXT143E_XPLAINED_PDCA_PID   AVR32_PDCA_PID_SPI1_TX
 
#define MXT143E_XPLAINED_SPI   &AVR32_SPI1
 
#define MXT143E_XPLAINED_TWI   &AVR32_TWIM0
 
#define MXT143E_XPLAINED_CS   (AVR32_PIN_PB09)
 
#define MXT143E_XPLAINED_SCK   (AVR32_SPI1_SCK_0_0_PIN)
 
#define MXT143E_XPLAINED_SCK_FUNCTION   (AVR32_SPI1_SCK_0_0_FUNCTION)
 
#define MXT143E_XPLAINED_MOSI   (AVR32_SPI1_MOSI_0_0_PIN)
 
#define MXT143E_XPLAINED_MOSI_FUNCTION   (AVR32_SPI1_MOSI_0_0_FUNCTION)
 
#define MXT143E_XPLAINED_MISO   (AVR32_SPI1_MISO_0_0_PIN)
 
#define MXT143E_XPLAINED_MISO_FUNCTION   (AVR32_SPI1_MISO_0_0_FUNCTION)
 
#define MXT143E_XPLAINED_CHG   (AVR32_PIN_PX57)
 
#define MXT143E_XPLAINED_DC   (AVR32_PIN_PX58)
 
#define MXT143E_XPLAINED_BACKLIGHT   (AVR32_PIN_PA20)
 
#define MXT143E_XPLAINED_LCD_RESET   (AVR32_PIN_PA18)
 
SPI Connections of the AT45DBX Data Flash Memory
#define AT45DBX_SPI   (&AVR32_SPI0)
 
#define AT45DBX_SPI_NPCS   1
 
#define AT45DBX_SPI_SCK_PIN   AVR32_SPI0_SCK_0_0_PIN
 
#define AT45DBX_SPI_SCK_FUNCTION   AVR32_SPI0_SCK_0_0_FUNCTION
 
#define AT45DBX_SPI_MISO_PIN   AVR32_SPI0_MISO_0_0_PIN
 
#define AT45DBX_SPI_MISO_FUNCTION   AVR32_SPI0_MISO_0_0_FUNCTION
 
#define AT45DBX_SPI_MOSI_PIN   AVR32_SPI0_MOSI_0_0_PIN
 
#define AT45DBX_SPI_MOSI_FUNCTION   AVR32_SPI0_MOSI_0_0_FUNCTION
 
#define AT45DBX_SPI_NPCS0_PIN   AVR32_SPI0_NPCS_1_0_PIN
 
#define AT45DBX_SPI_NPCS0_FUNCTION   AVR32_SPI0_NPCS_1_0_FUNCTION
 

#define AT45DBX_SPI   (&AVR32_SPI0)
#define AT45DBX_SPI_MISO_FUNCTION   AVR32_SPI0_MISO_0_0_FUNCTION

Referenced by board_init().

#define AT45DBX_SPI_MISO_PIN   AVR32_SPI0_MISO_0_0_PIN

Referenced by board_init().

#define AT45DBX_SPI_MOSI_FUNCTION   AVR32_SPI0_MOSI_0_0_FUNCTION

Referenced by board_init().

#define AT45DBX_SPI_MOSI_PIN   AVR32_SPI0_MOSI_0_0_PIN

Referenced by board_init().

#define AT45DBX_SPI_NPCS   1
#define AT45DBX_SPI_NPCS0_FUNCTION   AVR32_SPI0_NPCS_1_0_FUNCTION
#define AT45DBX_SPI_NPCS0_PIN   AVR32_SPI0_NPCS_1_0_PIN
#define AT45DBX_SPI_SCK_FUNCTION   AVR32_SPI0_SCK_0_0_FUNCTION

Referenced by board_init().

#define AT45DBX_SPI_SCK_PIN   AVR32_SPI0_SCK_0_0_PIN

Referenced by board_init().

#define COMMON_SENSOR_PLATFORM

Validate board support for the common sensor service.

#define GPIO_PUSH_BUTTON_0   (AVR32_PIN_PB01)

Referenced by board_init().

#define GPIO_PUSH_BUTTON_0_PRESSED   (0)
#define MXT143E_XPLAINED_BACKLIGHT   (AVR32_PIN_PA20)

Referenced by board_init().

#define MXT143E_XPLAINED_CHG   (AVR32_PIN_PX57)

Referenced by board_init().

#define MXT143E_XPLAINED_CS   (AVR32_PIN_PB09)

Referenced by board_init().

#define MXT143E_XPLAINED_DC   (AVR32_PIN_PX58)

Referenced by board_init().

#define MXT143E_XPLAINED_LCD_RESET   (AVR32_PIN_PA18)

Referenced by board_init().

#define MXT143E_XPLAINED_MISO   (AVR32_SPI1_MISO_0_0_PIN)

Referenced by board_init().

#define MXT143E_XPLAINED_MISO_FUNCTION   (AVR32_SPI1_MISO_0_0_FUNCTION)

Referenced by board_init().

#define MXT143E_XPLAINED_MOSI   (AVR32_SPI1_MOSI_0_0_PIN)

Referenced by board_init().

#define MXT143E_XPLAINED_MOSI_FUNCTION   (AVR32_SPI1_MOSI_0_0_FUNCTION)

Referenced by board_init().

#define MXT143E_XPLAINED_PDCA_PID   AVR32_PDCA_PID_SPI1_TX
#define MXT143E_XPLAINED_SCK   (AVR32_SPI1_SCK_0_0_PIN)

Referenced by board_init().

#define MXT143E_XPLAINED_SCK_FUNCTION   (AVR32_SPI1_SCK_0_0_FUNCTION)

Referenced by board_init().

#define MXT143E_XPLAINED_SPI   &AVR32_SPI1
#define MXT143E_XPLAINED_TWI   &AVR32_TWIM0
#define SDRAM_DBW   16

SDRAM(s) data bus width (always 16 bits on UC3)

#define SDRAM_PART_HDR   "mt48lc16m16a2tg7e/mt48lc16m16a2tg7e.h"

Part header file of used SDRAM(s).

#define TWIMS0_TWCK_FUNCTION   AVR32_TWIMS0_TWCK_0_0_FUNCTION

Referenced by board_init().

#define TWIMS0_TWCK_PIN   AVR32_TWIMS0_TWCK_0_0_PIN

Referenced by board_init().

#define TWIMS0_TWD_FUNCTION   AVR32_TWIMS0_TWD_0_0_FUNCTION

Referenced by board_init().

#define TWIMS0_TWD_PIN   AVR32_TWIMS0_TWD_0_0_PIN

Referenced by board_init().

#define USART   (&AVR32_USART1)
#define USART_IRQ   AVR32_USART1_IRQ
#define USART_IRQ_GROUP   AVR32_USART1_IRQ_GROUP
#define USART_RXD_FUNCTION   AVR32_USART1_RXD_0_0_FUNCTION

Referenced by board_init().

#define USART_RXD_PIN   AVR32_USART1_RXD_0_0_PIN

Referenced by board_init().

#define USART_SYSCLK   SYSCLK_USART1
#define USART_TXD_FUNCTION   AVR32_USART1_TXD_0_0_FUNCTION

Referenced by board_init().

#define USART_TXD_PIN   AVR32_USART1_TXD_0_0_PIN

Referenced by board_init().