2022-01-12 11:03:38 +08:00
|
|
|
/*
|
2024-06-07 17:25:35 +08:00
|
|
|
* SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD
|
2022-01-12 11:03:38 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-06-07 17:25:35 +08:00
|
|
|
#include "sdkconfig.h"
|
|
|
|
|
2022-01-12 11:03:38 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2024-06-07 17:25:35 +08:00
|
|
|
// TODO: [ESP32P4] add P4 when runner is ready
|
|
|
|
#define EXAMPLE_TOUCH_LSLEEP_WAKEUP_SUPPORT (CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3)
|
|
|
|
|
2022-01-12 11:03:38 +08:00
|
|
|
void example_wait_gpio_inactive(void);
|
|
|
|
|
|
|
|
esp_err_t example_register_gpio_wakeup(void);
|
|
|
|
|
|
|
|
esp_err_t example_register_timer_wakeup(void);
|
|
|
|
|
|
|
|
esp_err_t example_register_uart_wakeup(void);
|
|
|
|
|
2024-06-07 17:25:35 +08:00
|
|
|
#if EXAMPLE_TOUCH_LSLEEP_WAKEUP_SUPPORT
|
2021-11-26 18:09:24 +08:00
|
|
|
void example_register_touch_wakeup(void);
|
|
|
|
#endif
|
|
|
|
|
2022-01-12 11:03:38 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|