Xmega Application Note


board.h File Reference

Standard board header file. More...

#include "compiler.h"
Include dependency graph for board.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

Base Boards

#define EVK1100   1
 AT32UC3A EVK1100 board.
#define EVK1101   2
 AT32UC3B EVK1101 board.
#define EVK1104   4
 AT32UC3A3 EVK1104 board.
#define EVK1105   5
 AT32UC3A EVK1105 board.
#define STK600_RC064X   10
 ATxmega256A3 STK600 board.
#define STK600_RC100X   11
 ATxmega128A1 STK600 board.
#define STK600_RCUC3L0   6
 STK600 RCUC3L0 board.
#define UC3C_EK   3
 AT32UC3C UC3C_EK board.
#define UC3L_EK   7
 AT32UC3L-EK board.
#define USER_BOARD   99
 User-reserved board (if any).
#define XPLAIN   8
 ATxmega128A1 Xplain board.
#define XPLAIN_A1   9
 ATxmega128A1U Xplain-A1 board.
Extension Boards

#define EXT1102   1
 AT32UC3B EXT1102 board.
#define MC300   2
 AT32UC3 MC300 board.
#define USER_EXT_BOARD   99

Functions

AVR32_PM_RCOSC_FREQUENCY void board_init (void)
 < Default RCOsc frequency.

Detailed Description

Standard board header file.

This file includes the appropriate board header file according to the defined board (parameter BOARD).

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file board.h.


Define Documentation

#define EVK1100   1

AT32UC3A EVK1100 board.

Definition at line 57 of file board.h.

#define EVK1101   2

AT32UC3B EVK1101 board.

Definition at line 58 of file board.h.

#define EVK1104   4

AT32UC3A3 EVK1104 board.

Definition at line 60 of file board.h.

#define EVK1105   5

AT32UC3A EVK1105 board.

Definition at line 61 of file board.h.

#define EXT1102   1

AT32UC3B EXT1102 board.

Definition at line 76 of file board.h.

#define MC300   2

AT32UC3 MC300 board.

Definition at line 77 of file board.h.

#define STK600_RC064X   10

ATxmega256A3 STK600 board.

Definition at line 66 of file board.h.

#define STK600_RC100X   11

ATxmega128A1 STK600 board.

Definition at line 67 of file board.h.

#define STK600_RCUC3L0   6

STK600 RCUC3L0 board.

Definition at line 62 of file board.h.

#define UC3C_EK   3

AT32UC3C UC3C_EK board.

Definition at line 59 of file board.h.

#define UC3L_EK   7

AT32UC3L-EK board.

Definition at line 63 of file board.h.

#define USER_BOARD   99

User-reserved board (if any).

Definition at line 69 of file board.h.

#define USER_EXT_BOARD   99

User-reserved extension board (if any).

Definition at line 78 of file board.h.

#define XPLAIN   8

ATxmega128A1 Xplain board.

Definition at line 64 of file board.h.

#define XPLAIN_A1   9

ATxmega128A1U Xplain-A1 board.

Definition at line 65 of file board.h.


Function Documentation

AVR32_PM_RCOSC_FREQUENCY void board_init ( void   ) 

< Default RCOsc frequency.

This function initializes the board target ressources This function should be called to ensure proper initialization of the target board hardware connected to the part.

Definition at line 46 of file init.c.

References AT45DBX_CS, AT45DBX_MASTER_MISO, AT45DBX_MASTER_MOSI, AT45DBX_MASTER_SCK, AT45DBX_MASTER_SS, GPIO_PUSH_BUTTON_0, GPIO_PUSH_BUTTON_1, GPIO_PUSH_BUTTON_2, GPIO_PUSH_BUTTON_3, GPIO_PUSH_BUTTON_4, GPIO_PUSH_BUTTON_5, GPIO_PUSH_BUTTON_6, GPIO_PUSH_BUTTON_7, ioport_configure_pin(), IOPORT_CREATE_PIN, IOPORT_DIR_INPUT, IOPORT_DIR_OUTPUT, IOPORT_INIT_HIGH, IOPORT_PULL_UP, LED0_GPIO, LED1_GPIO, LED2_GPIO, LED3_GPIO, LED4_GPIO, LED5_GPIO, LED6_GPIO, LED7_GPIO, and LEDUSB_GPIO.

00047 {
00048         ioport_configure_pin(LED0_GPIO, IOPORT_DIR_OUTPUT | IOPORT_INIT_HIGH);
00049         ioport_configure_pin(LED1_GPIO, IOPORT_DIR_OUTPUT | IOPORT_INIT_HIGH);
00050         ioport_configure_pin(LED2_GPIO, IOPORT_DIR_OUTPUT | IOPORT_INIT_HIGH);
00051         ioport_configure_pin(LED3_GPIO, IOPORT_DIR_OUTPUT | IOPORT_INIT_HIGH);
00052         ioport_configure_pin(LED4_GPIO, IOPORT_DIR_OUTPUT | IOPORT_INIT_HIGH);
00053         ioport_configure_pin(LED5_GPIO, IOPORT_DIR_OUTPUT | IOPORT_INIT_HIGH);
00054         ioport_configure_pin(LED6_GPIO, IOPORT_DIR_OUTPUT | IOPORT_INIT_HIGH);
00055         ioport_configure_pin(LED7_GPIO, IOPORT_DIR_OUTPUT | IOPORT_INIT_HIGH);
00056 
00057         ioport_configure_pin(GPIO_PUSH_BUTTON_0, IOPORT_DIR_INPUT
00058                         | IOPORT_PULL_UP);
00059         ioport_configure_pin(GPIO_PUSH_BUTTON_1, IOPORT_DIR_INPUT
00060                         | IOPORT_PULL_UP);
00061         ioport_configure_pin(GPIO_PUSH_BUTTON_2, IOPORT_DIR_INPUT
00062                         | IOPORT_PULL_UP);
00063         ioport_configure_pin(GPIO_PUSH_BUTTON_3, IOPORT_DIR_INPUT
00064                         | IOPORT_PULL_UP);
00065         ioport_configure_pin(GPIO_PUSH_BUTTON_4, IOPORT_DIR_INPUT
00066                         | IOPORT_PULL_UP);
00067         ioport_configure_pin(GPIO_PUSH_BUTTON_5, IOPORT_DIR_INPUT
00068                         | IOPORT_PULL_UP);
00069         ioport_configure_pin(GPIO_PUSH_BUTTON_6, IOPORT_DIR_INPUT
00070                         | IOPORT_PULL_UP);
00071         ioport_configure_pin(GPIO_PUSH_BUTTON_7, IOPORT_DIR_INPUT
00072                         | IOPORT_PULL_UP);
00073   
00074         #ifdef CONF_BOARD_AT45DBX
00075         ioport_configure_pin(AT45DBX_MASTER_SS, IOPORT_DIR_OUTPUT
00076                         | IOPORT_INIT_HIGH);
00077         ioport_configure_pin(AT45DBX_MASTER_SCK, IOPORT_DIR_OUTPUT
00078                         | IOPORT_INIT_HIGH);
00079         ioport_configure_pin(AT45DBX_MASTER_MOSI, IOPORT_DIR_OUTPUT
00080                         | IOPORT_INIT_HIGH);
00081         ioport_configure_pin(AT45DBX_CS, IOPORT_DIR_OUTPUT | IOPORT_INIT_HIGH);
00082         #endif
00083 
00084         #ifdef CONF_BOARD_ENABLE_USARTC0
00085         ioport_configure_pin(IOPORT_CREATE_PIN(PORTC, 3), IOPORT_DIR_OUTPUT
00086                         | IOPORT_INIT_HIGH);
00087         ioport_configure_pin(IOPORT_CREATE_PIN(PORTC, 2), IOPORT_DIR_INPUT);
00088         #endif
00089 
00090         #ifdef CONF_BOARD_ENABLE_USARTC1
00091         ioport_configure_pin(IOPORT_CREATE_PIN(PORTC, 7), IOPORT_DIR_OUTPUT
00092                         | IOPORT_INIT_HIGH);
00093         ioport_configure_pin(IOPORT_CREATE_PIN(PORTC, 6), IOPORT_DIR_INPUT);
00094         #endif
00095 
00096         #ifdef CONF_BOARD_ENABLE_USARTD0
00097         ioport_configure_pin(IOPORT_CREATE_PIN(PORTD, 3), IOPORT_DIR_OUTPUT
00098                         | IOPORT_INIT_HIGH);
00099         ioport_configure_pin(IOPORT_CREATE_PIN(PORTD, 2), IOPORT_DIR_INPUT);
00100         #endif
00101 
00102         #ifdef CONF_BOARD_ENABLE_USARTD1
00103         ioport_configure_pin(IOPORT_CREATE_PIN(PORTD, 7), IOPORT_DIR_OUTPUT
00104                         | IOPORT_INIT_HIGH);
00105         ioport_configure_pin(IOPORT_CREATE_PIN(PORTD, 6), IOPORT_DIR_INPUT);
00106         #endif
00107 
00108         #ifdef CONF_BOARD_ENABLE_USARTE0
00109         ioport_configure_pin(IOPORT_CREATE_PIN(PORTE, 3), IOPORT_DIR_OUTPUT
00110                         | IOPORT_INIT_HIGH);
00111         ioport_configure_pin(IOPORT_CREATE_PIN(PORTE, 2), IOPORT_DIR_INPUT);
00112         #endif
00113 }

Here is the call graph for this function:

@DOC_TITLE@
Generated on Fri Oct 22 12:15:25 2010 for AVR1300 Using the Xmega ADC by doxygen 1.6.3