4 * \brief Standard board header file.
\r
6 * This file includes the appropriate board header file according to the
\r
7 * defined board (parameter BOARD).
\r
9 * Copyright (c) 2009-2012 Atmel Corporation. All rights reserved.
\r
11 * \asf_license_start
\r
15 * Redistribution and use in source and binary forms, with or without
\r
16 * modification, are permitted provided that the following conditions are met:
\r
18 * 1. Redistributions of source code must retain the above copyright notice,
\r
19 * this list of conditions and the following disclaimer.
\r
21 * 2. Redistributions in binary form must reproduce the above copyright notice,
\r
22 * this list of conditions and the following disclaimer in the documentation
\r
23 * and/or other materials provided with the distribution.
\r
25 * 3. The name of Atmel may not be used to endorse or promote products derived
\r
26 * from this software without specific prior written permission.
\r
28 * 4. This software may only be redistributed and used in connection with an
\r
29 * Atmel microcontroller product.
\r
31 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
\r
32 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
\r
33 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
\r
34 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
\r
35 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
\r
36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
\r
37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
\r
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
\r
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
\r
40 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
\r
41 * POSSIBILITY OF SUCH DAMAGE.
\r
51 * \defgroup group_common_boards Generic board support
\r
53 * The generic board support module includes board-specific definitions
\r
54 * and function prototypes, such as the board initialization function.
\r
59 #include "compiler.h"
\r
66 /*! \name Base Boards
\r
69 #define EVK1100 1 //!< AT32UC3A EVK1100 board.
\r
70 #define EVK1101 2 //!< AT32UC3B EVK1101 board.
\r
71 #define UC3C_EK 3 //!< AT32UC3C UC3C_EK board.
\r
72 #define EVK1104 4 //!< AT32UC3A3 EVK1104 board.
\r
73 #define EVK1105 5 //!< AT32UC3A EVK1105 board.
\r
74 #define STK600_RCUC3L0 6 //!< STK600 RCUC3L0 board.
\r
75 #define UC3L_EK 7 //!< AT32UC3L-EK board.
\r
76 #define XPLAIN 8 //!< ATxmega128A1 Xplain board.
\r
77 #define STK600_RC064X 10 //!< ATxmega256A3 STK600 board.
\r
78 #define STK600_RC100X 11 //!< ATxmega128A1 STK600 board.
\r
79 #define UC3_A3_XPLAINED 13 //!< ATUC3A3 UC3-A3 Xplained board.
\r
80 #define UC3_L0_XPLAINED 15 //!< ATUC3L0 UC3-L0 Xplained board.
\r
81 #define STK600_RCUC3D 16 //!< STK600 RCUC3D board.
\r
82 #define STK600_RCUC3C0 17 //!< STK600 RCUC3C board.
\r
83 #define XMEGA_B1_XPLAINED 18 //!< ATxmega128B1 Xplained board.
\r
84 #define XMEGA_A1_XPLAINED 19 //!< ATxmega128A1 Xplain-A1 board.
\r
85 #define STK600_RCUC3L4 21 //!< ATUCL4 STK600 board
\r
86 #define UC3_L0_XPLAINED_BC 22 //!< ATUC3L0 UC3-L0 Xplained board controller board
\r
87 #define MEGA1284P_XPLAINED_BC 23 //!< ATmega1284P-Xplained board controller board
\r
88 #define STK600_RC044X 24 //!< STK600 with RC044X routing card board.
\r
89 #define STK600_RCUC3B0 25 //!< STK600 RCUC3B0 board.
\r
90 #define UC3_L0_QT600 26 //!< QT600 UC3L0 MCU board.
\r
91 #define XMEGA_A3BU_XPLAINED 27 //!< ATxmega256A3BU Xplained board.
\r
92 #define STK600_RC064X_LCDX 28 //!< XMEGAB3 STK600 RC064X LCDX board.
\r
93 #define STK600_RC100X_LCDX 29 //!< XMEGAB1 STK600 RC100X LCDX board.
\r
94 #define UC3B_BOARD_CONTROLLER 30 //!< AT32UC3B1 board controller for Atmel boards
\r
95 #define RZ600 31 //!< AT32UC3A RZ600 MCU board
\r
96 #define SAM3S_EK 32 //!< SAM3S-EK board.
\r
97 #define SAM3U_EK 33 //!< SAM3U-EK board.
\r
98 #define SAM3X_EK 34 //!< SAM3X-EK board.
\r
99 #define SAM3N_EK 35 //!< SAM3N-EK board.
\r
100 #define SAM3S_EK2 36 //!< SAM3S-EK2 board.
\r
101 #define SAM4S_EK 37 //!< SAM4S-EK board.
\r
102 #define STK600_RCUC3A0 38 //!< STK600 RCUC3A0 board.
\r
103 #define STK600_MEGA 39 //!< STK600 MEGA board.
\r
104 #define MEGA_1284P_XPLAINED 40 //!< ATmega1284P Xplained board.
\r
105 #define SAM4S_XPLAINED 41 //!< SAM4S Xplained board.
\r
106 #define ATXMEGA128A1_QT600 42 //!< QT600 ATXMEGA128A1 MCU board.
\r
107 #define ARDUINO_DUE_X 43 //!< Arduino Due/X board.
\r
108 #define STK600_RCUC3L3 44 //!< ATUCL3 STK600 board
\r
109 #define SIMULATOR_XMEGA_A1 97 //!< Simulator for XMEGA A1 devices
\r
110 #define AVR_SIMULATOR_UC3 98 //!< AVR SIMULATOR for AVR UC3 device family.
\r
111 #define USER_BOARD 99 //!< User-reserved board (if any).
\r
112 #define DUMMY_BOARD 100 //!< Dummy board to support board-independent applications (e.g. bootloader)
\r
115 /*! \name Extension Boards
\r
118 #define EXT1102 1 //!< AT32UC3B EXT1102 board
\r
119 #define MC300 2 //!< AT32UC3 MC300 board
\r
120 #define SENSORS_XPLAINED_INERTIAL_1 3 //!< Xplained inertial sensor board 1
\r
121 #define SENSORS_XPLAINED_INERTIAL_2 4 //!< Xplained inertial sensor board 2
\r
122 #define SENSORS_XPLAINED_PRESSURE_1 5 //!< Xplained pressure sensor board
\r
123 #define SENSORS_XPLAINED_LIGHTPROX_1 6 //!< Xplained light & proximity sensor board
\r
124 #define SENSORS_XPLAINED_INERTIAL_A1 7 //!< Xplained inertial sensor board "A"
\r
125 #define RZ600_AT86RF231 8 //!< AT86RF231 RF board in RZ600
\r
126 #define RZ600_AT86RF230B 9 //!< AT86RF231 RF board in RZ600
\r
127 #define RZ600_AT86RF212 10 //!< AT86RF231 RF board in RZ600
\r
128 #define SENSORS_XPLAINED_BREADBOARD 11 //!< Xplained sensor development breadboard
\r
129 #define SECURITY_XPLAINED 12 //!< Xplained ATSHA204 board
\r
130 #define USER_EXT_BOARD 99 //!< User-reserved extension board (if any).
\r
133 #if BOARD == EVK1100
\r
134 # include "evk1100/evk1100.h"
\r
135 #elif BOARD == EVK1101
\r
136 # include "evk1101/evk1101.h"
\r
137 #elif BOARD == UC3C_EK
\r
138 # include "uc3c_ek/uc3c_ek.h"
\r
139 #elif BOARD == EVK1104
\r
140 # include "evk1104/evk1104.h"
\r
141 #elif BOARD == EVK1105
\r
142 # include "evk1105/evk1105.h"
\r
143 #elif BOARD == STK600_RCUC3L0
\r
144 # include "stk600/rcuc3l0/stk600_rcuc3l0.h"
\r
145 #elif BOARD == UC3L_EK
\r
146 # include "uc3l_ek/uc3l_ek.h"
\r
147 #elif BOARD == STK600_RCUC3L4
\r
148 # include "stk600/rcuc3l4/stk600_rcuc3l4.h"
\r
149 #elif BOARD == XPLAIN
\r
150 # include "xplain/xplain.h"
\r
151 #elif BOARD == STK600_MEGA
\r
152 /*No header-file to include*/
\r
153 #elif BOARD == STK600_RC044X
\r
154 # include "stk600/rc044x/stk600_rc044x.h"
\r
155 #elif BOARD == STK600_RC064X
\r
156 # include "stk600/rc064x/stk600_rc064x.h"
\r
157 #elif BOARD == STK600_RC100X
\r
158 # include "stk600/rc100x/stk600_rc100x.h"
\r
159 #elif BOARD == UC3_A3_XPLAINED
\r
160 # include "uc3_a3_xplained/uc3_a3_xplained.h"
\r
161 #elif BOARD == UC3_L0_XPLAINED
\r
162 # include "uc3_l0_xplained/uc3_l0_xplained.h"
\r
163 #elif BOARD == STK600_RCUC3B0
\r
164 # include "stk600/rcuc3b0/stk600_rcuc3b0.h"
\r
165 #elif BOARD == STK600_RCUC3D
\r
166 # include "stk600/rcuc3d/stk600_rcuc3d.h"
\r
167 #elif BOARD == STK600_RCUC3C0
\r
168 # include "stk600/rcuc3c0/stk600_rcuc3c0.h"
\r
169 #elif BOARD == XMEGA_B1_XPLAINED
\r
170 # include "xmega_b1_xplained/xmega_b1_xplained.h"
\r
171 #elif BOARD == STK600_RC064X_LCDX
\r
172 # include "stk600/rc064x_lcdx/stk600_rc064x_lcdx.h"
\r
173 #elif BOARD == STK600_RC100X_LCDX
\r
174 # include "stk600/rc100x_lcdx/stk600_rc100x_lcdx.h"
\r
175 #elif BOARD == XMEGA_A1_XPLAINED
\r
176 # include "xmega_a1_xplained/xmega_a1_xplained.h"
\r
177 #elif BOARD == UC3_L0_XPLAINED_BC
\r
178 # include "uc3_l0_xplained_bc/uc3_l0_xplained_bc.h"
\r
179 #elif BOARD == SAM3S_EK
\r
180 # include "sam3s_ek/sam3s_ek.h"
\r
181 # include "system_sam3s.h"
\r
182 #elif BOARD == SAM3S_EK2
\r
183 # include "sam3s_ek2/sam3s_ek2.h"
\r
184 # include "system_sam3sd8.h"
\r
185 #elif BOARD == SAM3U_EK
\r
186 # include "sam3u_ek/sam3u_ek.h"
\r
187 # include "system_sam3u.h"
\r
188 #elif BOARD == SAM3X_EK
\r
189 # include "sam3x_ek/sam3x_ek.h"
\r
190 # include "system_sam3x.h"
\r
191 #elif BOARD == SAM3N_EK
\r
192 # include "sam3n_ek/sam3n_ek.h"
\r
193 # include "system_sam3n.h"
\r
194 #elif BOARD == SAM4S_EK
\r
195 # include "sam4s_ek/sam4s_ek.h"
\r
196 # include "system_sam4s.h"
\r
197 #elif BOARD == SAM4S_XPLAINED
\r
198 # include "sam4s_xplained/sam4s_xplained.h"
\r
199 # include "system_sam4s.h"
\r
200 #elif BOARD == MEGA_1284P_XPLAINED
\r
201 /*No header-file to include*/
\r
202 #elif BOARD == ARDUINO_DUE_X
\r
203 # include "arduino_due_x/arduino_due_x.h"
\r
204 # include "system_sam3x.h"
\r
205 #elif BOARD == MEGA1284P_XPLAINED_BC
\r
206 # include "mega1284p_xplained_bc/mega1284p_xplained_bc.h"
\r
207 #elif BOARD == UC3_L0_QT600
\r
208 # include "uc3_l0_qt600/uc3_l0_qt600.h"
\r
209 #elif BOARD == XMEGA_A3BU_XPLAINED
\r
210 # include "xmega_a3bu_xplained/xmega_a3bu_xplained.h"
\r
211 #elif BOARD == UC3B_BOARD_CONTROLLER
\r
212 # include "uc3b_board_controller/uc3b_board_controller.h"
\r
213 #elif BOARD == RZ600
\r
214 # include "rz600/rz600.h"
\r
215 #elif BOARD == STK600_RCUC3A0
\r
216 # include "stk600/rcuc3a0/stk600_rcuc3a0.h"
\r
217 #elif BOARD == ATXMEGA128A1_QT600
\r
218 # include "atxmega128a1_qt600/atxmega128a1_qt600.h"
\r
219 #elif BOARD == STK600_RCUC3L3
\r
220 #include "stk600/rcuc3l3/stk600_rcuc3l3.h"
\r
221 #elif BOARD == SIMULATOR_XMEGA_A1
\r
222 # include "simulator/xmega_a1/simulator_xmega_a1.h"
\r
223 #elif BOARD == AVR_SIMULATOR_UC3
\r
224 # include "avr_simulator_uc3/avr_simulator_uc3.h"
\r
225 #elif BOARD == USER_BOARD
\r
226 // User-reserved area: #include the header file of your board here (if any).
\r
227 # include "user_board.h"
\r
228 #elif BOARD == DUMMY_BOARD
\r
229 # include "dummy/dummy_board.h"
\r
231 # error No known AVR board defined
\r
234 #if (defined EXT_BOARD)
\r
235 # if EXT_BOARD == MC300
\r
236 # include "mc300/mc300.h"
\r
237 # elif (EXT_BOARD == SENSORS_XPLAINED_INERTIAL_1) || \
\r
238 (EXT_BOARD == SENSORS_XPLAINED_INERTIAL_2) || \
\r
239 (EXT_BOARD == SENSORS_XPLAINED_INERTIAL_A1) || \
\r
240 (EXT_BOARD == SENSORS_XPLAINED_PRESSURE_1) || \
\r
241 (EXT_BOARD == SENSORS_XPLAINED_LIGHTPROX_1) || \
\r
242 (EXT_BOARD == SENSORS_XPLAINED_BREADBOARD)
\r
243 # include "sensors_xplained/sensors_xplained.h"
\r
244 # elif EXT_BOARD == RZ600_AT86RF231
\r
245 # include "at86rf231/at86rf231.h"
\r
246 # elif EXT_BOARD == RZ600_AT86RF230B
\r
247 # include "at86rf230b/at86rf230b.h"
\r
248 # elif EXT_BOARD == RZ600_AT86RF212
\r
249 # include "at86rf212/at86rf212.h"
\r
250 # elif EXT_BOARD == SECURITY_XPLAINED
\r
251 # include "security_xplained.h"
\r
252 # elif EXT_BOARD == USER_EXT_BOARD
\r
253 // User-reserved area: #include the header file of your extension board here
\r
259 #if (defined(__GNUC__) && defined(__AVR32__)) || (defined(__ICCAVR32__) || defined(__AAVR32__))
\r
260 #ifdef __AVR32_ABI_COMPILER__ // Automatically defined when compiling for AVR32, not when assembling.
\r
262 /*! \brief This function initializes the board target resources
\r
264 * This function should be called to ensure proper initialization of the target
\r
265 * board hardware connected to the part.
\r
267 extern void board_init(void);
\r
269 #endif // #ifdef __AVR32_ABI_COMPILER__
\r
271 /*! \brief This function initializes the board target resources
\r
273 * This function should be called to ensure proper initialization of the target
\r
274 * board hardware connected to the part.
\r
276 extern void board_init(void);
\r
288 #endif // _BOARD_H_
\r