From 1b21eac4484cebb2e3cfb8556b8b8a52f2537285 Mon Sep 17 00:00:00 2001 From: Tristan Bruns <tristan+git@tristanbruns.de> Date: Wed, 11 Oct 2017 12:39:02 +0200 Subject: [PATCH] cpu/stm32_common: fix clk_conf --- cpu/stm32_common/dist/clk_conf/clk_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/stm32_common/dist/clk_conf/clk_conf.c b/cpu/stm32_common/dist/clk_conf/clk_conf.c index 80fa2b827d..25312632f6 100644 --- a/cpu/stm32_common/dist/clk_conf/clk_conf.c +++ b/cpu/stm32_common/dist/clk_conf/clk_conf.c @@ -405,7 +405,7 @@ int main(int argc, char **argv) break; } } - if (cfg->family == STM32F0) { + if (cfg->family != STM32F0) { for (apb2_pre = 1; apb2_pre <= 16; apb2_pre <<= 1) { if (coreclock / apb2_pre <= cfg->max_apb2) { break; -- GitLab