aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/stm32f4.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32/stm32f4.c')
-rw-r--r--src/stm32/stm32f4.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/stm32/stm32f4.c b/src/stm32/stm32f4.c
index 4bab40bc..06312832 100644
--- a/src/stm32/stm32f4.c
+++ b/src/stm32/stm32f4.c
@@ -144,8 +144,7 @@ enable_clock_stm32f20x(void)
static void
enable_clock_stm32f40x(void)
{
-#if CONFIG_MACH_STM32F405 || CONFIG_MACH_STM32F407 \
- || CONFIG_MACH_STM32F401 || CONFIG_MACH_STM32F429
+#if CONFIG_MACH_STM32F401 || CONFIG_MACH_STM32F4x5
uint32_t pll_base = (CONFIG_STM32_CLOCK_REF_25M) ? 1000000 : 2000000;
uint32_t pllp = (CONFIG_MACH_STM32F401) ? 4 : 2;
uint32_t pll_freq = CONFIG_CLOCK_FREQ * pllp, pllcfgr;
@@ -222,8 +221,7 @@ clock_setup(void)
// Configure and enable PLL
if (CONFIG_MACH_STM32F207)
enable_clock_stm32f20x();
- else if (CONFIG_MACH_STM32F405 || CONFIG_MACH_STM32F407
- || CONFIG_MACH_STM32F401 || CONFIG_MACH_STM32F429)
+ else if (CONFIG_MACH_STM32F401 || CONFIG_MACH_STM32F4x5)
enable_clock_stm32f40x();
else
enable_clock_stm32f446();