aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios/os/hal/boards/ST_EVB_SPC563M/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios/os/hal/boards/ST_EVB_SPC563M/board.h')
-rw-r--r--lib/chibios/os/hal/boards/ST_EVB_SPC563M/board.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/lib/chibios/os/hal/boards/ST_EVB_SPC563M/board.h b/lib/chibios/os/hal/boards/ST_EVB_SPC563M/board.h
new file mode 100644
index 000000000..414fd3458
--- /dev/null
+++ b/lib/chibios/os/hal/boards/ST_EVB_SPC563M/board.h
@@ -0,0 +1,66 @@
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 a generic SPC563Mxx proto board.
22 */
23
24/*
25 * Board identifiers.
26 */
27#define BOARD_SPC563MXX_EVB
28#define BOARD_NAME "EVB with SPC563Mxx Mini Module"
29
30/*
31 * Board frequencies.
32 */
33#if !defined(SPC5_XOSC_CLK)
34#define SPC5_XOSC_CLK 8000000
35#endif
36
37/*
38 * I/O definitions.
39 */
40#define P5_ESCI_A_TX 3 /* SCI_A_TX==GPIO[83] */
41#define P5_ESCI_A_RX 4 /* SCI_A_RX==GPIO[84] */
42#define P11_BUTTON1 3
43#define P11_BUTTON2 5
44#define P11_BUTTON3 7
45#define P11_BUTTON4 11 /* GPIO[187] */
46#define P11_LED1 12
47#define P11_LED2 13
48#define P11_LED3 14
49#define P11_LED4 15
50
51/*
52 * Support macros.
53 */
54#define PCR(port, pin) (((port) * 16) + (pin))
55
56#if !defined(_FROM_ASM_)
57#ifdef __cplusplus
58extern "C" {
59#endif
60 void boardInit(void);
61#ifdef __cplusplus
62}
63#endif
64#endif /* _FROM_ASM_ */
65
66#endif /* _BOARD_H_ */