]> granicus.if.org Git - esp-idf/commit
esp32: select 8M clock as RTC_FAST_CLK on startup
authorIvan Grokhotkov <ivan@espressif.com>
Thu, 27 Apr 2017 04:42:56 +0000 (12:42 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Thu, 27 Apr 2017 04:44:54 +0000 (12:44 +0800)
commit1c3b40adeb1de0b18575d5419bfc61264b6ec733
treee8904e954fefa1a067f6313971a1a854b67c1709
parent46fa2cfb4680b027a93c07c8616a4aa6e76d06ab
esp32: select 8M clock as RTC_FAST_CLK on startup

Even though RTC_CLK_CONFIG_DEFAULT correctly had RTC_FAST_FREQ_8M as the
fast clock, the bootloader modified fast_freq field to the currently
selected RTC_FAST_CLK (so that the clock choice is not affected by the
bootloader). The application startup code never switched to 8M clock,
which caused the default (XTAL/4) to be used as RTC_FAST_CLK. This had
caused a number of issues, such as touch pads not working in deep sleep.

Fixes https://github.com/espressif/esp-idf/issues/542.
Ref TW12053.
components/esp32/clk.c