amiro-os / modules / NUCLEO-F103RB / board.c @ b49ed442
History | View | Annotate | Download (1.563 KB)
1 | f4da707a | Thomas Schöpping | /*
|
---|---|---|---|
2 | 0f60c8ad | Thomas Schöpping | AMiRo-OS is an operating system designed for the Autonomous Mini Robot (AMiRo) platform.
|
3 | Copyright (C) 2016..2019 Thomas Schöpping et al.
|
||
4 | f4da707a | Thomas Schöpping | |
5 | 0f60c8ad | Thomas Schöpping | This program is free software: you can redistribute it and/or modify
|
6 | it under the terms of the GNU General Public License as published by
|
||
7 | the Free Software Foundation, either version 3 of the License, or
|
||
8 | (at your option) any later version.
|
||
9 | f4da707a | Thomas Schöpping | |
10 | 0f60c8ad | Thomas Schöpping | This program is distributed in the hope that it will be useful,
|
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
13 | GNU General Public License for more details.
|
||
14 | f4da707a | Thomas Schöpping | |
15 | 0f60c8ad | Thomas Schöpping | You should have received a copy of the GNU General Public License
|
16 | along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
17 | f4da707a | Thomas Schöpping | */
|
18 | |||
19 | #include "hal.h" |
||
20 | |||
21 | /**
|
||
22 | * @brief PAL setup.
|
||
23 | * @details Digital I/O ports static configuration as defined in @p board.h.
|
||
24 | * This variable is used by the HAL when initializing the PAL driver.
|
||
25 | */
|
||
26 | #if HAL_USE_PAL || defined(__DOXYGEN__)
|
||
27 | const PALConfig pal_default_config =
|
||
28 | { |
||
29 | {VAL_GPIOAODR, VAL_GPIOACRL, VAL_GPIOACRH}, |
||
30 | {VAL_GPIOBODR, VAL_GPIOBCRL, VAL_GPIOBCRH}, |
||
31 | {VAL_GPIOCODR, VAL_GPIOCCRL, VAL_GPIOCCRH}, |
||
32 | {VAL_GPIODODR, VAL_GPIODCRL, VAL_GPIODCRH}, |
||
33 | {VAL_GPIOEODR, VAL_GPIOECRL, VAL_GPIOECRH}, |
||
34 | }; |
||
35 | #endif
|
||
36 | |||
37 | /*
|
||
38 | * Early initialization code.
|
||
39 | * This initialization must be performed just after stack setup and before
|
||
40 | * any other initialization.
|
||
41 | */
|
||
42 | void __early_init(void) { |
||
43 | |||
44 | stm32_clock_init(); |
||
45 | } |
||
46 | |||
47 | /*
|
||
48 | * Board-specific initialization code.
|
||
49 | */
|
||
50 | void boardInit(void) { |
||
51 | } |