mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
feat(clk): support ESP32C5 XTAL 40M/48M selection
This commit is contained in:
19
components/esp_hw_support/port/esp32c2/Kconfig.xtal
Normal file
19
components/esp_hw_support/port/esp32c2/Kconfig.xtal
Normal file
@@ -0,0 +1,19 @@
|
||||
choice XTAL_FREQ
|
||||
prompt "Main XTAL frequency"
|
||||
default XTAL_FREQ_40
|
||||
help
|
||||
This option selects the operating frequency of the XTAL (crystal) clock used to drive the ESP target.
|
||||
The selected value MUST reflect the frequency of the given hardware.
|
||||
|
||||
config XTAL_FREQ_26
|
||||
bool "26 MHz"
|
||||
config XTAL_FREQ_40
|
||||
bool "40 MHz"
|
||||
endchoice
|
||||
|
||||
# soc_xtal_freq_t enum in soc/clk_tree_defs.h lists the XTAL frequencies can be supported
|
||||
# SOC_XTAL_SUPPORT_XXX in soc_caps.h lists the XTAL frequencies already supported
|
||||
config XTAL_FREQ
|
||||
int
|
||||
default 26 if XTAL_FREQ_26
|
||||
default 40 if XTAL_FREQ_40
|
Reference in New Issue
Block a user