Statistics
| Branch: | Tag: | Revision:

amiro-os / modules / NUCLEO-F103RB / board.c @ 77a3b16a

History | View | Annotate | Download (1.563 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
 * @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
}