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

cpu/stm32_common: fix clk_conf
This commit is contained in:
Vincent Dupont 2017-10-11 13:33:34 +02:00 committed by GitHub
commit 0a23ecb3eb

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;