From 081918ad769d1f1104ca253a4a8ace02147c345d Mon Sep 17 00:00:00 2001 From: Ella Fox Date: Wed, 23 Oct 2024 21:30:19 +0200 Subject: [PATCH] stm32/Kconfig: Add option for 32MHz crystals Certain STM32 Nucleo development boards (eg. F429Zi) come pre-installed with a 32MHz quartz crystal, which is now exposed as an option when selecting STM32 chips. Signed-off-by: Ella Fox --- src/stm32/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig index bd5c710..205b6d6 100644 --- a/src/stm32/Kconfig +++ b/src/stm32/Kconfig @@ -298,11 +298,14 @@ choice bool "20 MHz crystal" config STM32_CLOCK_REF_25M bool "25 MHz crystal" + config STM32_CLOCK_REF_32M + bool "32 MHz crystal" config STM32_CLOCK_REF_INTERNAL bool "Internal clock" endchoice config CLOCK_REF_FREQ int + default 32000000 if STM32_CLOCK_REF_32M default 25000000 if STM32_CLOCK_REF_25M default 20000000 if STM32_CLOCK_REF_20M default 16000000 if STM32_CLOCK_REF_16M