sleep_modes: rename rtc_sleep_enable_adc_tesn_monitor

Partially pick e8b5096f52
This commit is contained in:
Xiao Xufeng
2023-07-21 02:50:06 +08:00
parent 8e911f67b8
commit 9c75a0fff7
2 changed files with 2 additions and 3 deletions

View File

@@ -87,7 +87,6 @@ void rtc_sleep_get_default_config(uint32_t sleep_flags, rtc_sleep_config_t *out_
assert(sleep_flags & RTC_SLEEP_PD_XTAL);
bool eco2_workaround = false;
#if CONFIG_ESP32C3_REV_MIN_FULL < 3
if (!ESP_CHIP_REV_ABOVE(efuse_hal_chip_revision(), 3)) {
eco2_workaround = true; /* workaround for deep sleep issue in high temp on ECO2 and below */
}

View File

@@ -180,7 +180,7 @@ static bool s_light_sleep_wakeup = false;
static portMUX_TYPE spinlock_rtc_deep_sleep = portMUX_INITIALIZER_UNLOCKED;
static const char *TAG = "sleep";
static bool s_adc_tsen_enabled = false;
static RTC_FAST_ATTR bool s_adc_tsen_enabled = false;
//in this mode, 2uA is saved, but RTC memory can't use at high temperature, and RTCIO can't be used as INPUT.
static bool s_ultra_low_enabled = false;
@@ -1536,7 +1536,7 @@ void esp_deep_sleep_disable_rom_logging(void)
esp_rom_disable_logging();
}
void rtc_sleep_enable_adc_tesn_monitor(bool enable)
void esp_sleep_enable_adc_tsens_monitor(bool enable)
{
s_adc_tsen_enabled = enable;
}