esp-idf/examples/system/light_sleep/main/light_sleep_example.h

33 lines
660 B
C
Raw Normal View History

2022-01-11 22:03:38 -05: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
#include "sdkconfig.h"
2022-01-11 22:03:38 -05:00
#ifdef __cplusplus
extern "C" {
#endif
// 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);
#if EXAMPLE_TOUCH_LSLEEP_WAKEUP_SUPPORT
void example_register_touch_wakeup(void);
#endif
2022-01-11 22:03:38 -05:00
#ifdef __cplusplus
}
#endif