]> begriffs open source - freertos/blob - Demo/AVR32_UC3/BOARDS/board.h
Add AVR32 port and demo files.
[freertos] / Demo / AVR32_UC3 / BOARDS / board.h
1 /* This header file is part of the ATMEL FREERTOS-0.9.0 Release */\r
2 \r
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 email: avr32@atmel.com\r
17  *\r
18  ******************************************************************************/\r
19 \r
20 /* Copyright (c) 2007, 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,\r
26  * this 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  * THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED\r
36  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
37  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND\r
38  * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,\r
39  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\r
40  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\r
41  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\r
42  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
43  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r
44  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
45  */\r
46 \r
47 \r
48 #ifndef _BOARD_H_\r
49 #define _BOARD_H_\r
50 \r
51 #if __GNUC__\r
52 #  include <avr32/io.h>\r
53 #elif __ICCAVR32__ || __AAVR32__\r
54 #  include <avr32/iouc3a0512.h>\r
55 #else\r
56 #  error Unknown compiler\r
57 #endif\r
58 \r
59 #define EVK1100     1 //!< AT32UC3A EVK1100 board.\r
60 \r
61 #if BOARD == EVK1100\r
62 #  include "EVK1100/evk1100.h"\r
63 #else\r
64 #  error No known AVR32 board defined\r
65 #endif\r
66 \r
67 \r
68 #ifndef FRCOSC\r
69 #  define FRCOSC    AVR32_PM_RCOSC_FREQUENCY  //!< Default RCOsc frequency.\r
70 #endif\r
71 \r
72 \r
73 #endif  // _BOARD_H_\r