mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
sleep_modes: rename rtc_sleep_enable_adc_tesn_monitor
Partially pick e8b5096f52
This commit is contained in:
@@ -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);
|
assert(sleep_flags & RTC_SLEEP_PD_XTAL);
|
||||||
bool eco2_workaround = false;
|
bool eco2_workaround = false;
|
||||||
#if CONFIG_ESP32C3_REV_MIN_FULL < 3
|
#if CONFIG_ESP32C3_REV_MIN_FULL < 3
|
||||||
|
|
||||||
if (!ESP_CHIP_REV_ABOVE(efuse_hal_chip_revision(), 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 */
|
eco2_workaround = true; /* workaround for deep sleep issue in high temp on ECO2 and below */
|
||||||
}
|
}
|
||||||
|
@@ -180,7 +180,7 @@ static bool s_light_sleep_wakeup = false;
|
|||||||
static portMUX_TYPE spinlock_rtc_deep_sleep = portMUX_INITIALIZER_UNLOCKED;
|
static portMUX_TYPE spinlock_rtc_deep_sleep = portMUX_INITIALIZER_UNLOCKED;
|
||||||
|
|
||||||
static const char *TAG = "sleep";
|
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.
|
//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;
|
static bool s_ultra_low_enabled = false;
|
||||||
|
|
||||||
@@ -1536,7 +1536,7 @@ void esp_deep_sleep_disable_rom_logging(void)
|
|||||||
esp_rom_disable_logging();
|
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;
|
s_adc_tsen_enabled = enable;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user