board.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. /**
  2. * \file
  3. *
  4. * \brief Standard board header file.
  5. *
  6. * This file includes the appropriate board header file according to the
  7. * defined board (parameter BOARD).
  8. *
  9. * Copyright (c) 2009-2016 Atmel Corporation. All rights reserved.
  10. *
  11. * \asf_license_start
  12. *
  13. * \page License
  14. *
  15. * Redistribution and use in source and binary forms, with or without
  16. * modification, are permitted provided that the following conditions are met:
  17. *
  18. * 1. Redistributions of source code must retain the above copyright notice,
  19. * this list of conditions and the following disclaimer.
  20. *
  21. * 2. Redistributions in binary form must reproduce the above copyright notice,
  22. * this list of conditions and the following disclaimer in the documentation
  23. * and/or other materials provided with the distribution.
  24. *
  25. * 3. The name of Atmel may not be used to endorse or promote products derived
  26. * from this software without specific prior written permission.
  27. *
  28. * 4. This software may only be redistributed and used in connection with an
  29. * Atmel microcontroller product.
  30. *
  31. * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
  32. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  33. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
  34. * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
  35. * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  36. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  37. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  38. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  39. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  40. * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  41. * POSSIBILITY OF SUCH DAMAGE.
  42. *
  43. * \asf_license_stop
  44. *
  45. */
  46. /*
  47. * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
  48. */
  49. #ifndef _BOARD_H_
  50. #define _BOARD_H_
  51. /**
  52. * \defgroup group_common_boards Generic board support
  53. *
  54. * The generic board support module includes board-specific definitions
  55. * and function prototypes, such as the board initialization function.
  56. *
  57. * \{
  58. */
  59. #include "compiler.h"
  60. #ifdef __cplusplus
  61. extern "C" {
  62. #endif
  63. /*! \name Base Boards
  64. */
  65. //! @{
  66. #define EVK1100 1 //!< AT32UC3A EVK1100 board.
  67. #define EVK1101 2 //!< AT32UC3B EVK1101 board.
  68. #define UC3C_EK 3 //!< AT32UC3C UC3C-EK board.
  69. #define EVK1104 4 //!< AT32UC3A3 EVK1104 board.
  70. #define EVK1105 5 //!< AT32UC3A EVK1105 board.
  71. #define STK600_RCUC3L0 6 //!< STK600 RCUC3L0 board.
  72. #define UC3L_EK 7 //!< AT32UC3L-EK board.
  73. #define XPLAIN 8 //!< ATxmega128A1 Xplain board.
  74. #define STK600_RC064X 10 //!< ATxmega256A3 STK600 board.
  75. #define STK600_RC100X 11 //!< ATxmega128A1 STK600 board.
  76. #define UC3_A3_XPLAINED 13 //!< ATUC3A3 UC3-A3 Xplained board.
  77. #define UC3_L0_XPLAINED 15 //!< ATUC3L0 UC3-L0 Xplained board.
  78. #define STK600_RCUC3D 16 //!< STK600 RCUC3D board.
  79. #define STK600_RCUC3C0 17 //!< STK600 RCUC3C board.
  80. #define XMEGA_B1_XPLAINED 18 //!< ATxmega128B1 Xplained board.
  81. #define XMEGA_A1_XPLAINED 19 //!< ATxmega128A1 Xplain-A1 board.
  82. #define XMEGA_A1U_XPLAINED_PRO 20 //!< ATxmega128A1U XMEGA-A1U Xplained Pro board.
  83. #define STK600_RCUC3L4 21 //!< ATUCL4 STK600 board.
  84. #define UC3_L0_XPLAINED_BC 22 //!< ATUC3L0 UC3-L0 Xplained board controller board.
  85. #define MEGA1284P_XPLAINED_BC 23 //!< ATmega1284P-Xplained board controller board.
  86. #define STK600_RC044X 24 //!< STK600 with RC044X routing card board.
  87. #define STK600_RCUC3B0 25 //!< STK600 RCUC3B0 board.
  88. #define UC3_L0_QT600 26 //!< QT600 UC3L0 MCU board.
  89. #define XMEGA_A3BU_XPLAINED 27 //!< ATxmega256A3BU Xplained board.
  90. #define STK600_RC064X_LCDX 28 //!< XMEGAB3 STK600 RC064X LCDX board.
  91. #define STK600_RC100X_LCDX 29 //!< XMEGAB1 STK600 RC100X LCDX board.
  92. #define UC3B_BOARD_CONTROLLER 30 //!< AT32UC3B1 board controller for Atmel boards.
  93. #define RZ600 31 //!< AT32UC3A RZ600 MCU board.
  94. #define SAM3S_EK 32 //!< SAM3S-EK board.
  95. #define SAM3U_EK 33 //!< SAM3U-EK board.
  96. #define SAM3X_EK 34 //!< SAM3X-EK board.
  97. #define SAM3N_EK 35 //!< SAM3N-EK board.
  98. #define SAM3S_EK2 36 //!< SAM3S-EK2 board.
  99. #define SAM4S_EK 37 //!< SAM4S-EK board.
  100. #define STK600_RCUC3A0 38 //!< STK600 RCUC3A0 board.
  101. #define STK600_MEGA 39 //!< STK600 MEGA board.
  102. #define MEGA_1284P_XPLAINED 40 //!< ATmega1284P Xplained board.
  103. #define SAM4S_XPLAINED 41 //!< SAM4S Xplained board.
  104. #define ATXMEGA128A1_QT600 42 //!< QT600 ATXMEGA128A1 MCU board.
  105. #define ARDUINO_DUE_X 43 //!< Arduino Due/X board.
  106. #define STK600_RCUC3L3 44 //!< ATUCL3 STK600 board.
  107. #define SAM4L_EK 45 //!< SAM4L-EK board.
  108. #define STK600_MEGA_RF 46 //!< STK600 MEGA RF EVK board.
  109. #define XMEGA_C3_XPLAINED 47 //!< ATxmega384C3 Xplained board.
  110. #define STK600_RC032X 48 //!< STK600 with RC032X routing card board.
  111. #define SAM4S_EK2 49 //!< SAM4S-EK2 board.
  112. #define XMEGA_E5_XPLAINED 50 //!< ATxmega32E5 Xplained board.
  113. #define SAM4E_EK 51 //!< SAM4E-EK board.
  114. #define ATMEGA256RFR2_XPLAINED_PRO 52 //!< ATmega256RFR2 Xplained Pro board.
  115. #define SAM4S_XPLAINED_PRO 53 //!< SAM4S Xplained Pro board.
  116. #define SAM4L_XPLAINED_PRO 54 //!< SAM4L Xplained Pro board.
  117. #define ATMEGA256RFR2_ZIGBIT 55 //!< ATmega256RFR2 zigbit.
  118. #define XMEGA_RF233_ZIGBIT 56 //!< ATxmega256A3U with AT86RF233 Zigbit.
  119. #define XMEGA_RF212B_ZIGBIT 57 //!< ATxmega256A3U with AT86RF212B Zigbit.
  120. #define SAM4S_WPIR_RD 58 //!< SAM4S-WPIR-RD board.
  121. #define SAMD20_XPLAINED_PRO 59 //!< SAM D20 Xplained Pro board.
  122. #define SAM4L8_XPLAINED_PRO 60 //!< SAM4L8 Xplained Pro board.
  123. #define SAM4N_XPLAINED_PRO 61 //!< SAM4N Xplained Pro board.
  124. #define XMEGA_A3_REB_CBB 62 //!< XMEGA REB Controller Base board.
  125. #define ATMEGARFX_RCB 63 //!< RFR2 & RFA1 RCB.
  126. #define SAM4C_EK 64 //!< SAM4C-EK board.
  127. #define RCB256RFR2_XPRO 65 //!< RFR2 RCB Xplained Pro board.
  128. #define SAMG53_XPLAINED_PRO 66 //!< SAMG53 Xplained Pro board.
  129. #define SAM4CP16BMB 67 //!< SAM4CP16BMB board.
  130. #define SAM4E_XPLAINED_PRO 68 //!< SAM4E Xplained Pro board.
  131. #define SAMD21_XPLAINED_PRO 69 //!< SAM D21 Xplained Pro board.
  132. #define SAMR21_XPLAINED_PRO 70 //!< SAM R21 Xplained Pro board.
  133. #define SAM4CMP_DB 71 //!< SAM4CMP demo board.
  134. #define SAM4CMS_DB 72 //!< SAM4CMS demo board.
  135. #define ATPL230AMB 73 //!< ATPL230AMB board.
  136. #define SAMD11_XPLAINED_PRO 74 //!< SAM D11 Xplained Pro board.
  137. #define SAMG55_XPLAINED_PRO 75 //!< SAMG55 Xplained Pro board.
  138. #define SAML21_XPLAINED_PRO 76 //!< SAM L21 Xplained Pro board.
  139. #define SAMD10_XPLAINED_MINI 77 //!< SAM D10 Xplained Mini board.
  140. #define SAMDA1_XPLAINED_PRO 78 //!< SAM DA1 Xplained Pro board.
  141. #define SAMW25_XPLAINED_PRO 79 //!< SAMW25 Xplained Pro board.
  142. #define SAMC21_XPLAINED_PRO 80 //!< SAM C21 Xplained Pro board.
  143. #define SAMV71_XPLAINED_ULTRA 81 //!< SAMV71 Xplained Ultra board.
  144. #define ATMEGA328P_XPLAINED_MINI 82 //!< ATMEGA328P Xplained MINI board.
  145. #define ATMEGA328PB_XPLAINED_MINI 83 //!< ATMEGA328PB Xplained MINI board.
  146. #define SAMB11_XPLAINED_PRO 84 //!< SAM B11 Xplained Pro board.
  147. #define SAME70_XPLAINED 85 //!< SAME70 Xplained board.
  148. #define SAML22_XPLAINED_PRO 86 //!< SAM L22 Xplained Pro board.
  149. #define SAML22_XPLAINED_PRO_B 87 //!< SAM L22 Xplained Pro board.
  150. #define SAMR21ZLL_EK 88 //!< SAMR21ZLL-EK board.
  151. #define ATMEGA168PB_XPLAINED_MINI 89 //!< ATMEGA168PB Xplained MINI board.
  152. #define ATMEGA324PB_XPLAINED_PRO 90 //!< ATMEGA324PB Xplained Pro board.
  153. #define SAMB11CSP_XPLAINED_PRO 91 //!< SAM B11 CSP Xplained Pro board.
  154. #define SAMB11ZR_XPLAINED_PRO 92 //!< SAM B11 ZR Xplained Pro board.
  155. #define SAMR30_XPLAINED_PRO 93 //!< SAM R30 Xplained Pro board.
  156. #define SAMHA1G16A_XPLAINED_PRO 94 //!< SAM HA1G16A Xplained Pro board.
  157. #define SIMULATOR_XMEGA_A1 97 //!< Simulator for XMEGA A1 devices.
  158. #define AVR_SIMULATOR_UC3 98 //!< Simulator for the AVR UC3 device family.
  159. #define USER_BOARD 99 //!< User-reserved board (if any).
  160. #define DUMMY_BOARD 100 //!< Dummy board to support board-independent applications (e.g. bootloader).
  161. //! @}
  162. /*! \name Extension Boards
  163. */
  164. //! @{
  165. #define EXT1102 1 //!< AT32UC3B EXT1102 board
  166. #define MC300 2 //!< AT32UC3 MC300 board
  167. #define SENSORS_XPLAINED_INERTIAL_1 3 //!< Xplained inertial sensor board 1
  168. #define SENSORS_XPLAINED_INERTIAL_2 4 //!< Xplained inertial sensor board 2
  169. #define SENSORS_XPLAINED_PRESSURE_1 5 //!< Xplained pressure sensor board
  170. #define SENSORS_XPLAINED_LIGHTPROX_1 6 //!< Xplained light & proximity sensor board
  171. #define SENSORS_XPLAINED_INERTIAL_A1 7 //!< Xplained inertial sensor board "A"
  172. #define RZ600_AT86RF231 8 //!< AT86RF231 RF board in RZ600
  173. #define RZ600_AT86RF230B 9 //!< AT86RF230B RF board in RZ600
  174. #define RZ600_AT86RF212 10 //!< AT86RF212 RF board in RZ600
  175. #define SENSORS_XPLAINED_BREADBOARD 11 //!< Xplained sensor development breadboard
  176. #define SECURITY_XPLAINED 12 //!< Xplained ATSHA204 board
  177. #define USER_EXT_BOARD 99 //!< User-reserved extension board (if any).
  178. //! @}
  179. #if BOARD == EVK1100
  180. # include "evk1100/evk1100.h"
  181. #elif BOARD == EVK1101
  182. # include "evk1101/evk1101.h"
  183. #elif BOARD == UC3C_EK
  184. # include "uc3c_ek/uc3c_ek.h"
  185. #elif BOARD == EVK1104
  186. # include "evk1104/evk1104.h"
  187. #elif BOARD == EVK1105
  188. # include "evk1105/evk1105.h"
  189. #elif BOARD == STK600_RCUC3L0
  190. # include "stk600/rcuc3l0/stk600_rcuc3l0.h"
  191. #elif BOARD == UC3L_EK
  192. # include "uc3l_ek/uc3l_ek.h"
  193. #elif BOARD == STK600_RCUC3L4
  194. # include "stk600/rcuc3l4/stk600_rcuc3l4.h"
  195. #elif BOARD == XPLAIN
  196. # include "xplain/xplain.h"
  197. #elif BOARD == STK600_MEGA
  198. /*No header-file to include*/
  199. #elif BOARD == STK600_MEGA_RF
  200. # include "stk600.h"
  201. #elif BOARD == ATMEGA256RFR2_XPLAINED_PRO
  202. # include "atmega256rfr2_xplained_pro/atmega256rfr2_xplained_pro.h"
  203. #elif BOARD == ATMEGA256RFR2_ZIGBIT
  204. # include "atmega256rfr2_zigbit/atmega256rfr2_zigbit.h"
  205. #elif BOARD == STK600_RC032X
  206. # include "stk600/rc032x/stk600_rc032x.h"
  207. #elif BOARD == STK600_RC044X
  208. # include "stk600/rc044x/stk600_rc044x.h"
  209. #elif BOARD == STK600_RC064X
  210. # include "stk600/rc064x/stk600_rc064x.h"
  211. #elif BOARD == STK600_RC100X
  212. # include "stk600/rc100x/stk600_rc100x.h"
  213. #elif BOARD == UC3_A3_XPLAINED
  214. # include "uc3_a3_xplained/uc3_a3_xplained.h"
  215. #elif BOARD == UC3_L0_XPLAINED
  216. # include "uc3_l0_xplained/uc3_l0_xplained.h"
  217. #elif BOARD == STK600_RCUC3B0
  218. # include "stk600/rcuc3b0/stk600_rcuc3b0.h"
  219. #elif BOARD == STK600_RCUC3D
  220. # include "stk600/rcuc3d/stk600_rcuc3d.h"
  221. #elif BOARD == STK600_RCUC3C0
  222. # include "stk600/rcuc3c0/stk600_rcuc3c0.h"
  223. #elif BOARD == SAMG53_XPLAINED_PRO
  224. # include "samg53_xplained_pro/samg53_xplained_pro.h"
  225. #elif BOARD == SAMG55_XPLAINED_PRO
  226. # include "samg55_xplained_pro/samg55_xplained_pro.h"
  227. #elif BOARD == XMEGA_B1_XPLAINED
  228. # include "xmega_b1_xplained/xmega_b1_xplained.h"
  229. #elif BOARD == STK600_RC064X_LCDX
  230. # include "stk600/rc064x_lcdx/stk600_rc064x_lcdx.h"
  231. #elif BOARD == STK600_RC100X_LCDX
  232. # include "stk600/rc100x_lcdx/stk600_rc100x_lcdx.h"
  233. #elif BOARD == XMEGA_A1_XPLAINED
  234. # include "xmega_a1_xplained/xmega_a1_xplained.h"
  235. #elif BOARD == XMEGA_A1U_XPLAINED_PRO
  236. # include "xmega_a1u_xplained_pro/xmega_a1u_xplained_pro.h"
  237. #elif BOARD == UC3_L0_XPLAINED_BC
  238. # include "uc3_l0_xplained_bc/uc3_l0_xplained_bc.h"
  239. #elif BOARD == SAM3S_EK
  240. # include "sam3s_ek/sam3s_ek.h"
  241. # include "system_sam3s.h"
  242. #elif BOARD == SAM3S_EK2
  243. # include "sam3s_ek2/sam3s_ek2.h"
  244. # include "system_sam3sd8.h"
  245. #elif BOARD == SAM3U_EK
  246. # include "sam3u_ek/sam3u_ek.h"
  247. # include "system_sam3u.h"
  248. #elif BOARD == SAM3X_EK
  249. # include "sam3x_ek/sam3x_ek.h"
  250. # include "system_sam3x.h"
  251. #elif BOARD == SAM3N_EK
  252. # include "sam3n_ek/sam3n_ek.h"
  253. # include "system_sam3n.h"
  254. #elif BOARD == SAM4S_EK
  255. # include "sam4s_ek/sam4s_ek.h"
  256. # include "system_sam4s.h"
  257. #elif BOARD == SAM4S_WPIR_RD
  258. # include "sam4s_wpir_rd/sam4s_wpir_rd.h"
  259. # include "system_sam4s.h"
  260. #elif BOARD == SAM4S_XPLAINED
  261. # include "sam4s_xplained/sam4s_xplained.h"
  262. # include "system_sam4s.h"
  263. #elif BOARD == SAM4S_EK2
  264. # include "sam4s_ek2/sam4s_ek2.h"
  265. # include "system_sam4s.h"
  266. #elif BOARD == MEGA_1284P_XPLAINED
  267. /*No header-file to include*/
  268. #elif BOARD == ARDUINO_DUE_X
  269. # include "arduino_due_x/arduino_due_x.h"
  270. # include "system_sam3x.h"
  271. #elif BOARD == SAM4L_EK
  272. # include "sam4l_ek/sam4l_ek.h"
  273. #elif BOARD == SAM4E_EK
  274. # include "sam4e_ek/sam4e_ek.h"
  275. #elif BOARD == SAMD20_XPLAINED_PRO
  276. # include "samd20_xplained_pro/samd20_xplained_pro.h"
  277. #elif BOARD == SAMD21_XPLAINED_PRO
  278. # include "samd21_xplained_pro/samd21_xplained_pro.h"
  279. #elif BOARD == SAMR21_XPLAINED_PRO
  280. # include "samr21_xplained_pro/samr21_xplained_pro.h"
  281. #elif BOARD == SAMR30_XPLAINED_PRO
  282. # include "samr30_xplained_pro/samr30_xplained_pro.h"
  283. #elif BOARD == SAMR21ZLL_EK
  284. # include "samr21zll_ek/samr21zll_ek.h"
  285. #elif BOARD == SAMD11_XPLAINED_PRO
  286. # include "samd11_xplained_pro/samd11_xplained_pro.h"
  287. #elif BOARD == SAML21_XPLAINED_PRO && defined(__SAML21J18A__)
  288. # include "saml21_xplained_pro/saml21_xplained_pro.h"
  289. #elif BOARD == SAML22_XPLAINED_PRO
  290. # include "saml22_xplained_pro/saml22_xplained_pro.h"
  291. #elif BOARD == SAML22_XPLAINED_PRO_B
  292. # include "saml22_xplained_pro_b/saml22_xplained_pro_b.h"
  293. #elif BOARD == SAML21_XPLAINED_PRO && defined(__SAML21J18B__)
  294. # include "saml21_xplained_pro_b/saml21_xplained_pro.h"
  295. #elif BOARD == SAMD10_XPLAINED_MINI
  296. # include "samd10_xplained_mini/samd10_xplained_mini.h"
  297. #elif BOARD == SAMDA1_XPLAINED_PRO
  298. # include "samda1_xplained_pro/samda1_xplained_pro.h"
  299. #elif BOARD == SAMHA1G16A_XPLAINED_PRO
  300. # include "samha1g16a_xplained_pro/samha1g16a_xplained_pro.h"
  301. #elif BOARD == SAMC21_XPLAINED_PRO
  302. # include "samc21_xplained_pro/samc21_xplained_pro.h"
  303. #elif BOARD == SAM4N_XPLAINED_PRO
  304. # include "sam4n_xplained_pro/sam4n_xplained_pro.h"
  305. #elif BOARD == SAMW25_XPLAINED_PRO
  306. # include "samw25_xplained_pro/samw25_xplained_pro.h"
  307. #elif BOARD == SAMV71_XPLAINED_ULTRA
  308. # include "samv71_xplained_ultra/samv71_xplained_ultra.h"
  309. #elif BOARD == MEGA1284P_XPLAINED_BC
  310. # include "mega1284p_xplained_bc/mega1284p_xplained_bc.h"
  311. #elif BOARD == UC3_L0_QT600
  312. # include "uc3_l0_qt600/uc3_l0_qt600.h"
  313. #elif BOARD == XMEGA_A3BU_XPLAINED
  314. # include "xmega_a3bu_xplained/xmega_a3bu_xplained.h"
  315. #elif BOARD == XMEGA_E5_XPLAINED
  316. # include "xmega_e5_xplained/xmega_e5_xplained.h"
  317. #elif BOARD == UC3B_BOARD_CONTROLLER
  318. # include "uc3b_board_controller/uc3b_board_controller.h"
  319. #elif BOARD == RZ600
  320. # include "rz600/rz600.h"
  321. #elif BOARD == STK600_RCUC3A0
  322. # include "stk600/rcuc3a0/stk600_rcuc3a0.h"
  323. #elif BOARD == ATXMEGA128A1_QT600
  324. # include "atxmega128a1_qt600/atxmega128a1_qt600.h"
  325. #elif BOARD == STK600_RCUC3L3
  326. # include "stk600/rcuc3l3/stk600_rcuc3l3.h"
  327. #elif BOARD == SAM4S_XPLAINED_PRO
  328. # include "sam4s_xplained_pro/sam4s_xplained_pro.h"
  329. #elif BOARD == SAM4L_XPLAINED_PRO
  330. # include "sam4l_xplained_pro/sam4l_xplained_pro.h"
  331. #elif BOARD == SAM4L8_XPLAINED_PRO
  332. # include "sam4l8_xplained_pro/sam4l8_xplained_pro.h"
  333. #elif BOARD == SAM4C_EK
  334. # include "sam4c_ek/sam4c_ek.h"
  335. #elif BOARD == SAM4CMP_DB
  336. # include "sam4cmp_db/sam4cmp_db.h"
  337. #elif BOARD == SAM4CMS_DB
  338. # include "sam4cms_db/sam4cms_db.h"
  339. #elif BOARD == SAM4CP16BMB
  340. # include "sam4cp16bmb/sam4cp16bmb.h"
  341. #elif BOARD == ATPL230AMB
  342. # include "atpl230amb/atpl230amb.h"
  343. #elif BOARD == XMEGA_C3_XPLAINED
  344. # include "xmega_c3_xplained/xmega_c3_xplained.h"
  345. #elif BOARD == XMEGA_RF233_ZIGBIT
  346. # include "xmega_rf233_zigbit/xmega_rf233_zigbit.h"
  347. #elif BOARD == XMEGA_A3_REB_CBB
  348. # include "xmega_a3_reb_cbb/xmega_a3_reb_cbb.h"
  349. #elif BOARD == ATMEGARFX_RCB
  350. # include "atmegarfx_rcb/atmegarfx_rcb.h"
  351. #elif BOARD == RCB256RFR2_XPRO
  352. # include "atmega256rfr2_rcb_xpro/atmega256rfr2_rcb_xpro.h"
  353. #elif BOARD == XMEGA_RF212B_ZIGBIT
  354. # include "xmega_rf212b_zigbit/xmega_rf212b_zigbit.h"
  355. #elif BOARD == SAM4E_XPLAINED_PRO
  356. # include "sam4e_xplained_pro/sam4e_xplained_pro.h"
  357. #elif BOARD == ATMEGA328P_XPLAINED_MINI
  358. # include "atmega328p_xplained_mini/atmega328p_xplained_mini.h"
  359. #elif BOARD == ATMEGA328PB_XPLAINED_MINI
  360. # include "atmega328pb_xplained_mini/atmega328pb_xplained_mini.h"
  361. #elif BOARD == SAMB11_XPLAINED_PRO
  362. # include "samb11_xplained_pro/samb11_xplained_pro.h"
  363. #elif BOARD == SAME70_XPLAINED
  364. # include "same70_xplained/same70_xplained.h"
  365. #elif BOARD == ATMEGA168PB_XPLAINED_MINI
  366. # include "atmega168pb_xplained_mini/atmega168pb_xplained_mini.h"
  367. #elif BOARD == ATMEGA324PB_XPLAINED_PRO
  368. # include "atmega324pb_xplained_pro/atmega324pb_xplained_pro.h"
  369. #elif BOARD == SAMB11CSP_XPLAINED_PRO
  370. # include "samb11csp_xplained_pro/samb11csp_xplained_pro.h"
  371. #elif BOARD == SAMB11ZR_XPLAINED_PRO
  372. # include "samb11zr_xplained_pro/samb11zr_xplained_pro.h"
  373. #elif BOARD == SIMULATOR_XMEGA_A1
  374. # include "simulator/xmega_a1/simulator_xmega_a1.h"
  375. #elif BOARD == AVR_SIMULATOR_UC3
  376. # include "avr_simulator_uc3/avr_simulator_uc3.h"
  377. #elif BOARD == USER_BOARD
  378. // User-reserved area: #include the header file of your board here (if any).
  379. # include "user_board.h"
  380. #elif BOARD == DUMMY_BOARD
  381. # include "dummy/dummy_board.h"
  382. #else
  383. # error No known Atmel board defined
  384. #endif
  385. #if (defined EXT_BOARD)
  386. # if EXT_BOARD == MC300
  387. # include "mc300/mc300.h"
  388. # elif (EXT_BOARD == SENSORS_XPLAINED_INERTIAL_1) || \
  389. (EXT_BOARD == SENSORS_XPLAINED_INERTIAL_2) || \
  390. (EXT_BOARD == SENSORS_XPLAINED_INERTIAL_A1) || \
  391. (EXT_BOARD == SENSORS_XPLAINED_PRESSURE_1) || \
  392. (EXT_BOARD == SENSORS_XPLAINED_LIGHTPROX_1) || \
  393. (EXT_BOARD == SENSORS_XPLAINED_BREADBOARD)
  394. # include "sensors_xplained/sensors_xplained.h"
  395. # elif EXT_BOARD == RZ600_AT86RF231
  396. # include "at86rf231/at86rf231.h"
  397. # elif EXT_BOARD == RZ600_AT86RF230B
  398. # include "at86rf230b/at86rf230b.h"
  399. # elif EXT_BOARD == RZ600_AT86RF212
  400. # include "at86rf212/at86rf212.h"
  401. # elif EXT_BOARD == SECURITY_XPLAINED
  402. # include "security_xplained.h"
  403. # elif EXT_BOARD == USER_EXT_BOARD
  404. // User-reserved area: #include the header file of your extension board here
  405. // (if any).
  406. # endif
  407. #endif
  408. #if (defined(__GNUC__) && defined(__AVR32__)) || (defined(__ICCAVR32__) || defined(__AAVR32__))
  409. #ifdef __AVR32_ABI_COMPILER__ // Automatically defined when compiling for AVR32, not when assembling.
  410. /*! \brief This function initializes the board target resources
  411. *
  412. * This function should be called to ensure proper initialization of the target
  413. * board hardware connected to the part.
  414. */
  415. extern void board_init(void);
  416. #endif // #ifdef __AVR32_ABI_COMPILER__
  417. #else
  418. /*! \brief This function initializes the board target resources
  419. *
  420. * This function should be called to ensure proper initialization of the target
  421. * board hardware connected to the part.
  422. */
  423. extern void board_init(void);
  424. #endif
  425. #ifdef __cplusplus
  426. }
  427. #endif
  428. /**
  429. * \}
  430. */
  431. #endif // _BOARD_H_