]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_M4F_ATSAM4E_Atmel_Studio/src/ASF/common/boards/board.h
c355c03ebebc945f55911c4351cb1fb695f2b4d7
[freertos] / FreeRTOS / Demo / CORTEX_M4F_ATSAM4E_Atmel_Studio / src / ASF / common / boards / board.h
1 /**\r
2  * \file\r
3  *\r
4  * \brief Standard board header file.\r
5  *\r
6  * This file includes the appropriate board header file according to the\r
7  * defined board (parameter BOARD).\r
8  *\r
9  * Copyright (c) 2009-2013 Atmel Corporation. All rights reserved.\r
10  *\r
11  * \asf_license_start\r
12  *\r
13  * \page License\r
14  *\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
17  *\r
18  * 1. Redistributions of source code must retain the above copyright notice,\r
19  *    this list of conditions and the following disclaimer.\r
20  *\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
24  *\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
27  *\r
28  * 4. This software may only be redistributed and used in connection with an\r
29  *    Atmel microcontroller product.\r
30  *\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
42  *\r
43  * \asf_license_stop\r
44  *\r
45  */\r
46 \r
47 #ifndef _BOARD_H_\r
48 #define _BOARD_H_\r
49 \r
50 /**\r
51  * \defgroup group_common_boards Generic board support\r
52  *\r
53  * The generic board support module includes board-specific definitions\r
54  * and function prototypes, such as the board initialization function.\r
55  *\r
56  * \{\r
57  */\r
58 \r
59 #include "compiler.h"\r
60 \r
61 #ifdef __cplusplus\r
62 extern "C" {\r
63 #endif\r
64 \r
65 \r
66 /*! \name Base Boards\r
67  */\r
68 //! @{\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 SAM4L_EK                   45  //!< SAM4L-EK board.\r
110 #define STK600_MEGA_RF             46  //!< STK600 MEGA RF EVK board.\r
111 #define XMEGA_C3_XPLAINED          47  //!< ATxmega384C3 Xplained board.\r
112 #define STK600_RC032X              48  //!< STK600 with RC032X routing card board.\r
113 #define SAM4S_EK2                  49  //!< SAM4S-EK2 board.\r
114 #define XMEGA_E5_XPLAINED          50  //!< ATxmega32E5 Xplained board.\r
115 #define SAM4E_EK                   51  //!< SAM4E-EK board.\r
116 #define ATMEGA256RFR2_XPLAINED_PRO 52  //!< ATmega256RFR2 Xplained Pro board.\r
117 #define SAM4S_XPLAINED_PRO         53  //!< SAM4S Xplained Pro board.\r
118 #define SAM4L_XPLAINED_PRO         54  //!< SAM4L Xplained Pro board.\r
119 #define ATMEGA256RFR2_ZIGBIT       55  //!< ATmega256RFR2 zigbit\r
120 #define XMEGA_RF233_ZIGBIT         56  //!< ATxmega256A3U with AT86RF233 zigbit\r
121 #define XMEGA_RF212B_ZIGBIT        57  //!< ATxmega256A3U with AT86RF212B zigbit\r
122 #define SAM4S_WPIR_RD              58  //!< SAM4S-WPIR-RD board.\r
123 #define SAMD20_XPLAINED_PRO        59  //!< SAMD20 Xplained PRO board\r
124 #define SAM4L8_XPLAINED_PRO        60  //!< SAM4L8 Xplained Pro board.\r
125 #define SAM4N_XPLAINED_PRO         61  //!< SAM4N-XPLAINED-PRO board.\r
126 #define XMEGA_A3_REB_CBB           62  //!< SAM4L8 Xplained Pro board.\r
127 #define ATMEGARFX_RCB              63  //!< RFR2 & RFA1 RCB\r
128 #define SIMULATOR_XMEGA_A1         97  //!< Simulator for XMEGA A1 devices\r
129 #define AVR_SIMULATOR_UC3          98  //!< AVR SIMULATOR for AVR UC3 device family.\r
130 #define USER_BOARD                 99  //!< User-reserved board (if any).\r
131 #define DUMMY_BOARD               100  //!< Dummy board to support board-independent applications (e.g. bootloader)\r
132 //! @}\r
133 \r
134 /*! \name Extension Boards\r
135  */\r
136 //! @{\r
137 #define EXT1102                      1  //!< AT32UC3B EXT1102 board\r
138 #define MC300                        2  //!< AT32UC3 MC300 board\r
139 #define SENSORS_XPLAINED_INERTIAL_1  3  //!< Xplained inertial sensor board 1\r
140 #define SENSORS_XPLAINED_INERTIAL_2  4  //!< Xplained inertial sensor board 2\r
141 #define SENSORS_XPLAINED_PRESSURE_1  5  //!< Xplained pressure sensor board\r
142 #define SENSORS_XPLAINED_LIGHTPROX_1 6  //!< Xplained light & proximity sensor board\r
143 #define SENSORS_XPLAINED_INERTIAL_A1 7  //!< Xplained inertial sensor board "A"\r
144 #define RZ600_AT86RF231              8  //!< AT86RF231 RF board in RZ600\r
145 #define RZ600_AT86RF230B             9  //!< AT86RF230B RF board in RZ600\r
146 #define RZ600_AT86RF212             10  //!< AT86RF212 RF board in RZ600\r
147 #define SENSORS_XPLAINED_BREADBOARD 11  //!< Xplained sensor development breadboard\r
148 #define SECURITY_XPLAINED           12  //!< Xplained ATSHA204 board\r
149 #define USER_EXT_BOARD              99  //!< User-reserved extension board (if any).\r
150 //! @}\r
151 \r
152 #if BOARD == EVK1100\r
153 #  include "evk1100/evk1100.h"\r
154 #elif BOARD == EVK1101\r
155 #  include "evk1101/evk1101.h"\r
156 #elif BOARD == UC3C_EK\r
157 #  include "uc3c_ek/uc3c_ek.h"\r
158 #elif BOARD == EVK1104\r
159 #  include "evk1104/evk1104.h"\r
160 #elif BOARD == EVK1105\r
161 #  include "evk1105/evk1105.h"\r
162 #elif BOARD == STK600_RCUC3L0\r
163 #  include "stk600/rcuc3l0/stk600_rcuc3l0.h"\r
164 #elif BOARD == UC3L_EK\r
165 #  include "uc3l_ek/uc3l_ek.h"\r
166 #elif BOARD == STK600_RCUC3L4\r
167 #  include "stk600/rcuc3l4/stk600_rcuc3l4.h"\r
168 #elif BOARD == XPLAIN\r
169 #  include "xplain/xplain.h"\r
170 #elif BOARD == STK600_MEGA\r
171   /*No header-file to include*/\r
172 #elif BOARD == STK600_MEGA_RF\r
173 #  include "stk600.h"\r
174 #elif BOARD == ATMEGA256RFR2_XPLAINED_PRO\r
175 #  include "atmega256rfr2_xplained_pro/atmega256rfr2_xplained_pro.h"\r
176 #elif BOARD == ATMEGA256RFR2_ZIGBIT\r
177 #  include "atmega256rfr2_zigbit/atmega256rfr2_zigbit.h"\r
178 #elif BOARD == STK600_RC032X\r
179 #  include "stk600/rc032x/stk600_rc032x.h"\r
180 #elif BOARD == STK600_RC044X\r
181 #  include "stk600/rc044x/stk600_rc044x.h"\r
182 #elif BOARD == STK600_RC064X\r
183 #  include "stk600/rc064x/stk600_rc064x.h"\r
184 #elif BOARD == STK600_RC100X\r
185 #  include "stk600/rc100x/stk600_rc100x.h"\r
186 #elif BOARD == UC3_A3_XPLAINED\r
187 #  include "uc3_a3_xplained/uc3_a3_xplained.h"\r
188 #elif BOARD == UC3_L0_XPLAINED\r
189 #  include "uc3_l0_xplained/uc3_l0_xplained.h"\r
190 #elif BOARD == STK600_RCUC3B0\r
191 #  include "stk600/rcuc3b0/stk600_rcuc3b0.h"\r
192 #elif BOARD == STK600_RCUC3D\r
193 #  include "stk600/rcuc3d/stk600_rcuc3d.h"\r
194 #elif BOARD == STK600_RCUC3C0\r
195 #  include "stk600/rcuc3c0/stk600_rcuc3c0.h"\r
196 #elif BOARD == XMEGA_B1_XPLAINED\r
197 #  include "xmega_b1_xplained/xmega_b1_xplained.h"\r
198 #elif BOARD == STK600_RC064X_LCDX\r
199 #  include "stk600/rc064x_lcdx/stk600_rc064x_lcdx.h"\r
200 #elif BOARD == STK600_RC100X_LCDX\r
201 #  include "stk600/rc100x_lcdx/stk600_rc100x_lcdx.h"\r
202 #elif BOARD == XMEGA_A1_XPLAINED\r
203 #  include "xmega_a1_xplained/xmega_a1_xplained.h"\r
204 #elif BOARD == UC3_L0_XPLAINED_BC\r
205 #  include "uc3_l0_xplained_bc/uc3_l0_xplained_bc.h"\r
206 #elif BOARD == SAM3S_EK\r
207 #  include "sam3s_ek/sam3s_ek.h"\r
208 #  include "system_sam3s.h"\r
209 #elif BOARD == SAM3S_EK2\r
210 #  include "sam3s_ek2/sam3s_ek2.h"\r
211 #  include "system_sam3sd8.h"\r
212 #elif BOARD == SAM3U_EK\r
213 #  include "sam3u_ek/sam3u_ek.h"\r
214 #  include "system_sam3u.h"\r
215 #elif BOARD == SAM3X_EK\r
216 #  include "sam3x_ek/sam3x_ek.h"\r
217 #  include "system_sam3x.h"\r
218 #elif BOARD == SAM3N_EK\r
219 #  include "sam3n_ek/sam3n_ek.h"\r
220 #  include "system_sam3n.h"\r
221 #elif BOARD == SAM4S_EK\r
222 #  include "sam4s_ek/sam4s_ek.h"\r
223 #  include "system_sam4s.h"\r
224 #elif BOARD == SAM4S_WPIR_RD\r
225 #  include "sam4s_wpir_rd/sam4s_wpir_rd.h"\r
226 #  include "system_sam4s.h"\r
227 #elif BOARD == SAM4S_XPLAINED\r
228 #  include "sam4s_xplained/sam4s_xplained.h"\r
229 #  include "system_sam4s.h"\r
230 #elif BOARD == SAM4S_EK2\r
231 #  include "sam4s_ek2/sam4s_ek2.h"\r
232 #  include "system_sam4s.h"\r
233 #elif BOARD == MEGA_1284P_XPLAINED\r
234   /*No header-file to include*/\r
235 #elif BOARD == ARDUINO_DUE_X\r
236 #  include "arduino_due_x/arduino_due_x.h"\r
237 #  include "system_sam3x.h"\r
238 #elif BOARD == SAM4L_EK\r
239 #  include "sam4l_ek/sam4l_ek.h"\r
240 #elif BOARD == SAM4E_EK\r
241 #  include "sam4e_ek/sam4e_ek.h"\r
242 #elif BOARD == SAMD20_XPLAINED_PRO\r
243 #  include "samd20_xplained_pro/samd20_xplained_pro.h"\r
244 #elif BOARD == SAM4N_XPLAINED_PRO\r
245 #  include "sam4n_xplained_pro/sam4n_xplained_pro.h"\r
246 #elif BOARD == MEGA1284P_XPLAINED_BC\r
247 #  include "mega1284p_xplained_bc/mega1284p_xplained_bc.h"\r
248 #elif BOARD == UC3_L0_QT600\r
249 #  include "uc3_l0_qt600/uc3_l0_qt600.h"\r
250 #elif BOARD == XMEGA_A3BU_XPLAINED\r
251 #  include "xmega_a3bu_xplained/xmega_a3bu_xplained.h"\r
252 #elif BOARD == XMEGA_E5_XPLAINED\r
253 #  include "xmega_e5_xplained/xmega_e5_xplained.h"\r
254 #elif BOARD == UC3B_BOARD_CONTROLLER\r
255 #  include "uc3b_board_controller/uc3b_board_controller.h"\r
256 #elif BOARD == RZ600\r
257 #  include "rz600/rz600.h"\r
258 #elif BOARD == STK600_RCUC3A0\r
259 #  include "stk600/rcuc3a0/stk600_rcuc3a0.h"\r
260 #elif BOARD == ATXMEGA128A1_QT600\r
261 #  include "atxmega128a1_qt600/atxmega128a1_qt600.h"\r
262 #elif BOARD == STK600_RCUC3L3\r
263 #  include "stk600/rcuc3l3/stk600_rcuc3l3.h"\r
264 #elif BOARD == SAM4S_XPLAINED_PRO\r
265 #  include "sam4s_xplained_pro/sam4s_xplained_pro.h"\r
266 #elif BOARD == SAM4L_XPLAINED_PRO\r
267 #  include "sam4l_xplained_pro/sam4l_xplained_pro.h"\r
268 #elif BOARD == SAM4L8_XPLAINED_PRO\r
269 #  include "sam4l8_xplained_pro/sam4l8_xplained_pro.h"\r
270 #elif BOARD == SIMULATOR_XMEGA_A1\r
271 #  include "simulator/xmega_a1/simulator_xmega_a1.h"\r
272 #elif BOARD == XMEGA_C3_XPLAINED\r
273 #  include "xmega_c3_xplained/xmega_c3_xplained.h"\r
274 #elif BOARD == XMEGA_RF233_ZIGBIT\r
275 #  include "xmega_rf233_zigbit/xmega_rf233_zigbit.h"\r
276 #elif BOARD == XMEGA_A3_REB_CBB\r
277 #  include "xmega_a3_reb_cbb/xmega_a3_reb_cbb.h"\r
278 #elif BOARD == ATMEGARFX_RCB\r
279 #  include "atmegarfx_rcb/atmegarfx_rcb.h"\r
280 #elif BOARD == XMEGA_RF212B_ZIGBIT\r
281 #  include "xmega_rf212b_zigbit/xmega_rf212b_zigbit.h"\r
282 #elif BOARD == AVR_SIMULATOR_UC3\r
283 #  include "avr_simulator_uc3/avr_simulator_uc3.h"\r
284 #elif BOARD == USER_BOARD\r
285   // User-reserved area: #include the header file of your board here (if any).\r
286 #  include "user_board.h"\r
287 #elif BOARD == DUMMY_BOARD\r
288 #  include "dummy/dummy_board.h"\r
289 #else\r
290 #  error No known Atmel board defined\r
291 #endif\r
292 \r
293 #if (defined EXT_BOARD)\r
294 #  if EXT_BOARD == MC300\r
295 #    include "mc300/mc300.h"\r
296 #  elif (EXT_BOARD == SENSORS_XPLAINED_INERTIAL_1)  || \\r
297         (EXT_BOARD == SENSORS_XPLAINED_INERTIAL_2)  || \\r
298         (EXT_BOARD == SENSORS_XPLAINED_INERTIAL_A1) || \\r
299         (EXT_BOARD == SENSORS_XPLAINED_PRESSURE_1)  || \\r
300         (EXT_BOARD == SENSORS_XPLAINED_LIGHTPROX_1) || \\r
301         (EXT_BOARD == SENSORS_XPLAINED_BREADBOARD)\r
302 #    include "sensors_xplained/sensors_xplained.h"\r
303 #  elif EXT_BOARD == RZ600_AT86RF231\r
304 #     include "at86rf231/at86rf231.h"\r
305 #  elif EXT_BOARD == RZ600_AT86RF230B\r
306 #    include "at86rf230b/at86rf230b.h"\r
307 #  elif EXT_BOARD == RZ600_AT86RF212\r
308 #    include "at86rf212/at86rf212.h"\r
309 #  elif EXT_BOARD == SECURITY_XPLAINED\r
310 #    include "security_xplained.h"\r
311 #  elif EXT_BOARD == USER_EXT_BOARD\r
312     // User-reserved area: #include the header file of your extension board here\r
313     // (if any).\r
314 #  endif\r
315 #endif\r
316 \r
317 \r
318 #if (defined(__GNUC__) && defined(__AVR32__)) || (defined(__ICCAVR32__) || defined(__AAVR32__))\r
319 #ifdef __AVR32_ABI_COMPILER__ // Automatically defined when compiling for AVR32, not when assembling.\r
320 \r
321 /*! \brief This function initializes the board target resources\r
322  *\r
323  * This function should be called to ensure proper initialization of the target\r
324  * board hardware connected to the part.\r
325  */\r
326 extern void board_init(void);\r
327 \r
328 #endif  // #ifdef __AVR32_ABI_COMPILER__\r
329 #else\r
330 /*! \brief This function initializes the board target resources\r
331  *\r
332  * This function should be called to ensure proper initialization of the target\r
333  * board hardware connected to the part.\r
334  */\r
335 extern void board_init(void);\r
336 #endif\r
337 \r
338 \r
339 #ifdef __cplusplus\r
340 }\r
341 #endif\r
342 \r
343 /**\r
344  * \}\r
345  */\r
346 \r
347 #endif  // _BOARD_H_\r