]> granicus.if.org Git - esp-idf/commit
deep sleep: bring some registers into known state
authorIvan Grokhotkov <ivan@espressif.com>
Tue, 21 Feb 2017 09:00:43 +0000 (17:00 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Tue, 21 Feb 2017 09:07:15 +0000 (17:07 +0800)
commitd3fde5188e3df788764edf7317b10034a7c724d1
tree35a886ed3e8c149a08947616c35268e83e59e4a1
parent3b583c150f672f7414b9c35b84d219237a2d4afb
deep sleep: bring some registers into known state

In case WiFi/BT stack has been enabled but wasn’t disabled, some RTC
bits may be left enabled, causing increased current consumption.
This change returns some of the bits back to their default values.
components/esp32/deep_sleep.c