Merge pull request #7716 from beduino-project/fix-clk_conf
cpu/stm32_common: fix clk_conf
This commit is contained in:
commit
0a23ecb3eb
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (cfg->family == STM32F0) {
|
if (cfg->family != STM32F0) {
|
||||||
for (apb2_pre = 1; apb2_pre <= 16; apb2_pre <<= 1) {
|
for (apb2_pre = 1; apb2_pre <= 16; apb2_pre <<= 1) {
|
||||||
if (coreclock / apb2_pre <= cfg->max_apb2) {
|
if (coreclock / apb2_pre <= cfg->max_apb2) {
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user