From 299655e3be68212bd2317cce9c1d8f11bb6ffbf7 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Thu, 3 Nov 2016 14:49:05 +0800 Subject: [PATCH] esp32: add choice for RTC clock source For now only one option is supported: internal RC oscillator --- components/esp32/Kconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/components/esp32/Kconfig b/components/esp32/Kconfig index 65cac4ee9f..1f04cf4bb7 100644 --- a/components/esp32/Kconfig +++ b/components/esp32/Kconfig @@ -349,5 +349,19 @@ config ESP32_TIME_SYSCALL_USE_NONE bool "None" endchoice +choice ESP32_RTC_CLOCK_SOURCE + prompt "RTC clock source" + default ESP32_RTC_CLOCK_SOURCE_INTERNAL_RC + help + Choose which clock is used as RTC clock source. + The only available option for now is to use internal + 150kHz RC oscillator. + +config ESP32_RTC_CLOCK_SOURCE_INTERNAL_RC + bool "Internal RC" +config ESP32_RTC_CLOCK_SOURCE_EXTERNAL_CRYSTAL + bool "External 32kHz crystal" + depends on DOCUMENTATION_FOR_RTC_CNTL +endchoice endmenu