- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

# 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 <avr32/io.h>
    00053
    00056
    00057 #define EVK1100           1
    00058 #define EVK1101           2
    00059 #define UC3C_EK           3
    00060 #define EVK1104           4
    00061 #define EVK1105           5
    00062 #define STK1000           6
    00063 #define NGW100            7
    00064 #define STK600_RCUC3L0    8
    00065 #define UC3L_EK           9
    00066 #define USER_BOARD        99
    00067
    00068
    00069
    00071
    00072 #define EXT1102           1
    00073 #define MC300             2
    00074 #define USER_EXT_BOARD    99
    00075
    00076
    00077 #if BOARD == EVK1100
    00078   #include "EVK1100/evk1100.h"
    00079 #elif BOARD == EVK1101
    00080   #include "EVK1101/evk1101.h"
    00081 #elif BOARD == UC3C_EK
    00082   #include "UC3C_EK/uc3c_ek.h"
    00083 #elif BOARD == EVK1104
    00084   #include "EVK1104/evk1104.h"
    00085 #elif BOARD == EVK1105
    00086   #include "EVK1105/evk1105.h"
    00087 #elif BOARD == STK1000
    00088   #include "STK1000/stk1000.h"
    00089 #elif BOARD == NGW100
    00090   #include "NGW100/ngw100.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 == USER_BOARD
    00096   // User-reserved area: #include the header file of your board here (if any).
    00097   #include "user_board.h"
    00098 #else
    00099   #error No known AVR32 board defined
    00100 #endif
    00101
    00102 #if (defined EXT_BOARD)
    00103   #if EXT_BOARD == EXT1102
    00104     #include "EXT1102/ext1102.h"
    00105   #elif EXT_BOARD == MC300
    00106     #include "MC300/mc300.h"
    00107   #elif EXT_BOARD == USER_EXT_BOARD
    00108     // User-reserved area: #include the header file of your extension board here
    00109     // (if any).
    00110   #endif
    00111 #endif
    00112
    00113
    00114 #ifndef FRCOSC
    00115   #define FRCOSC    AVR32_PM_RCOSC_FREQUENCY
    00116 #endif
    00117
    00118
    00119 #endif  // _BOARD_H_