diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-05-28 15:53:30 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-05-28 15:56:22 -0400 |
commit | b80d2f77060f15ed955cd00776c201391a401a83 (patch) | |
tree | 200248099315c469678324929f99e7ccc0ec9e7c /src/stm32/stm32f0.c | |
parent | 5ef930454e57a01a0c658b549b1abc4f5e1c7ad2 (diff) | |
download | kutter-b80d2f77060f15ed955cd00776c201391a401a83.tar.gz kutter-b80d2f77060f15ed955cd00776c201391a401a83.tar.xz kutter-b80d2f77060f15ed955cd00776c201391a401a83.zip |
stm32: Fix typo causing internal clock to always be used on stm32f042
Reported by Pontus Borg.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/stm32f0.c')
-rw-r--r-- | src/stm32/stm32f0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32/stm32f0.c b/src/stm32/stm32f0.c index 4153f526..9c536915 100644 --- a/src/stm32/stm32f0.c +++ b/src/stm32/stm32f0.c @@ -211,7 +211,7 @@ armcm_main(void) FLASH->ACR = (1 << FLASH_ACR_LATENCY_Pos) | FLASH_ACR_PRFTBE; // Configure main clock - if (CONFIG_MACH_STM32F042 || CONFIG_STM32_CLOCK_REF_INTERNAL) + if (CONFIG_MACH_STM32F042 && CONFIG_STM32_CLOCK_REF_INTERNAL) hsi48_setup(); else pll_setup(); |