example: refactor deep sleep example to make codes more structured

This commit is contained in:
jingli
2023-03-02 20:49:14 +08:00
parent b5b062a55c
commit b6580ea4ac
9 changed files with 296 additions and 197 deletions

View 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