]> git.sur5r.net Git - freertos/blob - Demo/AVR32_UC3/BOARDS/board.h
Start to re-arrange files to include FreeRTOS+ in main download.
[freertos] / Demo / AVR32_UC3 / BOARDS / board.h
1 /*This file is prepared for Doxygen automatic documentation generation.*/\r
2 /*! \file *********************************************************************\r
3  *\r
4  * \brief Standard board header file.\r
5  *\r
6  * This file includes the appropriate board header file according to the\r
7  * defined board.\r
8  *\r
9  * - Compiler:           IAR EWAVR32 and GNU GCC for AVR32\r
10  * - Supported devices:  All AVR32 devices can be used.\r
11  * - AppNote:\r
12  *\r
13  * \author               Atmel Corporation: http://www.atmel.com \n\r
14  *                       Support and FAQ: http://support.atmel.no/\r
15  *\r
16  ******************************************************************************/\r
17 \r
18 /* Copyright (c) 2007, Atmel Corporation All rights reserved.\r
19  *\r
20  * Redistribution and use in source and binary forms, with or without\r
21  * modification, are permitted provided that the following conditions are met:\r
22  *\r
23  * 1. Redistributions of source code must retain the above copyright notice,\r
24  * this list of conditions and the following disclaimer.\r
25  *\r
26  * 2. Redistributions in binary form must reproduce the above copyright notice,\r
27  * this list of conditions and the following disclaimer in the documentation\r
28  * and/or other materials provided with the distribution.\r
29  *\r
30  * 3. The name of ATMEL may not be used to endorse or promote products derived\r
31  * from this software without specific prior written permission.\r
32  *\r
33  * THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED\r
34  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
35  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND\r
36  * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,\r
37  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\r
38  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\r
39  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\r
40  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
41  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r
42  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
43  */\r
44 \r
45 \r
46 #ifndef _BOARD_H_\r
47 #define _BOARD_H_\r
48 \r
49 #include <avr32/io.h>\r
50 \r
51 /*! \name Base Boards\r
52  */\r
53 //! @{\r
54 #define EVK1100     1 //!< AT32UC3A EVK1100 board.\r
55 #define EVK1101     2 //!< AT32UC3B EVK1101 board.\r
56 //! @}\r
57 \r
58 /*! \name Extension Boards\r
59  */\r
60 //! @{\r
61 #define EXT1102     1 //!< AT32UC3B EXT1102 board.\r
62 //! @}\r
63 \r
64 #if BOARD == EVK1100\r
65 #  include "EVK1100/evk1100.h"\r
66 #elif BOARD == EVK1101\r
67 #  include "EVK1101/evk1101.h"\r
68 #else\r
69 #  error No known AVR32 board defined\r
70 #endif\r
71 \r
72 #if EXT_BOARD == EXT1102\r
73 #  include "EXT1102/ext1102.h"\r
74 #endif\r
75 \r
76 \r
77 #ifndef FRCOSC\r
78 #  define FRCOSC    AVR32_PM_RCOSC_FREQUENCY  //!< Default RCOsc frequency.\r
79 #endif\r
80 \r
81 \r
82 #endif  // _BOARD_H_\r