2020-12-23 14:45:36 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[mapping:esp_pm]
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								archive: libesp_pm.a
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								entries:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    if PM_RTOS_IDLE_OPT = y:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        pm_impl:esp_pm_impl_idle_hook (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        pm_impl:esp_pm_impl_waiti (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-30 16:42:39 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    if PM_SLP_IRAM_OPT = y && IDF_TARGET_ESP32 = n:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        pm_impl:periph_inform_out_light_sleep_overhead (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-25 20:04:32 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[mapping:esp_hw_support_pm]
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								archive: libesp_hw_support.a
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								entries:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    if PM_SLP_IRAM_OPT = y:
							 | 
						
					
						
							
								
									
										
										
										
											2021-03-10 21:55:49 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        sleep_modes:esp_light_sleep_start (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        sleep_modes:esp_sleep_enable_timer_wakeup (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        sleep_modes:timer_wakeup_prepare (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        sleep_modes:get_power_down_flags (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-25 20:04:32 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        rtc_init:rtc_vddsdio_get_config (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-29 14:40:59 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        esp_clk:esp_clk_slowclk_cal_set (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        esp_clk:esp_clk_slowclk_cal_get (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        esp_clk:esp_rtc_get_time_us (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2021-08-19 21:57:17 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        if GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL = y:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            sleep_gpio:gpio_sleep_mode_config_apply (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2022-08-25 10:42:15 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        if SOC_PM_SUPPORT_CPU_PD = y || SOC_PM_SUPPORT_TAGMEM_PD = y:
							 | 
						
					
						
							
								
									
										
										
										
											2021-08-20 15:15:58 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								            sleep_retention:sleep_enable_memory_retention (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2022-08-25 10:42:15 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        if SOC_PM_SUPPORT_CPU_PD = y:
							 | 
						
					
						
							
								
									
										
										
										
											2021-08-20 15:15:58 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								            sleep_retention:cpu_domain_pd_allowed (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-25 20:04:32 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[mapping:esp_system_pm]
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								archive: libesp_system.a
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								entries:
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-26 11:41:19 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    if PM_RTOS_IDLE_OPT = y:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        freertos_hooks:esp_vApplicationIdleHook (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-25 20:04:32 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    if PM_SLP_IRAM_OPT = y:
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-26 11:20:09 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        task_wdt:idle_hook_cb (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-07 14:54:15 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        task_wdt:task_wdt_timer_feed (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2022-04-14 18:06:21 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        task_wdt:find_entry_and_check_all_reset (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        task_wdt:find_entry_from_task_handle_and_check_all_reset (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        task_wdt:esp_task_wdt_reset (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        task_wdt:esp_task_wdt_reset_user (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2022-08-12 18:27:11 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        if ESP_TASK_WDT_USE_ESP_TIMER = y:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            task_wdt_impl_esp_timer:esp_task_wdt_impl_timer_feed (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        else:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            task_wdt_impl_timergroup:esp_task_wdt_impl_timer_feed (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-25 20:04:32 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[mapping:esp_timer_pm]
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								archive: libesp_timer.a
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								entries:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    if PM_SLP_IRAM_OPT = y:
							 | 
						
					
						
							
								
									
										
										
										
											2023-07-12 00:50:09 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        esp_timer_impl_common:esp_timer_impl_lock (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        esp_timer_impl_common:esp_timer_impl_unlock (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-13 20:05:57 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        if ESP_TIMER_IMPL_TG0_LAC = y:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            esp_timer_impl_lac:esp_timer_impl_advance (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        elif ESP_TIMER_IMPL_SYSTIMER = y:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            esp_timer_impl_systimer:esp_timer_impl_advance (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-25 20:04:32 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[mapping:newlib_pm]
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								archive: libnewlib.a
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								entries:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    if PM_SLP_IRAM_OPT = y:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        esp_time_impl:esp_time_impl_set_boot_time (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        esp_time_impl:esp_time_impl_get_boot_time (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        esp_time_impl:esp_set_time_from_rtc (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2020-11-12 20:39:55 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[mapping:driver_pm]
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								archive: libdriver.a
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								entries:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    if GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL = y:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        gpio:gpio_sleep_pupd_config_unapply (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        if PM_SLP_IRAM_OPT = y:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            gpio:gpio_sleep_pupd_config_apply (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[mapping:hal_pm]
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								archive: libhal.a
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								entries:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    if GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL = y:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        if PM_SLP_IRAM_OPT = y:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            gpio_hal_workaround                                     (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        else:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            gpio_hal_workaround:gpio_hal_sleep_pupd_config_unapply  (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            gpio_hal_workaround:gpio_hal_sleep_mode_setup_wrapper   (noflash)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            gpio_hal_workaround:gpio_hal_fun_pupd_restore           (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2021-03-10 21:55:49 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    if PM_SLP_IRAM_OPT = y && PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP = y:
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-24 21:02:32 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        rtc_cntl_hal:rtc_cntl_hal_enable_cpu_retention (noflash)
							 | 
						
					
						
							
								
									
										
										
										
											2021-08-20 20:33:33 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    if PM_SLP_IRAM_OPT = y && PM_POWER_DOWN_TAGMEM_IN_LIGHT_SLEEP = y:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        rtc_cntl_hal:rtc_cntl_hal_enable_tagmem_retention (noflash)
							 |