aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios/os/hal/boards/EA_LPCXPRESSO_BB_1343/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios/os/hal/boards/EA_LPCXPRESSO_BB_1343/board.h')
-rw-r--r--lib/chibios/os/hal/boards/EA_LPCXPRESSO_BB_1343/board.h91
1 files changed, 91 insertions, 0 deletions
diff --git a/lib/chibios/os/hal/boards/EA_LPCXPRESSO_BB_1343/board.h b/lib/chibios/os/hal/boards/EA_LPCXPRESSO_BB_1343/board.h
new file mode 100644
index 000000000..b86b11042
--- /dev/null
+++ b/lib/chibios/os/hal/boards/EA_LPCXPRESSO_BB_1343/board.h
@@ -0,0 +1,91 @@
1/*
2 ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
17#ifndef _BOARD_H_
18#define _BOARD_H_
19
20/*
21 * Setup for Embedded Artists LPCXpresso Base Board with LPC1343 daughter
22 * board.
23 */
24
25/*
26 * Board identifiers.
27 */
28#define BOARD_EA_BB_LPC1343
29#define BOARD_NAME "Embedded Artists LPCXpresso Base Board + LPC1343"
30
31/*
32 * Board frequencies.
33 */
34#define SYSOSCCLK 12000000
35
36/*
37 * GPIO 0 initial setup.
38 */
39#define VAL_GPIO0DIR PAL_PORT_BIT(GPIO0_OLEDSEL) | \
40 PAL_PORT_BIT(GPIO0_LED2)
41#define VAL_GPIO0DATA PAL_PORT_BIT(GPIO0_OLEDSEL) | \
42 PAL_PORT_BIT(GPIO0_LED2)
43
44/*
45 * GPIO 1 initial setup.
46 */
47#define VAL_GPIO1DIR PAL_PORT_BIT(GPIO1_LED3B) | \
48 PAL_PORT_BIT(GPIO1_LED3R) | \
49 PAL_PORT_BIT(GPIO1_LED3G) | \
50 PAL_PORT_BIT(GPIO1_SPI0SEL)
51#define VAL_GPIO1DATA PAL_PORT_BIT(GPIO1_LED3B) | \
52 PAL_PORT_BIT(GPIO1_LED3R) | \
53 PAL_PORT_BIT(GPIO1_LED3G) | \
54 PAL_PORT_BIT(GPIO1_SPI0SEL)
55
56/*
57 * GPIO 2 initial setup.
58 */
59#define VAL_GPIO2DIR 0x00000000
60#define VAL_GPIO2DATA 0x00000000
61
62/*
63 * GPIO 3 initial setup.
64 */
65#define VAL_GPIO3DIR 0x00000000
66#define VAL_GPIO3DATA 0x00000000
67
68/*
69 * Pin definitions.
70 */
71#define GPIO0_SW3 1
72#define GPIO0_OLEDSEL 2
73#define GPIO0_LED2 7
74
75#define GPIO1_LED3B 2
76#define GPIO1_SW4 4
77#define GPIO1_LED3R 9
78#define GPIO1_LED3G 10
79#define GPIO1_SPI0SEL 11
80
81#if !defined(_FROM_ASM_)
82#ifdef __cplusplus
83extern "C" {
84#endif
85 void boardInit(void);
86#ifdef __cplusplus
87}
88#endif
89#endif /* _FROM_ASM_ */
90
91#endif /* _BOARD_H_ */