diff options
| author | Damien George | 2018-02-13 15:37:35 +1100 |
|---|---|---|
| committer | Damien George | 2018-02-13 15:37:35 +1100 |
| commit | 3eb0694b97c6a8f0e93b874549aac40d8b78b0e5 (patch) | |
| tree | cfc6ba54808c86c54ffed0deb2b31cbb6b46ef49 /ports/stm32/main.c | |
| parent | 8e1cb58a23372594f5a2b5baba91f8e570b7da21 (diff) | |
stm32: Update HAL macro and constant names to use newer versions.
Newer versions of the HAL use names which are cleaner and more
self-consistent amongst the HAL itself. This patch switches to use those
names in most places so it is easier to update the HAL in the future.
Diffstat (limited to 'ports/stm32/main.c')
| -rw-r--r-- | ports/stm32/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ports/stm32/main.c b/ports/stm32/main.c index 9d568675e..92a6100c9 100644 --- a/ports/stm32/main.c +++ b/ports/stm32/main.c @@ -428,10 +428,10 @@ int main(void) { SystemClock_Config(); // enable GPIO clocks - __GPIOA_CLK_ENABLE(); - __GPIOB_CLK_ENABLE(); - __GPIOC_CLK_ENABLE(); - __GPIOD_CLK_ENABLE(); + __HAL_RCC_GPIOA_CLK_ENABLE(); + __HAL_RCC_GPIOB_CLK_ENABLE(); + __HAL_RCC_GPIOC_CLK_ENABLE(); + __HAL_RCC_GPIOD_CLK_ENABLE(); #if defined(MCU_SERIES_F4) || defined(MCU_SERIES_F7) #if defined(__HAL_RCC_DTCMRAMEN_CLK_ENABLE) |
