Skip to content
Snippets Groups Projects
Commit 0a23ecb3 authored by Vincent Dupont's avatar Vincent Dupont Committed by GitHub
Browse files

Merge pull request #7716 from beduino-project/fix-clk_conf

cpu/stm32_common: fix clk_conf
parents a82930cf 1b21eac4
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment