diff options
Diffstat (limited to 'keyboards/chibios_test/boards/GENERIC_STM32_F103/board.c')
| -rw-r--r-- | keyboards/chibios_test/boards/GENERIC_STM32_F103/board.c | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/keyboards/chibios_test/boards/GENERIC_STM32_F103/board.c b/keyboards/chibios_test/boards/GENERIC_STM32_F103/board.c index 31319ef57..2809c9d18 100644 --- a/keyboards/chibios_test/boards/GENERIC_STM32_F103/board.c +++ b/keyboards/chibios_test/boards/GENERIC_STM32_F103/board.c | |||
| @@ -1,49 +1,49 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio | 2 | ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with 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 | 6 | You may obtain a copy of the License at |
| 7 | 7 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and | 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. | 14 | limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include "hal.h" | 17 | #include "hal.h" |
| 18 | 18 | ||
| 19 | /** | 19 | /** |
| 20 | * @brief PAL setup. | 20 | * @brief PAL setup. |
| 21 | * @details Digital I/O ports static configuration as defined in @p board.h. | 21 | * @details Digital I/O ports static configuration as defined in @p board.h. |
| 22 | * This variable is used by the HAL when initializing the PAL driver. | 22 | * This variable is used by the HAL when initializing the PAL driver. |
| 23 | */ | 23 | */ |
| 24 | #if HAL_USE_PAL || defined(__DOXYGEN__) | 24 | #if HAL_USE_PAL || defined(__DOXYGEN__) |
| 25 | const PALConfig pal_default_config = | 25 | const PALConfig pal_default_config = |
| 26 | { | 26 | { |
| 27 | {VAL_GPIOAODR, VAL_GPIOACRL, VAL_GPIOACRH}, | 27 | {VAL_GPIOAODR, VAL_GPIOACRL, VAL_GPIOACRH}, |
| 28 | {VAL_GPIOBODR, VAL_GPIOBCRL, VAL_GPIOBCRH}, | 28 | {VAL_GPIOBODR, VAL_GPIOBCRL, VAL_GPIOBCRH}, |
| 29 | {VAL_GPIOCODR, VAL_GPIOCCRL, VAL_GPIOCCRH}, | 29 | {VAL_GPIOCODR, VAL_GPIOCCRL, VAL_GPIOCCRH}, |
| 30 | {VAL_GPIODODR, VAL_GPIODCRL, VAL_GPIODCRH}, | 30 | {VAL_GPIODODR, VAL_GPIODCRL, VAL_GPIODCRH}, |
| 31 | {VAL_GPIOEODR, VAL_GPIOECRL, VAL_GPIOECRH}, | 31 | {VAL_GPIOEODR, VAL_GPIOECRL, VAL_GPIOECRH}, |
| 32 | }; | 32 | }; |
| 33 | #endif | 33 | #endif |
| 34 | 34 | ||
| 35 | /* | 35 | /* |
| 36 | * Early initialization code. | 36 | * Early initialization code. |
| 37 | * This initialization must be performed just after stack setup and before | 37 | * This initialization must be performed just after stack setup and before |
| 38 | * any other initialization. | 38 | * any other initialization. |
| 39 | */ | 39 | */ |
| 40 | void __early_init(void) { | 40 | void __early_init(void) { |
| 41 | 41 | ||
| 42 | stm32_clock_init(); | 42 | stm32_clock_init(); |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | /* | 45 | /* |
| 46 | * Board-specific initialization code. | 46 | * Board-specific initialization code. |
| 47 | */ | 47 | */ |
| 48 | void boardInit(void) { | 48 | void boardInit(void) { |
| 49 | } | 49 | } |
