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