From 41849684692ab66a0020381057f3f52f2ad5971a Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Wed, 23 Aug 2017 16:41:51 +0800 Subject: [PATCH] esp32: by default, set 40MHz crystal frequency --- components/esp32/cpu_freq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp32/cpu_freq.c b/components/esp32/cpu_freq.c index f5ccd13df7..3fa5fb531c 100644 --- a/components/esp32/cpu_freq.c +++ b/components/esp32/cpu_freq.c @@ -36,7 +36,7 @@ void esp_set_cpu_freq(void) // wait uart tx finish, otherwise some uart output will be lost uart_tx_wait_idle(CONFIG_CONSOLE_UART_NUM); - rtc_init_lite(XTAL_AUTO); + rtc_init_lite(XTAL_40M); // work around a bug that RTC fast memory may be isolated // from the system after rtc_init_lite SET_PERI_REG_MASK(RTC_CNTL_PWC_REG, RTC_CNTL_FASTMEM_FORCE_NOISO_M);