Xmega Application Note


board.h

Go to the documentation of this file.
00001 /*This file is prepared for Doxygen automatic documentation generation.*/
00018 /* Copyright (c) 2009 Atmel Corporation. All rights reserved.
00019  *
00020  * Redistribution and use in source and binary forms, with or without
00021  * modification, are permitted provided that the following conditions are met:
00022  *
00023  * 1. Redistributions of source code must retain the above copyright notice, this
00024  * list of conditions and the following disclaimer.
00025  *
00026  * 2. Redistributions in binary form must reproduce the above copyright notice,
00027  * this list of conditions and the following disclaimer in the documentation
00028  * and/or other materials provided with the distribution.
00029  *
00030  * 3. The name of Atmel may not be used to endorse or promote products derived
00031  * from this software without specific prior written permission.
00032  *
00033  * 4. This software may only be redistributed and used in connection with an Atmel
00034  * AVR product.
00035  *
00036  * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
00037  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00038  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
00039  * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
00040  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00041  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00042  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00043  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00044  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00045  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
00046  *
00047  */
00048 
00049 #ifndef _BOARD_H_
00050 #define _BOARD_H_
00051 
00052 #include "compiler.h"
00053 
00056 
00057 #define EVK1100           1   //!< AT32UC3A EVK1100 board.
00058 #define EVK1101           2   //!< AT32UC3B EVK1101 board.
00059 #define UC3C_EK           3   //!< AT32UC3C UC3C_EK board.
00060 #define EVK1104           4   //!< AT32UC3A3 EVK1104 board.
00061 #define EVK1105           5   //!< AT32UC3A EVK1105 board.
00062 #define STK600_RCUC3L0    6   //!< STK600 RCUC3L0 board.
00063 #define UC3L_EK           7   //!< AT32UC3L-EK board.
00064 #define XPLAIN            8   //!< ATxmega128A1 Xplain board
00065 #define XPLAIN_A1         9   //!< ATxmega128A1U Xplain-A1 board
00066 #define STK600_RC064X     10  //!< ATxmega256A3 STK600 board
00067 #define STK600_RC100X     11  //!< ATxmega128A1 STK600 board
00068 
00069 #define USER_BOARD        99  //!< User-reserved board (if any).
00070 
00072 
00075 
00076 #define EXT1102           1   //!< AT32UC3B EXT1102 board.
00077 #define MC300             2   //!< AT32UC3 MC300 board.
00078 #define USER_EXT_BOARD    99  //!< User-reserved extension board (if any).
00079 
00080 
00081 #if BOARD == EVK1100
00082   #include "evk1100/evk1100.h"
00083 #elif BOARD == EVK1101
00084   #include "evk1101/evk1101.h"
00085 #elif BOARD == UC3C_EK
00086   #include "uc3c_ek/uc3c_ek.h"
00087 #elif BOARD == EVK1104
00088   #include "evk1104/evk1104.h"
00089 #elif BOARD == EVK1105
00090   #include "evk1105/evk1105.h"
00091 #elif BOARD == STK600_RCUC3L0
00092   #include "stk600/rcuc3l0/stk600_rcuc3l0.h"
00093 #elif BOARD == UC3L_EK
00094   #include "uc3l_ek/uc3l_ek.h"
00095 #elif BOARD == XPLAIN
00096   #include "xplain/xplain.h"
00097 #elif BOARD == XPLAIN_A1
00098   #include "xplain_a1/xplain_a1.h"
00099 #elif BOARD == STK600_RC064X
00100   #include "stk600/rc064x/stk600_rc064x.h"
00101 #elif BOARD == STK600_RC100X
00102   #include "stk600/rc100x/stk600_rc100x.h"
00103 #elif BOARD == USER_BOARD
00104   // User-reserved area: #include the header file of your board here (if any).
00105   #include "user_board.h"
00106 #else
00107   #error No known AVR board defined
00108 #endif
00109 
00110 #if (defined EXT_BOARD)
00111   #if EXT_BOARD == MC300
00112     #include "mc300/mc300.h"
00113   #elif EXT_BOARD == USER_EXT_BOARD
00114     // User-reserved area: #include the header file of your extension board here
00115     // (if any).
00116   #endif
00117 #endif
00118 
00119 #ifndef FRCOSC
00120   #define FRCOSC    AVR32_PM_RCOSC_FREQUENCY  //!< Default RCOsc frequency.
00121 #endif
00122 
00123 #if (defined(__GNUC__) && defined(__AVR32__)) || (defined(__ICCAVR32__) || defined(__AAVR32__))
00124 #ifdef __AVR32_ABI_COMPILER__ // Automatically defined when compiling for AVR32, not when assembling.
00125 
00131 extern void board_init(void);
00132 
00133 #endif  // #ifdef __AVR32_ABI_COMPILER__
00134 #else
00135 
00140 extern void board_init(void);
00141 #endif
00142 #endif  // _BOARD_H_
@DOC_TITLE@
Generated on Fri Oct 22 12:15:25 2010 for AVR1300 Using the Xmega ADC by doxygen 1.6.3