1[mapping:esp_pm]
2archive: libesp_pm.a
3entries:
4    if PM_RTOS_IDLE_OPT = y:
5        pm_impl:esp_pm_impl_idle_hook (noflash)
6        pm_impl:esp_pm_impl_waiti (noflash)
7
8[mapping:esp_hw_support_pm]
9archive: libesp_hw_support.a
10entries:
11    if PM_SLP_IRAM_OPT = y:
12        sleep_modes:esp_light_sleep_start (noflash)
13        sleep_modes:esp_sleep_enable_timer_wakeup (noflash)
14        sleep_modes:timer_wakeup_prepare (noflash)
15        sleep_modes:get_power_down_flags (noflash)
16        esp_clk:esp_clk_slowclk_cal_set (noflash)
17        esp_clk:esp_clk_slowclk_cal_get (noflash)
18        esp_clk:esp_rtc_get_time_us (noflash)
19        if GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL = y:
20            sleep_gpio:gpio_sleep_mode_config_apply (noflash)
21        if SOC_PM_CPU_RETENTION_BY_RTCCNTL = y && (SOC_PM_SUPPORT_CPU_PD = y || SOC_PM_SUPPORT_TAGMEM_PD = y):
22            sleep_cpu:sleep_enable_cpu_retention (noflash)
23        if SOC_PM_SUPPORT_CPU_PD = y:
24            sleep_cpu:cpu_domain_pd_allowed (noflash)
25
26[mapping:esp_system_pm]
27archive: libesp_system.a
28entries:
29    if PM_RTOS_IDLE_OPT = y:
30        freertos_hooks:esp_vApplicationIdleHook (noflash)
31    if PM_SLP_IRAM_OPT = y:
32        task_wdt:idle_hook_cb (noflash)
33        task_wdt:task_wdt_timer_feed (noflash)
34        task_wdt:find_entry_and_check_all_reset (noflash)
35        task_wdt:find_entry_from_task_handle_and_check_all_reset (noflash)
36        task_wdt:esp_task_wdt_reset (noflash)
37        task_wdt:esp_task_wdt_reset_user (noflash)
38        if ESP_TASK_WDT_USE_ESP_TIMER = y:
39            task_wdt_impl_esp_timer:esp_task_wdt_impl_timer_feed (noflash)
40        else:
41            task_wdt_impl_timergroup:esp_task_wdt_impl_timer_feed (noflash)
42
43[mapping:esp_timer_pm]
44archive: libesp_timer.a
45entries:
46    if PM_SLP_IRAM_OPT = y:
47        if ESP_TIMER_IMPL_TG0_LAC = y:
48            esp_timer_impl_lac:esp_timer_impl_lock (noflash)
49            esp_timer_impl_lac:esp_timer_impl_unlock (noflash)
50            esp_timer_impl_lac:esp_timer_impl_advance (noflash)
51        elif ESP_TIMER_IMPL_SYSTIMER = y:
52            esp_timer_impl_systimer:esp_timer_impl_lock (noflash)
53            esp_timer_impl_systimer:esp_timer_impl_unlock (noflash)
54            esp_timer_impl_systimer:esp_timer_impl_advance (noflash)
55
56[mapping:newlib_pm]
57archive: libnewlib.a
58entries:
59    if PM_SLP_IRAM_OPT = y:
60        esp_time_impl:esp_time_impl_set_boot_time (noflash)
61        esp_time_impl:esp_time_impl_get_boot_time (noflash)
62        esp_time_impl:esp_set_time_from_rtc (noflash)
63
64[mapping:driver_pm]
65archive: libdriver.a
66entries:
67    if GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL = y:
68        gpio:gpio_sleep_pupd_config_unapply (noflash)
69        if PM_SLP_IRAM_OPT = y:
70            gpio:gpio_sleep_pupd_config_apply (noflash)
71
72[mapping:hal_pm]
73archive: libhal.a
74entries:
75    if GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL = y:
76        if PM_SLP_IRAM_OPT = y:
77            gpio_hal_workaround                                     (noflash)
78        else:
79            gpio_hal_workaround:gpio_hal_sleep_pupd_config_unapply  (noflash)
80            gpio_hal_workaround:gpio_hal_sleep_mode_setup_wrapper   (noflash)
81            gpio_hal_workaround:gpio_hal_fun_pupd_restore           (noflash)
82    if SOC_PM_CPU_RETENTION_BY_RTCCNTL = y:
83        if PM_SLP_IRAM_OPT = y && PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP = y:
84            rtc_cntl_hal:rtc_cntl_hal_enable_cpu_retention (noflash)
85        if PM_SLP_IRAM_OPT = y && PM_POWER_DOWN_TAGMEM_IN_LIGHT_SLEEP = y:
86            rtc_cntl_hal:rtc_cntl_hal_enable_tagmem_retention (noflash)
87