aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios/os/hal/boards/MT-DB-X4/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios/os/hal/boards/MT-DB-X4/board.h')
-rw-r--r--lib/chibios/os/hal/boards/MT-DB-X4/board.h86
1 files changed, 86 insertions, 0 deletions
diff --git a/lib/chibios/os/hal/boards/MT-DB-X4/board.h b/lib/chibios/os/hal/boards/MT-DB-X4/board.h
new file mode 100644
index 000000000..2b508f0f8
--- /dev/null
+++ b/lib/chibios/os/hal/boards/MT-DB-X4/board.h
@@ -0,0 +1,86 @@
1/*
2 ChibiOS - Copyright (C) 2017 Theodore Ateba
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 the Mattair board.
22 */
23
24/*
25 * Board identifier.
26 */
27#define BOARD_MT_DB_X4
28#define BOARD_NAME "MT-DB-X4 board"
29
30/* All inputs with pull-ups */
31#define VAL_DDRA 0x00
32#define VAL_PORTA 0xFF
33
34/* All inputs. */
35#define VAL_DDRB 0x00
36#define VAL_PORTB 0xFF
37
38/* All inputs with pull-ups */
39#define VAL_DDRC 0x00
40#define VAL_PORTC 0xFF
41
42/* All inputs with pull-ups */
43#define VAL_DDRD 0x00
44#define VAL_PORTD 0xFF
45
46/* All inputs except PE1 wich has a LED connected. */
47#define VAL_DDRE 0x02
48#define VAL_PORTE 0xFF
49
50/* All inputs with pull-ups */
51#define VAL_DDRF 0x00
52#define VAL_PORTF 0xFF
53
54/* All inputs with pull-ups */
55#define VAL_DDRG 0x00
56#define VAL_PORTG 0xFF
57
58/* All inputs with pull-ups */
59#define VAL_DDRH 0x00
60#define VAL_PORTH 0xFF
61
62/* All inputs with pull-ups */
63#define VAL_DDRJ 0x00
64#define VAL_PORTJ 0xFF
65
66/* All inputs with pull-ups */
67#define VAL_DDRK 0x00
68#define VAL_PORTK 0xFF
69
70/* All inputs with pull-ups */
71#define VAL_DDRL 0x00
72#define VAL_PORTL 0xFF
73
74#define PORTE_LED 1
75
76#if !defined(_FROM_ASM_)
77#ifdef __cplusplus
78extern "C" {
79#endif
80 void boardInit(void);
81#ifdef __cplusplus
82}
83#endif
84#endif /* _FROM_ASM_ */
85
86#endif /* BOARD_H */