From 0465528431fc63359d12c9514cfb17b6040e20fc Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Tue, 21 Feb 2017 12:11:51 +0800 Subject: [PATCH] =?UTF-8?q?ulp:=20don=E2=80=99t=20override=20SENS=5FSLEEP?= =?UTF-8?q?=5FCYCLES=5FS0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SENS_SLEEP_CYCLES_S0 may be set by the application to control ULP program timer. --- components/ulp/ulp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/components/ulp/ulp.c b/components/ulp/ulp.c index c7ac15b49c..a6e462d1bf 100644 --- a/components/ulp/ulp.c +++ b/components/ulp/ulp.c @@ -275,7 +275,6 @@ esp_err_t ulp_run(uint32_t entry_point) SET_PERI_REG_MASK(RTC_CNTL_OPTIONS0_REG, RTC_CNTL_BIAS_I2C_FOLW_8M); SET_PERI_REG_MASK(RTC_CNTL_OPTIONS0_REG, RTC_CNTL_BIAS_CORE_FOLW_8M); SET_PERI_REG_MASK(RTC_CNTL_OPTIONS0_REG, RTC_CNTL_BIAS_SLEEP_FOLW_8M); - SET_PERI_REG_BITS(SENS_ULP_CP_SLEEP_CYC0_REG, SENS_SLEEP_CYCLES_S0, 1000, SENS_SLEEP_CYCLES_S0_S); // enable ULP timer SET_PERI_REG_MASK(RTC_CNTL_STATE0_REG, RTC_CNTL_ULP_CP_SLP_TIMER_EN); return ESP_OK;