mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(clk): warn the users to avoid using RC32K clock
This commit is contained in:
parent
33fbade6b8
commit
a4bc0becb0
@ -16,6 +16,10 @@ if(${target} STREQUAL "esp32c6")
|
|||||||
list(APPEND priv_requires hal)
|
list(APPEND priv_requires hal)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CONFIG_RTC_CLK_SRC_INT_RC32K)
|
||||||
|
message(WARNING "Internal RC32K clock is unstable at extreme temperatures and is not recommended for use.")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(srcs "cpu.c" "port/${IDF_TARGET}/esp_cpu_intr.c" "esp_memory_utils.c" "port/${IDF_TARGET}/cpu_region_protect.c")
|
set(srcs "cpu.c" "port/${IDF_TARGET}/esp_cpu_intr.c" "esp_memory_utils.c" "port/${IDF_TARGET}/cpu_region_protect.c")
|
||||||
if(NOT BOOTLOADER_BUILD)
|
if(NOT BOOTLOADER_BUILD)
|
||||||
list(APPEND srcs "esp_clk.c"
|
list(APPEND srcs "esp_clk.c"
|
||||||
|
@ -14,6 +14,9 @@ choice RTC_CLK_SRC
|
|||||||
select ESP_SYSTEM_RTC_EXT_OSC
|
select ESP_SYSTEM_RTC_EXT_OSC
|
||||||
config RTC_CLK_SRC_INT_RC32K
|
config RTC_CLK_SRC_INT_RC32K
|
||||||
bool "Internal 32kHz RC oscillator"
|
bool "Internal 32kHz RC oscillator"
|
||||||
|
help
|
||||||
|
Internal RC32K clock is unstable at extreme temperatures and is not recommended for use.
|
||||||
|
This option will be removed in IDF v6.0.
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config RTC_CLK_CAL_CYCLES
|
config RTC_CLK_CAL_CYCLES
|
||||||
|
@ -14,6 +14,9 @@ choice RTC_CLK_SRC
|
|||||||
select ESP_SYSTEM_RTC_EXT_OSC
|
select ESP_SYSTEM_RTC_EXT_OSC
|
||||||
config RTC_CLK_SRC_INT_RC32K
|
config RTC_CLK_SRC_INT_RC32K
|
||||||
bool "Internal 32kHz RC oscillator"
|
bool "Internal 32kHz RC oscillator"
|
||||||
|
help
|
||||||
|
Internal RC32K clock is unstable at extreme temperatures and is not recommended for use.
|
||||||
|
This option will be removed in IDF v6.0.
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config RTC_CLK_CAL_CYCLES
|
config RTC_CLK_CAL_CYCLES
|
||||||
|
Loading…
Reference in New Issue
Block a user