From: Ivan Grokhotkov Date: Thu, 2 Nov 2017 05:57:26 +0000 (+0800) Subject: soc/rtc: fix increased current consumption in light sleep X-Git-Tag: v3.1-dev~106^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9bfb45aa1d6c90ee1260bb1019d46e5da98ee742;p=esp-idf soc/rtc: fix increased current consumption in light sleep This fixes a configuration issue of RTC, which caused light sleep current to be 1.35mA instead of 0.85mA. --- diff --git a/components/soc/esp32/rtc_sleep.c b/components/soc/esp32/rtc_sleep.c index 4294fa59be..0b20692fa0 100644 --- a/components/soc/esp32/rtc_sleep.c +++ b/components/soc/esp32/rtc_sleep.c @@ -195,7 +195,7 @@ void rtc_sleep_init(rtc_sleep_config_t cfg) RTC_CNTL_RFRX_PBUS_PU | RTC_CNTL_TXRF_I2C_PU); } else { CLEAR_PERI_REG_MASK(RTC_CNTL_DIG_PWC_REG, RTC_CNTL_DG_WRAP_PD_EN); - SET_PERI_REG_MASK(RTC_CNTL_OPTIONS0_REG, RTC_CNTL_BIAS_FORCE_NOSLEEP); + REG_SET_FIELD(RTC_CNTL_BIAS_CONF_REG, RTC_CNTL_DBG_ATTEN, 0); } if (cfg.vddsdio_pd_en) {