Add SDK set_sleep_type/get_sleep_time functions (undocumented in 0.9.9, may not workas expected)
This commit is contained in:
parent
aed843fc14
commit
6bbd6736a4
1 changed files with 8 additions and 0 deletions
|
@ -28,6 +28,14 @@ struct rst_info* sdk_system_get_rst_info(void);
|
||||||
|
|
||||||
const char* sdk_system_get_sdk_version(void);
|
const char* sdk_system_get_sdk_version(void);
|
||||||
|
|
||||||
|
enum sdk_sleep_type {
|
||||||
|
WIFI_SLEEP_NONE = 0,
|
||||||
|
WIFI_SLEEP_LIGHT = 1,
|
||||||
|
WIFI_SLEEP_MODEM = 2,
|
||||||
|
};
|
||||||
|
void sdk_wifi_set_sleep_type(enum sdk_sleep_type);
|
||||||
|
enum sdk_sleep_type sdk_wifi_get_sleep_type(enum sdk_sleep_type);
|
||||||
|
|
||||||
void sdk_system_restore(void);
|
void sdk_system_restore(void);
|
||||||
void sdk_system_restart(void);
|
void sdk_system_restart(void);
|
||||||
void sdk_system_deep_sleep(uint32_t time_in_us);
|
void sdk_system_deep_sleep(uint32_t time_in_us);
|
||||||
|
|
Loading…
Reference in a new issue