aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios/os/hal/boards/ST_EVB_SPC560D/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios/os/hal/boards/ST_EVB_SPC560D/board.h')
-rw-r--r--lib/chibios/os/hal/boards/ST_EVB_SPC560D/board.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/lib/chibios/os/hal/boards/ST_EVB_SPC560D/board.h b/lib/chibios/os/hal/boards/ST_EVB_SPC560D/board.h
new file mode 100644
index 000000000..f98bb2e6c
--- /dev/null
+++ b/lib/chibios/os/hal/boards/ST_EVB_SPC560D/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 SPC560Dxx board.
22 */
23
24/*
25 * Board identifiers.
26 */
27#define BOARD_SPC560DXX_EVB
28#define BOARD_NAME "EVB with SPC560Dxx 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 PB_LIN0_TDX 2
41#define PB_LIN0_RDX 3
42#define PE_BUTTON1 0
43#define PE_BUTTON2 1
44#define PE_BUTTON3 2
45#define PE_BUTTON4 3
46#define PE_LED1 4
47#define PE_LED2 5
48#define PE_LED3 6
49#define PE_LED4 7
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_ */