]> git.sur5r.net Git - freertos/blob - Demo/AVR32_UC3A_GCC/Atmel_SW_Framework/BOARDS/board.h
fbdd094c741eac7daf5190eb0ac550a584957722
[freertos] / Demo / AVR32_UC3A_GCC / Atmel_SW_Framework / BOARDS / board.h
1 /* This header file is part of the ATMEL AVR-UC3-SoftwareFramework-1.7.0 Release */\r
2
3 /*This file is prepared for Doxygen automatic documentation generation.*/\r
4 /*! \file *********************************************************************\r
5  *\r
6  * \brief Standard board header file.\r
7  *\r
8  * This file includes the appropriate board header file according to the\r
9  * defined board.\r
10  *\r
11  * - Compiler:           IAR EWAVR32 and GNU GCC for AVR32\r
12  * - Supported devices:  All AVR32 devices can be used.\r
13  * - AppNote:\r
14  *\r
15  * \author               Atmel Corporation: http://www.atmel.com \n\r
16  *                       Support and FAQ: http://support.atmel.no/\r
17  *\r
18  ******************************************************************************/\r
19 \r
20 /* Copyright (c) 2009 Atmel Corporation. All rights reserved.\r
21  *\r
22  * Redistribution and use in source and binary forms, with or without\r
23  * modification, are permitted provided that the following conditions are met:\r
24  *\r
25  * 1. Redistributions of source code must retain the above copyright notice, this\r
26  * list of conditions and the following disclaimer.\r
27  *\r
28  * 2. Redistributions in binary form must reproduce the above copyright notice,\r
29  * this list of conditions and the following disclaimer in the documentation\r
30  * and/or other materials provided with the distribution.\r
31  *\r
32  * 3. The name of Atmel may not be used to endorse or promote products derived\r
33  * from this software without specific prior written permission.\r
34  *\r
35  * 4. This software may only be redistributed and used in connection with an Atmel\r
36  * AVR product.\r
37  *\r
38  * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED\r
39  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
40  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE\r
41  * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR\r
42  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\r
43  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\r
44  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\r
45  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
46  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
47  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE\r
48  *\r
49  */\r
50 \r
51 #ifndef _BOARD_H_\r
52 #define _BOARD_H_\r
53 \r
54 #include <avr32/io.h>\r
55 \r
56 /*! \name Base Boards\r
57  */\r
58 //! @{\r
59 #define EVK1100           1   //!< AT32UC3A EVK1100 board.\r
60 #define EVK1101           2   //!< AT32UC3B EVK1101 board.\r
61 #define UC3C_EK           3   //!< AT32UC3C UC3C_EK board.\r
62 #define EVK1104           4   //!< AT32UC3A3 EVK1104 board.\r
63 #define EVK1105           5   //!< AT32UC3A EVK1105 board.\r
64 #define STK1000           6   //!< AT32AP7000 STK1000 board.\r
65 #define NGW100            7   //!< AT32AP7000 NGW100 board.\r
66 #define STK600_RCUC3L0    8   //!< STK600 RCUC3L0 board.\r
67 #define UC3L_EK           9   //!< AT32UC3L-EK board.\r
68 #define USER_BOARD        99  //!< User-reserved board (if any).\r
69 //! @}\r
70 \r
71 /*! \name Extension Boards\r
72  */\r
73 //! @{\r
74 #define EXT1102           1   //!< AT32UC3B EXT1102 board.\r
75 #define MC300             2   //!< AT32UC3 MC300 board.\r
76 #define USER_EXT_BOARD    99  //!< User-reserved extension board (if any).\r
77 //! @}\r
78 \r
79 #if BOARD == EVK1100\r
80   #include "EVK1100/evk1100.h"\r
81 #elif BOARD == EVK1101\r
82   #include "EVK1101/evk1101.h"\r
83 #elif BOARD == UC3C_EK\r
84   #include "UC3C_EK/uc3c_ek.h"\r
85 #elif BOARD == EVK1104\r
86   #include "EVK1104/evk1104.h"\r
87 #elif BOARD == EVK1105\r
88   #include "EVK1105/evk1105.h"\r
89 #elif BOARD == STK1000\r
90   #include "STK1000/stk1000.h"\r
91 #elif BOARD == NGW100\r
92   #include "NGW100/ngw100.h"\r
93 #elif BOARD == STK600_RCUC3L0\r
94   #include "STK600/RCUC3L0/stk600_rcuc3l0.h"\r
95 #elif BOARD == UC3L_EK\r
96   #include "UC3L_EK/uc3l_ek.h"\r
97 #elif BOARD == USER_BOARD\r
98   // User-reserved area: #include the header file of your board here (if any).\r
99   #include "user_board.h"\r
100 #else\r
101   #error No known AVR32 board defined\r
102 #endif\r
103 \r
104 #if (defined EXT_BOARD)\r
105   #if EXT_BOARD == EXT1102\r
106     #include "EXT1102/ext1102.h"\r
107   #elif EXT_BOARD == MC300\r
108     #include "MC300/mc300.h"\r
109   #elif EXT_BOARD == USER_EXT_BOARD\r
110     // User-reserved area: #include the header file of your extension board here\r
111     // (if any).\r
112   #endif\r
113 #endif\r
114 \r
115 \r
116 #ifndef FRCOSC\r
117   #define FRCOSC    AVR32_PM_RCOSC_FREQUENCY  //!< Default RCOsc frequency.\r
118 #endif\r
119 \r
120 \r
121 #endif  // _BOARD_H_\r