aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios/os/hal/boards/ST_EVB_SPC560P/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios/os/hal/boards/ST_EVB_SPC560P/board.h')
-rw-r--r--lib/chibios/os/hal/boards/ST_EVB_SPC560P/board.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/lib/chibios/os/hal/boards/ST_EVB_SPC560P/board.h b/lib/chibios/os/hal/boards/ST_EVB_SPC560P/board.h
new file mode 100644
index 000000000..54396be59
--- /dev/null
+++ b/lib/chibios/os/hal/boards/ST_EVB_SPC560P/board.h
@@ -0,0 +1,71 @@
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 SPC560Pxx board.
22 */
23
24/*
25 * Board identifiers.
26 */
27#define BOARD_SPC560PXX_EVB
28#define BOARD_NAME "EVB with SPC560Pxx Mini Module"
29
30/*
31 * Device identifier.
32 */
33#define _SPC560P50L5_
34
35/*
36 * Board frequencies.
37 */
38#if !defined(SPC5_XOSC_CLK)
39#define SPC5_XOSC_CLK 40000000
40#endif
41
42/*
43 * I/O definitions.
44 */
45#define PB_LIN0_TDX 2
46#define PB_LIN0_RDX 3
47#define PD_BUTTON1 0
48#define PD_BUTTON2 1
49#define PD_BUTTON3 2
50#define PD_BUTTON4 3
51#define PD_LED1 4
52#define PD_LED2 5
53#define PD_LED3 6
54#define PD_LED4 7
55
56/*
57 * Support macros.
58 */
59#define PCR(port, pin) (((port) * 16) + (pin))
60
61#if !defined(_FROM_ASM_)
62#ifdef __cplusplus
63extern "C" {
64#endif
65 void boardInit(void);
66#ifdef __cplusplus
67}
68#endif
69#endif /* _FROM_ASM_ */
70
71#endif /* _BOARD_H_ */