mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-11 13:00:19 +00:00
example: refactor deep sleep example to make codes more structured
This commit is contained in:
33
examples/system/deep_sleep/main/deep_sleep_example.h
Normal file
33
examples/system/deep_sleep/main/deep_sleep_example.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#if CONFIG_EXAMPLE_GPIO_WAKEUP
|
||||
void example_deep_sleep_register_gpio_wakeup(void);
|
||||
#endif
|
||||
|
||||
#if CONFIG_EXAMPLE_EXT0_WAKEUP
|
||||
void example_deep_sleep_register_ext0_wakeup(void);
|
||||
#endif
|
||||
|
||||
#if CONFIG_EXAMPLE_EXT1_WAKEUP
|
||||
void example_deep_sleep_register_ext1_wakeup(void);
|
||||
#endif
|
||||
|
||||
#if CONFIG_EXAMPLE_TOUCH_WAKEUP
|
||||
void example_deep_sleep_register_touch_wakeup(void);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user