Public fork of mbed-src to add generic stm32f030k6 target
Fork of mbed-src by
targets/hal/TARGET_Atmel/common/boards/board.h@592:a274ee790e56, 2015-07-17 (annotated)
- Committer:
- mbed_official
- Date:
- Fri Jul 17 09:15:10 2015 +0100
- Revision:
- 592:a274ee790e56
- Parent:
- 579:53297373a894
Synchronized with git revision e7144f83a8d75df80c4877936b6ffe552b0be9e6
Full URL: https://github.com/mbedmicro/mbed/commit/e7144f83a8d75df80c4877936b6ffe552b0be9e6/
More API implementation for SAMR21
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 579:53297373a894 | 1 | |
mbed_official | 579:53297373a894 | 2 | #ifndef _BOARD_H_ |
mbed_official | 579:53297373a894 | 3 | #define _BOARD_H_ |
mbed_official | 579:53297373a894 | 4 | |
mbed_official | 579:53297373a894 | 5 | /** |
mbed_official | 579:53297373a894 | 6 | * \defgroup group_common_boards Generic board support |
mbed_official | 579:53297373a894 | 7 | * |
mbed_official | 579:53297373a894 | 8 | * The generic board support module includes board-specific definitions |
mbed_official | 579:53297373a894 | 9 | * and function prototypes, such as the board initialization function. |
mbed_official | 579:53297373a894 | 10 | * |
mbed_official | 579:53297373a894 | 11 | * \{ |
mbed_official | 579:53297373a894 | 12 | */ |
mbed_official | 579:53297373a894 | 13 | |
mbed_official | 579:53297373a894 | 14 | #include "compiler.h" |
mbed_official | 579:53297373a894 | 15 | |
mbed_official | 579:53297373a894 | 16 | #ifdef __cplusplus |
mbed_official | 579:53297373a894 | 17 | extern "C" { |
mbed_official | 579:53297373a894 | 18 | #endif |
mbed_official | 579:53297373a894 | 19 | |
mbed_official | 579:53297373a894 | 20 | |
mbed_official | 579:53297373a894 | 21 | /*! \name Base Boards |
mbed_official | 579:53297373a894 | 22 | */ |
mbed_official | 579:53297373a894 | 23 | //! @{ |
mbed_official | 579:53297373a894 | 24 | #define EVK1100 1 //!< AT32UC3A EVK1100 board. |
mbed_official | 579:53297373a894 | 25 | #define EVK1101 2 //!< AT32UC3B EVK1101 board. |
mbed_official | 579:53297373a894 | 26 | #define UC3C_EK 3 //!< AT32UC3C UC3C-EK board. |
mbed_official | 579:53297373a894 | 27 | #define EVK1104 4 //!< AT32UC3A3 EVK1104 board. |
mbed_official | 579:53297373a894 | 28 | #define EVK1105 5 //!< AT32UC3A EVK1105 board. |
mbed_official | 579:53297373a894 | 29 | #define STK600_RCUC3L0 6 //!< STK600 RCUC3L0 board. |
mbed_official | 579:53297373a894 | 30 | #define UC3L_EK 7 //!< AT32UC3L-EK board. |
mbed_official | 579:53297373a894 | 31 | #define XPLAIN 8 //!< ATxmega128A1 Xplain board. |
mbed_official | 579:53297373a894 | 32 | #define STK600_RC064X 10 //!< ATxmega256A3 STK600 board. |
mbed_official | 579:53297373a894 | 33 | #define STK600_RC100X 11 //!< ATxmega128A1 STK600 board. |
mbed_official | 579:53297373a894 | 34 | #define UC3_A3_XPLAINED 13 //!< ATUC3A3 UC3-A3 Xplained board. |
mbed_official | 579:53297373a894 | 35 | #define UC3_L0_XPLAINED 15 //!< ATUC3L0 UC3-L0 Xplained board. |
mbed_official | 579:53297373a894 | 36 | #define STK600_RCUC3D 16 //!< STK600 RCUC3D board. |
mbed_official | 579:53297373a894 | 37 | #define STK600_RCUC3C0 17 //!< STK600 RCUC3C board. |
mbed_official | 579:53297373a894 | 38 | #define XMEGA_B1_XPLAINED 18 //!< ATxmega128B1 Xplained board. |
mbed_official | 579:53297373a894 | 39 | #define XMEGA_A1_XPLAINED 19 //!< ATxmega128A1 Xplain-A1 board. |
mbed_official | 579:53297373a894 | 40 | #define XMEGA_A1U_XPLAINED_PRO 20 //!< ATxmega128A1U XMEGA-A1U Xplained Pro board. |
mbed_official | 579:53297373a894 | 41 | #define STK600_RCUC3L4 21 //!< ATUCL4 STK600 board |
mbed_official | 579:53297373a894 | 42 | #define UC3_L0_XPLAINED_BC 22 //!< ATUC3L0 UC3-L0 Xplained board controller board |
mbed_official | 579:53297373a894 | 43 | #define MEGA1284P_XPLAINED_BC 23 //!< ATmega1284P-Xplained board controller board |
mbed_official | 579:53297373a894 | 44 | #define STK600_RC044X 24 //!< STK600 with RC044X routing card board. |
mbed_official | 579:53297373a894 | 45 | #define STK600_RCUC3B0 25 //!< STK600 RCUC3B0 board. |
mbed_official | 579:53297373a894 | 46 | #define UC3_L0_QT600 26 //!< QT600 UC3L0 MCU board. |
mbed_official | 579:53297373a894 | 47 | #define XMEGA_A3BU_XPLAINED 27 //!< ATxmega256A3BU Xplained board. |
mbed_official | 579:53297373a894 | 48 | #define STK600_RC064X_LCDX 28 //!< XMEGAB3 STK600 RC064X LCDX board. |
mbed_official | 579:53297373a894 | 49 | #define STK600_RC100X_LCDX 29 //!< XMEGAB1 STK600 RC100X LCDX board. |
mbed_official | 579:53297373a894 | 50 | #define UC3B_BOARD_CONTROLLER 30 //!< AT32UC3B1 board controller for Atmel boards |
mbed_official | 579:53297373a894 | 51 | #define RZ600 31 //!< AT32UC3A RZ600 MCU board |
mbed_official | 579:53297373a894 | 52 | #define SAM3S_EK 32 //!< SAM3S-EK board. |
mbed_official | 579:53297373a894 | 53 | #define SAM3U_EK 33 //!< SAM3U-EK board. |
mbed_official | 579:53297373a894 | 54 | #define SAM3X_EK 34 //!< SAM3X-EK board. |
mbed_official | 579:53297373a894 | 55 | #define SAM3N_EK 35 //!< SAM3N-EK board. |
mbed_official | 579:53297373a894 | 56 | #define SAM3S_EK2 36 //!< SAM3S-EK2 board. |
mbed_official | 579:53297373a894 | 57 | #define SAM4S_EK 37 //!< SAM4S-EK board. |
mbed_official | 579:53297373a894 | 58 | #define STK600_RCUC3A0 38 //!< STK600 RCUC3A0 board. |
mbed_official | 579:53297373a894 | 59 | #define STK600_MEGA 39 //!< STK600 MEGA board. |
mbed_official | 579:53297373a894 | 60 | #define MEGA_1284P_XPLAINED 40 //!< ATmega1284P Xplained board. |
mbed_official | 579:53297373a894 | 61 | #define SAM4S_XPLAINED 41 //!< SAM4S Xplained board. |
mbed_official | 579:53297373a894 | 62 | #define ATXMEGA128A1_QT600 42 //!< QT600 ATXMEGA128A1 MCU board. |
mbed_official | 579:53297373a894 | 63 | #define ARDUINO_DUE_X 43 //!< Arduino Due/X board. |
mbed_official | 579:53297373a894 | 64 | #define STK600_RCUC3L3 44 //!< ATUCL3 STK600 board |
mbed_official | 579:53297373a894 | 65 | #define SAM4L_EK 45 //!< SAM4L-EK board. |
mbed_official | 579:53297373a894 | 66 | #define STK600_MEGA_RF 46 //!< STK600 MEGA RF EVK board. |
mbed_official | 579:53297373a894 | 67 | #define XMEGA_C3_XPLAINED 47 //!< ATxmega384C3 Xplained board. |
mbed_official | 579:53297373a894 | 68 | #define STK600_RC032X 48 //!< STK600 with RC032X routing card board. |
mbed_official | 579:53297373a894 | 69 | #define SAM4S_EK2 49 //!< SAM4S-EK2 board. |
mbed_official | 579:53297373a894 | 70 | #define XMEGA_E5_XPLAINED 50 //!< ATxmega32E5 Xplained board. |
mbed_official | 579:53297373a894 | 71 | #define SAM4E_EK 51 //!< SAM4E-EK board. |
mbed_official | 579:53297373a894 | 72 | #define ATMEGA256RFR2_XPLAINED_PRO 52 //!< ATmega256RFR2 Xplained Pro board. |
mbed_official | 579:53297373a894 | 73 | #define SAM4S_XPLAINED_PRO 53 //!< SAM4S Xplained Pro board. |
mbed_official | 579:53297373a894 | 74 | #define SAM4L_XPLAINED_PRO 54 //!< SAM4L Xplained Pro board. |
mbed_official | 579:53297373a894 | 75 | #define ATMEGA256RFR2_ZIGBIT 55 //!< ATmega256RFR2 zigbit |
mbed_official | 579:53297373a894 | 76 | #define XMEGA_RF233_ZIGBIT 56 //!< ATxmega256A3U with AT86RF233 Zigbit |
mbed_official | 579:53297373a894 | 77 | #define XMEGA_RF212B_ZIGBIT 57 //!< ATxmega256A3U with AT86RF212B Zigbit |
mbed_official | 579:53297373a894 | 78 | #define SAM4S_WPIR_RD 58 //!< SAM4S-WPIR-RD board. |
mbed_official | 579:53297373a894 | 79 | #define SAMD20_XPLAINED_PRO 59 //!< SAM D20 Xplained Pro board |
mbed_official | 579:53297373a894 | 80 | #define SAM4L8_XPLAINED_PRO 60 //!< SAM4L8 Xplained Pro board. |
mbed_official | 579:53297373a894 | 81 | #define SAM4N_XPLAINED_PRO 61 //!< SAM4N Xplained Pro board. |
mbed_official | 579:53297373a894 | 82 | #define XMEGA_A3_REB_CBB 62 //!< XMEGA REB Controller Base board. |
mbed_official | 579:53297373a894 | 83 | #define ATMEGARFX_RCB 63 //!< RFR2 & RFA1 RCB |
mbed_official | 579:53297373a894 | 84 | #define SAM4C_EK 64 //!< SAM4C-EK board. |
mbed_official | 579:53297373a894 | 85 | #define RCB256RFR2_XPRO 65 //!< RFR2 RCB Xplained Pro board. |
mbed_official | 579:53297373a894 | 86 | #define SAMG53_XPLAINED_PRO 66 //!< SAMG53 Xplained Pro board. |
mbed_official | 579:53297373a894 | 87 | #define SAM4CP16BMB 67 //!< SAM4CP16BMB board. |
mbed_official | 579:53297373a894 | 88 | #define SAM4E_XPLAINED_PRO 68 //!< SAM4E Xplained Pro board. |
mbed_official | 579:53297373a894 | 89 | #define SAMD21_XPLAINED_PRO 69 //!< SAM D21 Xplained Pro board. |
mbed_official | 579:53297373a894 | 90 | #define SAMR21_XPLAINED_PRO 70 //!< SAM R21 Xplained Pro board. |
mbed_official | 579:53297373a894 | 91 | #define SAM4CMP_DB 71 //!< SAM4CMP demo board. |
mbed_official | 579:53297373a894 | 92 | #define SAM4CMS_DB 72 //!< SAM4CMS demo board. |
mbed_official | 579:53297373a894 | 93 | #define ATPL230AMB 73 //!< ATPL230AMB board. |
mbed_official | 579:53297373a894 | 94 | #define SAMD11_XPLAINED_PRO 74 //!< SAM D11 Xplained Pro board. |
mbed_official | 579:53297373a894 | 95 | #define SAMG55_XPLAINED_PRO 75 //!< SAMG55 Xplained Pro board. |
mbed_official | 579:53297373a894 | 96 | #define SAML21_XPLAINED_PRO 76 //!< SAM L21 Xplained Pro board. |
mbed_official | 579:53297373a894 | 97 | #define SIMULATOR_XMEGA_A1 97 //!< Simulator for XMEGA A1 devices |
mbed_official | 579:53297373a894 | 98 | #define AVR_SIMULATOR_UC3 98 //!< Simulator for the AVR UC3 device family. |
mbed_official | 579:53297373a894 | 99 | #define USER_BOARD 99 //!< User-reserved board (if any). |
mbed_official | 579:53297373a894 | 100 | #define DUMMY_BOARD 100 //!< Dummy board to support board-independent applications (e.g. bootloader) |
mbed_official | 579:53297373a894 | 101 | //! @} |
mbed_official | 579:53297373a894 | 102 | |
mbed_official | 579:53297373a894 | 103 | /*! \name Extension Boards |
mbed_official | 579:53297373a894 | 104 | */ |
mbed_official | 579:53297373a894 | 105 | //! @{ |
mbed_official | 579:53297373a894 | 106 | #define EXT1102 1 //!< AT32UC3B EXT1102 board |
mbed_official | 579:53297373a894 | 107 | #define MC300 2 //!< AT32UC3 MC300 board |
mbed_official | 579:53297373a894 | 108 | #define SENSORS_XPLAINED_INERTIAL_1 3 //!< Xplained inertial sensor board 1 |
mbed_official | 579:53297373a894 | 109 | #define SENSORS_XPLAINED_INERTIAL_2 4 //!< Xplained inertial sensor board 2 |
mbed_official | 579:53297373a894 | 110 | #define SENSORS_XPLAINED_PRESSURE_1 5 //!< Xplained pressure sensor board |
mbed_official | 579:53297373a894 | 111 | #define SENSORS_XPLAINED_LIGHTPROX_1 6 //!< Xplained light & proximity sensor board |
mbed_official | 579:53297373a894 | 112 | #define SENSORS_XPLAINED_INERTIAL_A1 7 //!< Xplained inertial sensor board "A" |
mbed_official | 579:53297373a894 | 113 | #define RZ600_AT86RF231 8 //!< AT86RF231 RF board in RZ600 |
mbed_official | 579:53297373a894 | 114 | #define RZ600_AT86RF230B 9 //!< AT86RF230B RF board in RZ600 |
mbed_official | 579:53297373a894 | 115 | #define RZ600_AT86RF212 10 //!< AT86RF212 RF board in RZ600 |
mbed_official | 579:53297373a894 | 116 | #define SENSORS_XPLAINED_BREADBOARD 11 //!< Xplained sensor development breadboard |
mbed_official | 579:53297373a894 | 117 | #define SECURITY_XPLAINED 12 //!< Xplained ATSHA204 board |
mbed_official | 579:53297373a894 | 118 | #define USER_EXT_BOARD 99 //!< User-reserved extension board (if any). |
mbed_official | 579:53297373a894 | 119 | //! @} |
mbed_official | 579:53297373a894 | 120 | |
mbed_official | 579:53297373a894 | 121 | #if BOARD == EVK1100 |
mbed_official | 579:53297373a894 | 122 | # include "evk1100/evk1100.h" |
mbed_official | 579:53297373a894 | 123 | #elif BOARD == EVK1101 |
mbed_official | 579:53297373a894 | 124 | # include "evk1101/evk1101.h" |
mbed_official | 579:53297373a894 | 125 | #elif BOARD == UC3C_EK |
mbed_official | 579:53297373a894 | 126 | # include "uc3c_ek/uc3c_ek.h" |
mbed_official | 579:53297373a894 | 127 | #elif BOARD == EVK1104 |
mbed_official | 579:53297373a894 | 128 | # include "evk1104/evk1104.h" |
mbed_official | 579:53297373a894 | 129 | #elif BOARD == EVK1105 |
mbed_official | 579:53297373a894 | 130 | # include "evk1105/evk1105.h" |
mbed_official | 579:53297373a894 | 131 | #elif BOARD == STK600_RCUC3L0 |
mbed_official | 579:53297373a894 | 132 | # include "stk600/rcuc3l0/stk600_rcuc3l0.h" |
mbed_official | 579:53297373a894 | 133 | #elif BOARD == UC3L_EK |
mbed_official | 579:53297373a894 | 134 | # include "uc3l_ek/uc3l_ek.h" |
mbed_official | 579:53297373a894 | 135 | #elif BOARD == STK600_RCUC3L4 |
mbed_official | 579:53297373a894 | 136 | # include "stk600/rcuc3l4/stk600_rcuc3l4.h" |
mbed_official | 579:53297373a894 | 137 | #elif BOARD == XPLAIN |
mbed_official | 579:53297373a894 | 138 | # include "xplain/xplain.h" |
mbed_official | 579:53297373a894 | 139 | #elif BOARD == STK600_MEGA |
mbed_official | 579:53297373a894 | 140 | /*No header-file to include*/ |
mbed_official | 579:53297373a894 | 141 | #elif BOARD == STK600_MEGA_RF |
mbed_official | 579:53297373a894 | 142 | # include "stk600.h" |
mbed_official | 579:53297373a894 | 143 | #elif BOARD == ATMEGA256RFR2_XPLAINED_PRO |
mbed_official | 579:53297373a894 | 144 | # include "atmega256rfr2_xplained_pro/atmega256rfr2_xplained_pro.h" |
mbed_official | 579:53297373a894 | 145 | #elif BOARD == ATMEGA256RFR2_ZIGBIT |
mbed_official | 579:53297373a894 | 146 | # include "atmega256rfr2_zigbit/atmega256rfr2_zigbit.h" |
mbed_official | 579:53297373a894 | 147 | #elif BOARD == STK600_RC032X |
mbed_official | 579:53297373a894 | 148 | # include "stk600/rc032x/stk600_rc032x.h" |
mbed_official | 579:53297373a894 | 149 | #elif BOARD == STK600_RC044X |
mbed_official | 579:53297373a894 | 150 | # include "stk600/rc044x/stk600_rc044x.h" |
mbed_official | 579:53297373a894 | 151 | #elif BOARD == STK600_RC064X |
mbed_official | 579:53297373a894 | 152 | # include "stk600/rc064x/stk600_rc064x.h" |
mbed_official | 579:53297373a894 | 153 | #elif BOARD == STK600_RC100X |
mbed_official | 579:53297373a894 | 154 | # include "stk600/rc100x/stk600_rc100x.h" |
mbed_official | 579:53297373a894 | 155 | #elif BOARD == UC3_A3_XPLAINED |
mbed_official | 579:53297373a894 | 156 | # include "uc3_a3_xplained/uc3_a3_xplained.h" |
mbed_official | 579:53297373a894 | 157 | #elif BOARD == UC3_L0_XPLAINED |
mbed_official | 579:53297373a894 | 158 | # include "uc3_l0_xplained/uc3_l0_xplained.h" |
mbed_official | 579:53297373a894 | 159 | #elif BOARD == STK600_RCUC3B0 |
mbed_official | 579:53297373a894 | 160 | # include "stk600/rcuc3b0/stk600_rcuc3b0.h" |
mbed_official | 579:53297373a894 | 161 | #elif BOARD == STK600_RCUC3D |
mbed_official | 579:53297373a894 | 162 | # include "stk600/rcuc3d/stk600_rcuc3d.h" |
mbed_official | 579:53297373a894 | 163 | #elif BOARD == STK600_RCUC3C0 |
mbed_official | 579:53297373a894 | 164 | # include "stk600/rcuc3c0/stk600_rcuc3c0.h" |
mbed_official | 579:53297373a894 | 165 | #elif BOARD == SAMG53_XPLAINED_PRO |
mbed_official | 579:53297373a894 | 166 | # include "samg53_xplained_pro/samg53_xplained_pro.h" |
mbed_official | 579:53297373a894 | 167 | #elif BOARD == SAMG55_XPLAINED_PRO |
mbed_official | 579:53297373a894 | 168 | # include "samg55_xplained_pro/samg55_xplained_pro.h" |
mbed_official | 579:53297373a894 | 169 | #elif BOARD == XMEGA_B1_XPLAINED |
mbed_official | 579:53297373a894 | 170 | # include "xmega_b1_xplained/xmega_b1_xplained.h" |
mbed_official | 579:53297373a894 | 171 | #elif BOARD == STK600_RC064X_LCDX |
mbed_official | 579:53297373a894 | 172 | # include "stk600/rc064x_lcdx/stk600_rc064x_lcdx.h" |
mbed_official | 579:53297373a894 | 173 | #elif BOARD == STK600_RC100X_LCDX |
mbed_official | 579:53297373a894 | 174 | # include "stk600/rc100x_lcdx/stk600_rc100x_lcdx.h" |
mbed_official | 579:53297373a894 | 175 | #elif BOARD == XMEGA_A1_XPLAINED |
mbed_official | 579:53297373a894 | 176 | # include "xmega_a1_xplained/xmega_a1_xplained.h" |
mbed_official | 579:53297373a894 | 177 | #elif BOARD == XMEGA_A1U_XPLAINED_PRO |
mbed_official | 579:53297373a894 | 178 | # include "xmega_a1u_xplained_pro/xmega_a1u_xplained_pro.h" |
mbed_official | 579:53297373a894 | 179 | #elif BOARD == UC3_L0_XPLAINED_BC |
mbed_official | 579:53297373a894 | 180 | # include "uc3_l0_xplained_bc/uc3_l0_xplained_bc.h" |
mbed_official | 579:53297373a894 | 181 | #elif BOARD == SAM3S_EK |
mbed_official | 579:53297373a894 | 182 | # include "sam3s_ek/sam3s_ek.h" |
mbed_official | 579:53297373a894 | 183 | # include "system_sam3s.h" |
mbed_official | 579:53297373a894 | 184 | #elif BOARD == SAM3S_EK2 |
mbed_official | 579:53297373a894 | 185 | # include "sam3s_ek2/sam3s_ek2.h" |
mbed_official | 579:53297373a894 | 186 | # include "system_sam3sd8.h" |
mbed_official | 579:53297373a894 | 187 | #elif BOARD == SAM3U_EK |
mbed_official | 579:53297373a894 | 188 | # include "sam3u_ek/sam3u_ek.h" |
mbed_official | 579:53297373a894 | 189 | # include "system_sam3u.h" |
mbed_official | 579:53297373a894 | 190 | #elif BOARD == SAM3X_EK |
mbed_official | 579:53297373a894 | 191 | # include "sam3x_ek/sam3x_ek.h" |
mbed_official | 579:53297373a894 | 192 | # include "system_sam3x.h" |
mbed_official | 579:53297373a894 | 193 | #elif BOARD == SAM3N_EK |
mbed_official | 579:53297373a894 | 194 | # include "sam3n_ek/sam3n_ek.h" |
mbed_official | 579:53297373a894 | 195 | # include "system_sam3n.h" |
mbed_official | 579:53297373a894 | 196 | #elif BOARD == SAM4S_EK |
mbed_official | 579:53297373a894 | 197 | # include "sam4s_ek/sam4s_ek.h" |
mbed_official | 579:53297373a894 | 198 | # include "system_sam4s.h" |
mbed_official | 579:53297373a894 | 199 | #elif BOARD == SAM4S_WPIR_RD |
mbed_official | 579:53297373a894 | 200 | # include "sam4s_wpir_rd/sam4s_wpir_rd.h" |
mbed_official | 579:53297373a894 | 201 | # include "system_sam4s.h" |
mbed_official | 579:53297373a894 | 202 | #elif BOARD == SAM4S_XPLAINED |
mbed_official | 579:53297373a894 | 203 | # include "sam4s_xplained/sam4s_xplained.h" |
mbed_official | 579:53297373a894 | 204 | # include "system_sam4s.h" |
mbed_official | 579:53297373a894 | 205 | #elif BOARD == SAM4S_EK2 |
mbed_official | 579:53297373a894 | 206 | # include "sam4s_ek2/sam4s_ek2.h" |
mbed_official | 579:53297373a894 | 207 | # include "system_sam4s.h" |
mbed_official | 579:53297373a894 | 208 | #elif BOARD == MEGA_1284P_XPLAINED |
mbed_official | 579:53297373a894 | 209 | /*No header-file to include*/ |
mbed_official | 579:53297373a894 | 210 | #elif BOARD == ARDUINO_DUE_X |
mbed_official | 579:53297373a894 | 211 | # include "arduino_due_x/arduino_due_x.h" |
mbed_official | 579:53297373a894 | 212 | # include "system_sam3x.h" |
mbed_official | 579:53297373a894 | 213 | #elif BOARD == SAM4L_EK |
mbed_official | 579:53297373a894 | 214 | # include "sam4l_ek/sam4l_ek.h" |
mbed_official | 579:53297373a894 | 215 | #elif BOARD == SAM4E_EK |
mbed_official | 579:53297373a894 | 216 | # include "sam4e_ek/sam4e_ek.h" |
mbed_official | 579:53297373a894 | 217 | #elif BOARD == SAMD20_XPLAINED_PRO |
mbed_official | 579:53297373a894 | 218 | # include "samd20_xplained_pro/samd20_xplained_pro.h" |
mbed_official | 579:53297373a894 | 219 | #elif BOARD == SAMD21_XPLAINED_PRO |
mbed_official | 579:53297373a894 | 220 | # include "samd21_xplained_pro/samd21_xplained_pro.h" |
mbed_official | 579:53297373a894 | 221 | #elif BOARD == SAMR21_XPLAINED_PRO |
mbed_official | 579:53297373a894 | 222 | # include "samr21_xplained_pro/samr21_xplained_pro.h" |
mbed_official | 579:53297373a894 | 223 | #elif BOARD == SAMD11_XPLAINED_PRO |
mbed_official | 579:53297373a894 | 224 | # include "samd11_xplained_pro/samd11_xplained_pro.h" |
mbed_official | 579:53297373a894 | 225 | #elif BOARD == SAML21_XPLAINED_PRO |
mbed_official | 579:53297373a894 | 226 | # include "saml21_xplained_pro/saml21_xplained_pro.h" |
mbed_official | 579:53297373a894 | 227 | #elif BOARD == SAM4N_XPLAINED_PRO |
mbed_official | 579:53297373a894 | 228 | # include "sam4n_xplained_pro/sam4n_xplained_pro.h" |
mbed_official | 579:53297373a894 | 229 | #elif BOARD == MEGA1284P_XPLAINED_BC |
mbed_official | 579:53297373a894 | 230 | # include "mega1284p_xplained_bc/mega1284p_xplained_bc.h" |
mbed_official | 579:53297373a894 | 231 | #elif BOARD == UC3_L0_QT600 |
mbed_official | 579:53297373a894 | 232 | # include "uc3_l0_qt600/uc3_l0_qt600.h" |
mbed_official | 579:53297373a894 | 233 | #elif BOARD == XMEGA_A3BU_XPLAINED |
mbed_official | 579:53297373a894 | 234 | # include "xmega_a3bu_xplained/xmega_a3bu_xplained.h" |
mbed_official | 579:53297373a894 | 235 | #elif BOARD == XMEGA_E5_XPLAINED |
mbed_official | 579:53297373a894 | 236 | # include "xmega_e5_xplained/xmega_e5_xplained.h" |
mbed_official | 579:53297373a894 | 237 | #elif BOARD == UC3B_BOARD_CONTROLLER |
mbed_official | 579:53297373a894 | 238 | # include "uc3b_board_controller/uc3b_board_controller.h" |
mbed_official | 579:53297373a894 | 239 | #elif BOARD == RZ600 |
mbed_official | 579:53297373a894 | 240 | # include "rz600/rz600.h" |
mbed_official | 579:53297373a894 | 241 | #elif BOARD == STK600_RCUC3A0 |
mbed_official | 579:53297373a894 | 242 | # include "stk600/rcuc3a0/stk600_rcuc3a0.h" |
mbed_official | 579:53297373a894 | 243 | #elif BOARD == ATXMEGA128A1_QT600 |
mbed_official | 579:53297373a894 | 244 | # include "atxmega128a1_qt600/atxmega128a1_qt600.h" |
mbed_official | 579:53297373a894 | 245 | #elif BOARD == STK600_RCUC3L3 |
mbed_official | 579:53297373a894 | 246 | # include "stk600/rcuc3l3/stk600_rcuc3l3.h" |
mbed_official | 579:53297373a894 | 247 | #elif BOARD == SAM4S_XPLAINED_PRO |
mbed_official | 579:53297373a894 | 248 | # include "sam4s_xplained_pro/sam4s_xplained_pro.h" |
mbed_official | 579:53297373a894 | 249 | #elif BOARD == SAM4L_XPLAINED_PRO |
mbed_official | 579:53297373a894 | 250 | # include "sam4l_xplained_pro/sam4l_xplained_pro.h" |
mbed_official | 579:53297373a894 | 251 | #elif BOARD == SAM4L8_XPLAINED_PRO |
mbed_official | 579:53297373a894 | 252 | # include "sam4l8_xplained_pro/sam4l8_xplained_pro.h" |
mbed_official | 579:53297373a894 | 253 | #elif BOARD == SAM4C_EK |
mbed_official | 579:53297373a894 | 254 | # include "sam4c_ek/sam4c_ek.h" |
mbed_official | 579:53297373a894 | 255 | #elif BOARD == SAM4CMP_DB |
mbed_official | 579:53297373a894 | 256 | # include "sam4cmp_db/sam4cmp_db.h" |
mbed_official | 579:53297373a894 | 257 | #elif BOARD == SAM4CMS_DB |
mbed_official | 579:53297373a894 | 258 | # include "sam4cms_db/sam4cms_db.h" |
mbed_official | 579:53297373a894 | 259 | #elif BOARD == SAM4CP16BMB |
mbed_official | 579:53297373a894 | 260 | # include "sam4cp16bmb/sam4cp16bmb.h" |
mbed_official | 579:53297373a894 | 261 | #elif BOARD == ATPL230AMB |
mbed_official | 579:53297373a894 | 262 | # include "atpl230amb/atpl230amb.h" |
mbed_official | 579:53297373a894 | 263 | #elif BOARD == SIMULATOR_XMEGA_A1 |
mbed_official | 579:53297373a894 | 264 | # include "simulator/xmega_a1/simulator_xmega_a1.h" |
mbed_official | 579:53297373a894 | 265 | #elif BOARD == XMEGA_C3_XPLAINED |
mbed_official | 579:53297373a894 | 266 | # include "xmega_c3_xplained/xmega_c3_xplained.h" |
mbed_official | 579:53297373a894 | 267 | #elif BOARD == XMEGA_RF233_ZIGBIT |
mbed_official | 579:53297373a894 | 268 | # include "xmega_rf233_zigbit/xmega_rf233_zigbit.h" |
mbed_official | 579:53297373a894 | 269 | #elif BOARD == XMEGA_A3_REB_CBB |
mbed_official | 579:53297373a894 | 270 | # include "xmega_a3_reb_cbb/xmega_a3_reb_cbb.h" |
mbed_official | 579:53297373a894 | 271 | #elif BOARD == ATMEGARFX_RCB |
mbed_official | 579:53297373a894 | 272 | # include "atmegarfx_rcb/atmegarfx_rcb.h" |
mbed_official | 579:53297373a894 | 273 | #elif BOARD == RCB256RFR2_XPRO |
mbed_official | 579:53297373a894 | 274 | # include "atmega256rfr2_rcb_xpro/atmega256rfr2_rcb_xpro.h" |
mbed_official | 579:53297373a894 | 275 | #elif BOARD == XMEGA_RF212B_ZIGBIT |
mbed_official | 579:53297373a894 | 276 | # include "xmega_rf212b_zigbit/xmega_rf212b_zigbit.h" |
mbed_official | 579:53297373a894 | 277 | #elif BOARD == SAM4E_XPLAINED_PRO |
mbed_official | 579:53297373a894 | 278 | # include "sam4e_xplained_pro/sam4e_xplained_pro.h" |
mbed_official | 579:53297373a894 | 279 | #elif BOARD == AVR_SIMULATOR_UC3 |
mbed_official | 579:53297373a894 | 280 | # include "avr_simulator_uc3/avr_simulator_uc3.h" |
mbed_official | 579:53297373a894 | 281 | #elif BOARD == USER_BOARD |
mbed_official | 579:53297373a894 | 282 | // User-reserved area: #include the header file of your board here (if any). |
mbed_official | 579:53297373a894 | 283 | # include "user_board.h" |
mbed_official | 579:53297373a894 | 284 | #elif BOARD == DUMMY_BOARD |
mbed_official | 579:53297373a894 | 285 | # include "dummy/dummy_board.h" |
mbed_official | 579:53297373a894 | 286 | #else |
mbed_official | 579:53297373a894 | 287 | # error No known Atmel board defined |
mbed_official | 579:53297373a894 | 288 | #endif |
mbed_official | 579:53297373a894 | 289 | |
mbed_official | 579:53297373a894 | 290 | #if (defined EXT_BOARD) |
mbed_official | 579:53297373a894 | 291 | # if EXT_BOARD == MC300 |
mbed_official | 579:53297373a894 | 292 | # include "mc300/mc300.h" |
mbed_official | 579:53297373a894 | 293 | # elif (EXT_BOARD == SENSORS_XPLAINED_INERTIAL_1) || \ |
mbed_official | 579:53297373a894 | 294 | (EXT_BOARD == SENSORS_XPLAINED_INERTIAL_2) || \ |
mbed_official | 579:53297373a894 | 295 | (EXT_BOARD == SENSORS_XPLAINED_INERTIAL_A1) || \ |
mbed_official | 579:53297373a894 | 296 | (EXT_BOARD == SENSORS_XPLAINED_PRESSURE_1) || \ |
mbed_official | 579:53297373a894 | 297 | (EXT_BOARD == SENSORS_XPLAINED_LIGHTPROX_1) || \ |
mbed_official | 579:53297373a894 | 298 | (EXT_BOARD == SENSORS_XPLAINED_BREADBOARD) |
mbed_official | 579:53297373a894 | 299 | # include "sensors_xplained/sensors_xplained.h" |
mbed_official | 579:53297373a894 | 300 | # elif EXT_BOARD == RZ600_AT86RF231 |
mbed_official | 579:53297373a894 | 301 | # include "at86rf231/at86rf231.h" |
mbed_official | 579:53297373a894 | 302 | # elif EXT_BOARD == RZ600_AT86RF230B |
mbed_official | 579:53297373a894 | 303 | # include "at86rf230b/at86rf230b.h" |
mbed_official | 579:53297373a894 | 304 | # elif EXT_BOARD == RZ600_AT86RF212 |
mbed_official | 579:53297373a894 | 305 | # include "at86rf212/at86rf212.h" |
mbed_official | 579:53297373a894 | 306 | # elif EXT_BOARD == SECURITY_XPLAINED |
mbed_official | 579:53297373a894 | 307 | # include "security_xplained.h" |
mbed_official | 579:53297373a894 | 308 | # elif EXT_BOARD == USER_EXT_BOARD |
mbed_official | 579:53297373a894 | 309 | // User-reserved area: #include the header file of your extension board here |
mbed_official | 579:53297373a894 | 310 | // (if any). |
mbed_official | 579:53297373a894 | 311 | # endif |
mbed_official | 579:53297373a894 | 312 | #endif |
mbed_official | 579:53297373a894 | 313 | |
mbed_official | 579:53297373a894 | 314 | |
mbed_official | 579:53297373a894 | 315 | #if (defined(__GNUC__) && defined(__AVR32__)) || (defined(__ICCAVR32__) || defined(__AAVR32__)) |
mbed_official | 579:53297373a894 | 316 | #ifdef __AVR32_ABI_COMPILER__ // Automatically defined when compiling for AVR32, not when assembling. |
mbed_official | 579:53297373a894 | 317 | |
mbed_official | 579:53297373a894 | 318 | /*! \brief This function initializes the board target resources |
mbed_official | 579:53297373a894 | 319 | * |
mbed_official | 579:53297373a894 | 320 | * This function should be called to ensure proper initialization of the target |
mbed_official | 579:53297373a894 | 321 | * board hardware connected to the part. |
mbed_official | 579:53297373a894 | 322 | */ |
mbed_official | 579:53297373a894 | 323 | extern void board_init(void); |
mbed_official | 579:53297373a894 | 324 | |
mbed_official | 579:53297373a894 | 325 | #endif // #ifdef __AVR32_ABI_COMPILER__ |
mbed_official | 579:53297373a894 | 326 | #else |
mbed_official | 579:53297373a894 | 327 | /*! \brief This function initializes the board target resources |
mbed_official | 579:53297373a894 | 328 | * |
mbed_official | 579:53297373a894 | 329 | * This function should be called to ensure proper initialization of the target |
mbed_official | 579:53297373a894 | 330 | * board hardware connected to the part. |
mbed_official | 579:53297373a894 | 331 | */ |
mbed_official | 579:53297373a894 | 332 | extern void board_init(void); |
mbed_official | 579:53297373a894 | 333 | #endif |
mbed_official | 579:53297373a894 | 334 | |
mbed_official | 579:53297373a894 | 335 | |
mbed_official | 579:53297373a894 | 336 | #ifdef __cplusplus |
mbed_official | 579:53297373a894 | 337 | } |
mbed_official | 579:53297373a894 | 338 | #endif |
mbed_official | 579:53297373a894 | 339 | |
mbed_official | 579:53297373a894 | 340 | /** |
mbed_official | 579:53297373a894 | 341 | * \} |
mbed_official | 579:53297373a894 | 342 | */ |
mbed_official | 579:53297373a894 | 343 | |
mbed_official | 579:53297373a894 | 344 | #endif // _BOARD_H_ |