linker.lf 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. [mapping:esp_pm]
  2. archive: libesp_pm.a
  3. entries:
  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. if PM_SLP_IRAM_OPT = y && IDF_TARGET_ESP32 = n:
  8. pm_impl:periph_inform_out_light_sleep_overhead (noflash)
  9. [mapping:esp_hw_support_pm]
  10. archive: libesp_hw_support.a
  11. entries:
  12. if PM_SLP_IRAM_OPT = y:
  13. sleep_modes:esp_light_sleep_start (noflash)
  14. sleep_modes:esp_sleep_enable_timer_wakeup (noflash)
  15. sleep_modes:timer_wakeup_prepare (noflash)
  16. sleep_modes:get_power_down_flags (noflash)
  17. rtc_init:rtc_vddsdio_get_config (noflash)
  18. esp_clk:esp_clk_slowclk_cal_set (noflash)
  19. esp_clk:esp_clk_slowclk_cal_get (noflash)
  20. esp_clk:esp_rtc_get_time_us (noflash)
  21. if GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL = y:
  22. sleep_gpio:gpio_sleep_mode_config_apply (noflash)
  23. if IDF_TARGET_ESP32 = n && IDF_TARGET_ESP32S2 = n:
  24. sleep_retention:sleep_enable_memory_retention (noflash)
  25. sleep_retention:cpu_domain_pd_allowed (noflash)
  26. [mapping:esp_system_pm]
  27. archive: libesp_system.a
  28. entries:
  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:reset_hw_timer (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. [mapping:esp_timer_pm]
  39. archive: libesp_timer.a
  40. entries:
  41. if PM_SLP_IRAM_OPT = y:
  42. if ESP_TIMER_IMPL_TG0_LAC = y:
  43. esp_timer_impl_lac:esp_timer_impl_lock (noflash)
  44. esp_timer_impl_lac:esp_timer_impl_unlock (noflash)
  45. esp_timer_impl_lac:esp_timer_impl_advance (noflash)
  46. elif ESP_TIMER_IMPL_SYSTIMER = y:
  47. esp_timer_impl_systimer:esp_timer_impl_lock (noflash)
  48. esp_timer_impl_systimer:esp_timer_impl_unlock (noflash)
  49. esp_timer_impl_systimer:esp_timer_impl_advance (noflash)
  50. [mapping:newlib_pm]
  51. archive: libnewlib.a
  52. entries:
  53. if PM_SLP_IRAM_OPT = y:
  54. esp_time_impl:esp_time_impl_set_boot_time (noflash)
  55. esp_time_impl:esp_time_impl_get_boot_time (noflash)
  56. esp_time_impl:esp_set_time_from_rtc (noflash)
  57. [mapping:driver_pm]
  58. archive: libdriver.a
  59. entries:
  60. if GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL = y:
  61. gpio:gpio_sleep_pupd_config_unapply (noflash)
  62. if PM_SLP_IRAM_OPT = y:
  63. gpio:gpio_sleep_pupd_config_apply (noflash)
  64. [mapping:hal_pm]
  65. archive: libhal.a
  66. entries:
  67. if GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL = y:
  68. if PM_SLP_IRAM_OPT = y:
  69. gpio_hal_workaround (noflash)
  70. else:
  71. gpio_hal_workaround:gpio_hal_sleep_pupd_config_unapply (noflash)
  72. gpio_hal_workaround:gpio_hal_sleep_mode_setup_wrapper (noflash)
  73. gpio_hal_workaround:gpio_hal_fun_pupd_restore (noflash)
  74. if PM_SLP_IRAM_OPT = y && PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP = y:
  75. rtc_cntl_hal:rtc_cntl_hal_enable_cpu_retention (noflash)
  76. if PM_SLP_IRAM_OPT = y && PM_POWER_DOWN_TAGMEM_IN_LIGHT_SLEEP = y:
  77. rtc_cntl_hal:rtc_cntl_hal_enable_tagmem_retention (noflash)