mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-02 15:23:21 +00:00
RTC regulator & voltage calibration fixes
This commit is contained in:
@@ -79,6 +79,11 @@ static const char *TAG = "clk";
|
||||
void esp_clk_init(void)
|
||||
{
|
||||
rtc_config_t cfg = RTC_CONFIG_DEFAULT();
|
||||
RESET_REASON rst_reas;
|
||||
rst_reas = rtc_get_reset_reason(0);
|
||||
if (rst_reas == POWERON_RESET) {
|
||||
cfg.cali_ocode = 1;
|
||||
}
|
||||
rtc_init(cfg);
|
||||
|
||||
assert(rtc_clk_xtal_freq_get() == RTC_XTAL_FREQ_40M);
|
||||
|
||||
Reference in New Issue
Block a user