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