cpu/stm32_common: fix clk_conf

This commit is contained in:
Tristan Bruns 2017-10-11 12:39:02 +02:00
parent a82930cf60
commit 1b21eac448

View File

@ -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;