amiro-os / modules / NUCLEO-F103RB / board.c @ 3cee92c7
History | View | Annotate | Download (2.998 KB)
1 |
/*
|
---|---|
2 |
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 |
|
5 |
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 |
|
10 |
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 |
|
15 |
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 |
*/
|
18 |
|
19 |
#include "hal.h" |
20 |
|
21 |
/*===========================================================================*/
|
22 |
/* Driver local definitions. */
|
23 |
/*===========================================================================*/
|
24 |
|
25 |
/*===========================================================================*/
|
26 |
/* Driver exported variables. */
|
27 |
/*===========================================================================*/
|
28 |
|
29 |
/*===========================================================================*/
|
30 |
/* Driver local variables and types. */
|
31 |
/*===========================================================================*/
|
32 |
|
33 |
/**
|
34 |
* @brief PAL setup.
|
35 |
* @details Digital I/O ports static configuration as defined in @p board.h.
|
36 |
* This variable is used by the HAL when initializing the PAL driver.
|
37 |
*/
|
38 |
#if HAL_USE_PAL || defined(__DOXYGEN__)
|
39 |
const PALConfig pal_default_config =
|
40 |
{ |
41 |
{VAL_GPIOAODR, VAL_GPIOACRL, VAL_GPIOACRH}, |
42 |
{VAL_GPIOBODR, VAL_GPIOBCRL, VAL_GPIOBCRH}, |
43 |
{VAL_GPIOCODR, VAL_GPIOCCRL, VAL_GPIOCCRH}, |
44 |
{VAL_GPIODODR, VAL_GPIODCRL, VAL_GPIODCRH}, |
45 |
{VAL_GPIOEODR, VAL_GPIOECRL, VAL_GPIOECRH}, |
46 |
}; |
47 |
#endif
|
48 |
|
49 |
/*===========================================================================*/
|
50 |
/* Driver local functions. */
|
51 |
/*===========================================================================*/
|
52 |
|
53 |
/*===========================================================================*/
|
54 |
/* Driver interrupt handlers. */
|
55 |
/*===========================================================================*/
|
56 |
|
57 |
/*===========================================================================*/
|
58 |
/* Driver exported functions. */
|
59 |
/*===========================================================================*/
|
60 |
|
61 |
/*
|
62 |
* Early initialization code.
|
63 |
* This initialization must be performed just after stack setup and before
|
64 |
* any other initialization.
|
65 |
*/
|
66 |
void __early_init(void) { |
67 |
|
68 |
stm32_clock_init(); |
69 |
} |
70 |
|
71 |
/*
|
72 |
* Board-specific initialization code.
|
73 |
*/
|
74 |
void boardInit(void) { |
75 |
} |