2022-01-11 22:03:38 -05:00
|
|
|
/*
|
2024-06-07 05:25:35 -04:00
|
|
|
* SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD
|
2022-01-11 22:03:38 -05:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-06-07 05:25:35 -04:00
|
|
|
#include "sdkconfig.h"
|
|
|
|
|
2022-01-11 22:03:38 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2024-06-07 05:25:35 -04: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-11 22:03:38 -05: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 05:25:35 -04:00
|
|
|
#if EXAMPLE_TOUCH_LSLEEP_WAKEUP_SUPPORT
|
2021-11-26 05:09:24 -05:00
|
|
|
void example_register_touch_wakeup(void);
|
|
|
|
#endif
|
|
|
|
|
2022-01-11 22:03:38 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|