Skip to content

Commit

Permalink
fixup! cpu/esp32: add pm_layered support
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Mar 20, 2020
1 parent 036de0a commit 3b7c530
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cpu/esp32/periph/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ static inline void pm_set_lowest_normal(void)

void IRAM_ATTR pm_off(void)
{
/* disable remaining power domains */
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_SLOW_MEM, ESP_PD_OPTION_OFF);
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_FAST_MEM, ESP_PD_OPTION_OFF);

/* enter hibernate mode without any enabled wake-up sources */
esp_sleep_disable_wakeup_source(ESP_SLEEP_WAKEUP_ALL);
esp_deep_sleep_start();
}

Expand Down

0 comments on commit 3b7c530

Please sign in to comment.