kopia lustrzana https://github.com/espressif/esp-idf
37 wiersze
772 B
C
37 wiersze
772 B
C
/*
|
|
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#pragma once
|
|
#include <stdbool.h>
|
|
#include "sdkconfig.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
/**
|
|
* @brief Enables the use of ADC and temperature sensor in monitor (ULP) mode
|
|
*
|
|
* @note This state is kept in RTC memory and will keep its value after a deep sleep wakeup
|
|
*
|
|
*/
|
|
void esp_sleep_enable_adc_tsens_monitor(bool enable);
|
|
|
|
// TODO: IDF-6051, IDF-6052
|
|
#if !CONFIG_IDF_TARGET_ESP32H4 && !CONFIG_IDF_TARGET_ESP32C6
|
|
/**
|
|
* @brief Isolate all digital IOs except those that are held during deep sleep
|
|
*
|
|
* Reduce digital IOs current leakage during deep sleep.
|
|
*/
|
|
void esp_sleep_isolate_digital_gpio(void);
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|