cpu/stm32_common: fix clk_conf
This commit is contained in:
parent
a82930cf60
commit
1b21eac448
2
cpu/stm32_common/dist/clk_conf/clk_conf.c
vendored
2
cpu/stm32_common/dist/clk_conf/clk_conf.c
vendored
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user