How to switch the CPU mode between sleep mode and active mode?

sealandhw
Posts: 1
Joined: Wed Aug 30, 2017 4:45 am

How to switch the CPU mode between sleep mode and active mode?

Postby sealandhw » Wed Aug 30, 2017 4:56 am

I want change cpu's mode to decrease the power consume ,but found no related API.How to do it...

enitalp
Posts: 60
Joined: Thu Jan 12, 2017 10:03 pm

Re: How to switch the CPU mode between sleep mode and active mode?

Postby enitalp » Wed Aug 30, 2017 6:48 pm

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

kurtzweber
Posts: 64
Joined: Tue Jan 10, 2017 1:09 pm

Re: How to switch the CPU mode between sleep mode and active mode?

Postby kurtzweber » Fri Sep 01, 2017 7:55 am

Hi

this is a good tutorial about it --> https://pcbreflux.blogspot.it/2017/02/e ... ample.html

Who is online

Users browsing this forum: Bing [Bot] and 75 guests