mirror of https://github.com/Desuuuu/klipper.git
stm32: Fix missing STM32F429 clock initialization
Signed-off-by: Arkadiusz Raj <arek.raj@gmail.com>
This commit is contained in:
parent
7f63efdcea
commit
a6e28f7d6a
|
@ -143,7 +143,8 @@ enable_clock_stm32f20x(void)
|
||||||
static void
|
static void
|
||||||
enable_clock_stm32f40x(void)
|
enable_clock_stm32f40x(void)
|
||||||
{
|
{
|
||||||
#if CONFIG_MACH_STM32F405 || CONFIG_MACH_STM32F407 || CONFIG_MACH_STM32F401
|
#if CONFIG_MACH_STM32F405 || CONFIG_MACH_STM32F407 \
|
||||||
|
|| CONFIG_MACH_STM32F401 || CONFIG_MACH_STM32F429
|
||||||
uint32_t pll_base = 2000000, pll_freq = CONFIG_CLOCK_FREQ * 2, pllcfgr;
|
uint32_t pll_base = 2000000, pll_freq = CONFIG_CLOCK_FREQ * 2, pllcfgr;
|
||||||
if (!CONFIG_STM32_CLOCK_REF_INTERNAL) {
|
if (!CONFIG_STM32_CLOCK_REF_INTERNAL) {
|
||||||
// Configure 168Mhz PLL from external crystal (HSE)
|
// Configure 168Mhz PLL from external crystal (HSE)
|
||||||
|
@ -219,7 +220,7 @@ clock_setup(void)
|
||||||
if (CONFIG_MACH_STM32F207)
|
if (CONFIG_MACH_STM32F207)
|
||||||
enable_clock_stm32f20x();
|
enable_clock_stm32f20x();
|
||||||
else if (CONFIG_MACH_STM32F405 || CONFIG_MACH_STM32F407
|
else if (CONFIG_MACH_STM32F405 || CONFIG_MACH_STM32F407
|
||||||
|| CONFIG_MACH_STM32F401)
|
|| CONFIG_MACH_STM32F401 || CONFIG_MACH_STM32F429)
|
||||||
enable_clock_stm32f40x();
|
enable_clock_stm32f40x();
|
||||||
else
|
else
|
||||||
enable_clock_stm32f446();
|
enable_clock_stm32f446();
|
||||||
|
|
Loading…
Reference in New Issue