diff options
author | smark- <ing.smark@yahoo.it> | 2021-02-01 01:41:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-31 19:41:53 -0500 |
commit | ef4d9c3abd30ae8a485020fd9ff2fb4529a143b3 (patch) | |
tree | 7e361e04387b59bbfb8cbb42461552315792ca47 /src/stm32/stm32f4.c | |
parent | 60e4cddf36e00f196e16dd514fa8e9d66670693a (diff) | |
download | kutter-ef4d9c3abd30ae8a485020fd9ff2fb4529a143b3.tar.gz kutter-ef4d9c3abd30ae8a485020fd9ff2fb4529a143b3.tar.xz kutter-ef4d9c3abd30ae8a485020fd9ff2fb4529a143b3.zip |
stm32: Support for STM32F401 (#3853)
This module adds support for the STM32F401 microcontrollers
Signed-off-by: Marco D'Alessio <marco@wrecklab.com>
Diffstat (limited to 'src/stm32/stm32f4.c')
-rw-r--r-- | src/stm32/stm32f4.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/stm32/stm32f4.c b/src/stm32/stm32f4.c index bc8d0eb2..fee715c7 100644 --- a/src/stm32/stm32f4.c +++ b/src/stm32/stm32f4.c @@ -143,7 +143,7 @@ enable_clock_stm32f20x(void) static void enable_clock_stm32f40x(void) { -#if CONFIG_MACH_STM32F405 || CONFIG_MACH_STM32F407 +#if CONFIG_MACH_STM32F405 || CONFIG_MACH_STM32F407 || CONFIG_MACH_STM32F401 uint32_t pll_base = 2000000, pll_freq = CONFIG_CLOCK_FREQ * 2, pllcfgr; if (!CONFIG_STM32_CLOCK_REF_INTERNAL) { // Configure 168Mhz PLL from external crystal (HSE) @@ -218,7 +218,8 @@ clock_setup(void) // Configure and enable PLL if (CONFIG_MACH_STM32F207) enable_clock_stm32f20x(); - else if (CONFIG_MACH_STM32F405 || CONFIG_MACH_STM32F407) + else if (CONFIG_MACH_STM32F405 || CONFIG_MACH_STM32F407 + || CONFIG_MACH_STM32F401) enable_clock_stm32f40x(); else enable_clock_stm32f446(); |