Robobo
conf_board.h
1 /* ----------------------------------------------------------------------------
2  * SAM Software Package License
3  * ----------------------------------------------------------------------------
4  * Copyright (c) 2012, Atmel Corporation
5  *
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following condition is met:
10  *
11  * - Redistributions of source code must retain the above copyright notice,
12  * this list of conditions and the disclaimer below.
13  *
14  * Atmel's name may not be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20  * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  * ----------------------------------------------------------------------------
28  */
29 
30 #ifndef CONF_BOARD_H_INCLUDED
31 #define CONF_BOARD_H_INCLUDED
32 
33 #define SAM3S_EK (1)
34 #define SAM3S_EK2 (2)
35 #define SAM3N_EK (3)
36 #define SAM3U_EK (4)
37 #define SAM3X_EK (5)
38 #define SAM4S_EK (6)
39 
40 #ifndef BOARD
41 # error "BOARD is not defined"
42 #endif
43 
44 #if BOARD == SAM3S_EK
45 # define LED0_PIO PIOA
46 # define LED0_MASK (0x01UL << 19)
47 #endif /* SAM3S_EK */
48 
49 #if BOARD == SAM3S_EK2
50 # define LED0_PIO PIOA
51 # define LED0_MASK (0x01UL << 19)
52 #endif /* SAM3S_EK2 */
53 
54 #if BOARD == SAM3N_EK
55 # define LED0_PIO PIOA
56 # define LED0_MASK (0x01UL << 23)
57 #endif /* SAM3N_EK */
58 
59 #if BOARD == SAM3U_EK
60 # define LED0_PIO PIOB
61 # define LED0_MASK (0x01UL << 0)
62 #endif /* SAM3U_EK */
63 
64 #if BOARD == SAM3X_EK
65 # define LED0_PIO PIOB
66 # define LED0_MASK (0x01UL << 12)
67 #endif /* SAM3X_EK */
68 
69 #if BOARD == SAM4S_EK
70 # define LED0_PIO PIOA
71 # define LED0_MASK (0x01UL << 19)
72 #endif /* SAM4S_EK */
73 
74 #endif /* CONF_BOARD_H_INCLUDED */