feat(sleep): add function set CPU sleep mode

This commit is contained in:
dongheng
2019-09-26 10:37:49 +08:00
parent 63ba83f119
commit f2cb7b00ba
5 changed files with 20 additions and 4 deletions

View File

@ -26,6 +26,11 @@ typedef enum {
WIFI_MODEM_SLEEP_T
} wifi_sleep_type_t;
typedef enum esp_sleep_mode {
ESP_CPU_WAIT = 0,
ESP_CPU_LIGHTSLEEP,
} esp_sleep_mode_t;
typedef void (*fpm_wakeup_cb)(void);
/**