aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios/os/hal/boards/ST_EVALKITST7580_1/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios/os/hal/boards/ST_EVALKITST7580_1/board.c')
-rw-r--r--lib/chibios/os/hal/boards/ST_EVALKITST7580_1/board.c53
1 files changed, 53 insertions, 0 deletions
diff --git a/lib/chibios/os/hal/boards/ST_EVALKITST7580_1/board.c b/lib/chibios/os/hal/boards/ST_EVALKITST7580_1/board.c
new file mode 100644
index 000000000..27ec42c9d
--- /dev/null
+++ b/lib/chibios/os/hal/boards/ST_EVALKITST7580_1/board.c
@@ -0,0 +1,53 @@
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/*
18 Concepts and parts of this file have been contributed by Rocco Marco
19 Guglielmi.
20 */
21#include "hal.h"
22
23/**
24 * @brief PAL setup.
25 * @details Digital I/O ports static configuration as defined in @p board.h.
26 * This variable is used by the HAL when initializing the PAL driver.
27 */
28#if HAL_USE_PAL || defined(__DOXYGEN__)
29const PALConfig pal_default_config =
30{
31 {VAL_GPIOAODR, VAL_GPIOACRL, VAL_GPIOACRH},
32 {VAL_GPIOBODR, VAL_GPIOBCRL, VAL_GPIOBCRH},
33 {VAL_GPIOCODR, VAL_GPIOCCRL, VAL_GPIOCCRH},
34 {VAL_GPIODODR, VAL_GPIODCRL, VAL_GPIODCRH},
35 {VAL_GPIOEODR, VAL_GPIOECRL, VAL_GPIOECRH},
36};
37#endif
38
39/*
40 * Early initialization code.
41 * This initialization must be performed just after stack setup and before
42 * any other initialization.
43 */
44void __early_init(void) {
45
46 stm32_clock_init();
47}
48
49/*
50 * Board-specific initialization code.
51 */
52void boardInit(void) {
53}