aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32/Kconfig')
-rw-r--r--src/stm32/Kconfig14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig
index d093c716..00ec72cd 100644
--- a/src/stm32/Kconfig
+++ b/src/stm32/Kconfig
@@ -112,13 +112,19 @@ choice
prompt "Clock Reference" if LOW_LEVEL_OPTIONS
config STM32_CLOCK_REF_8M
bool "8Mhz crystal"
+ config STM32_CLOCK_REF_12M
+ bool "12Mhz crystal"
+ config STM32_CLOCK_REF_16M
+ bool "16Mhz crystal"
config STM32_CLOCK_REF_INTERNAL
bool "Internal clock"
endchoice
-config CLOCK_REF_8M
- bool
- default n if STM32_CLOCK_REF_INTERNAL
- default y
+config CLOCK_REF_FREQ
+ int
+ default 16000000 if STM32_CLOCK_REF_16M
+ default 12000000 if STM32_CLOCK_REF_12M
+ default 1 if STM32_CLOCK_REF_INTERNAL
+ default 8000000
config USBSERIAL
bool "Use USB for communication (instead of serial)"