How to switch the CPU mode between sleep mode and active mode?
How to switch the CPU mode between sleep mode and active mode?
I want change cpu's mode to decrease the power consume ,but found no related API.How to do it...
Re: How to switch the CPU mode between sleep mode and active mode?
You mean ?
// Configure sleeping stuff
esp_deep_sleep_enable_ulp_wakeup();
esp_deep_sleep_enable_ext0_wakeup(GPIO_NUM_0,1);
or
esp_deep_sleep((uint64_t)l_SleepAmount*(uint64_t)1000000); // Convert second to microsecond
// Configure sleeping stuff
esp_deep_sleep_enable_ulp_wakeup();
esp_deep_sleep_enable_ext0_wakeup(GPIO_NUM_0,1);
or
esp_deep_sleep((uint64_t)l_SleepAmount*(uint64_t)1000000); // Convert second to microsecond
-
- Posts: 64
- Joined: Tue Jan 10, 2017 1:09 pm
Who is online
Users browsing this forum: Baidu [Spider] and 112 guests