mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'feat/revert_touch_s3' into 'master'
touch: Added support for using touch in sleep modes back on ESP32-S3 Closes IDF-5041 See merge request espressif/esp-idf!18421
This commit is contained in:
commit
7c7d53813c
@ -248,10 +248,6 @@ esp_err_t touch_pad_config(touch_pad_t touch_num)
|
||||
|
||||
esp_err_t touch_pad_init(void)
|
||||
{
|
||||
//TODO: IDF-4813
|
||||
extern bool esp_no_sleep;
|
||||
esp_no_sleep = true;
|
||||
|
||||
if (rtc_touch_mux == NULL) {
|
||||
rtc_touch_mux = xSemaphoreCreateMutex();
|
||||
}
|
||||
|
@ -1977,8 +1977,8 @@ static void test_deep_sleep_init(void)
|
||||
|
||||
TEST_CASE("Touch Sensor sleep pad wakeup deep sleep test", "[touch][ignore]")
|
||||
{
|
||||
//TODO: IDF-4813
|
||||
#if TEMPORARY_DISABLED_FOR_TARGETS(ESP32S2, ESP32S3)
|
||||
//TODO: IDF-5218
|
||||
#if TEMPORARY_DISABLED_FOR_TARGETS(ESP32S2)
|
||||
abort();
|
||||
#endif //TEMPORARY_DISABLED_FOR_TARGETS(..)
|
||||
test_deep_sleep_init();
|
||||
|
@ -365,9 +365,6 @@ inline static void IRAM_ATTR misc_modules_wake_prepare(void)
|
||||
|
||||
inline static uint32_t call_rtc_sleep_start(uint32_t reject_triggers, uint32_t lslp_mem_inf_fpu);
|
||||
|
||||
//TODO: IDF-4813
|
||||
bool esp_no_sleep = false;
|
||||
|
||||
inline static bool is_light_sleep(uint32_t pd_flags)
|
||||
{
|
||||
return (pd_flags & RTC_SLEEP_PD_DIG) == 0;
|
||||
@ -375,12 +372,6 @@ inline static bool is_light_sleep(uint32_t pd_flags)
|
||||
|
||||
static uint32_t IRAM_ATTR esp_sleep_start(uint32_t pd_flags)
|
||||
{
|
||||
#if CONFIG_IDF_TARGET_ESP32S3
|
||||
if (esp_no_sleep) {
|
||||
ESP_EARLY_LOGE(TAG, "Sleep cannot be used with Touch/ULP for now.");
|
||||
abort();
|
||||
}
|
||||
#endif //CONFIG_IDF_TARGET_ESP32S3
|
||||
// Stop UART output so that output is not lost due to APB frequency change.
|
||||
// For light sleep, suspend UART output — it will resume after wakeup.
|
||||
// For deep sleep, wait for the contents of UART FIFO to be sent.
|
||||
|
@ -3,7 +3,7 @@ menu "Example Configuration"
|
||||
config EXAMPLE_TOUCH_WAKEUP
|
||||
bool "Enable touch wake up"
|
||||
default y
|
||||
depends on !IDF_TARGET_ESP32C3 && !IDF_TARGET_ESP32S3
|
||||
depends on SOC_PM_SUPPORT_TOUCH_SENSOR_WAKEUP
|
||||
help
|
||||
This option enables wake up from deep sleep using touch pads
|
||||
TOUCH8 and TOUCH9, which correspond to GPIO33 and GPIO32.
|
||||
|
Loading…
x
Reference in New Issue
Block a user