linker.lf 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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:esp_task_wdt_reset (noflash)
  34. task_wdt:find_task_in_twdt_list (noflash)
  35. task_wdt:reset_hw_timer (noflash)
  36. [mapping:esp_timer_pm]
  37. archive: libesp_timer.a
  38. entries:
  39. if PM_SLP_IRAM_OPT = y:
  40. if ESP_TIMER_IMPL_TG0_LAC = y:
  41. esp_timer_impl_lac:esp_timer_impl_lock (noflash)
  42. esp_timer_impl_lac:esp_timer_impl_unlock (noflash)
  43. esp_timer_impl_lac:esp_timer_impl_advance (noflash)
  44. elif ESP_TIMER_IMPL_SYSTIMER = y:
  45. esp_timer_impl_systimer:esp_timer_impl_lock (noflash)
  46. esp_timer_impl_systimer:esp_timer_impl_unlock (noflash)
  47. esp_timer_impl_systimer:esp_timer_impl_advance (noflash)
  48. [mapping:newlib_pm]
  49. archive: libnewlib.a
  50. entries:
  51. if PM_SLP_IRAM_OPT = y:
  52. esp_time_impl:esp_time_impl_set_boot_time (noflash)
  53. esp_time_impl:esp_time_impl_get_boot_time (noflash)
  54. esp_time_impl:esp_set_time_from_rtc (noflash)
  55. [mapping:driver_pm]
  56. archive: libdriver.a
  57. entries:
  58. if GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL = y:
  59. gpio:gpio_sleep_pupd_config_unapply (noflash)
  60. if PM_SLP_IRAM_OPT = y:
  61. gpio:gpio_sleep_pupd_config_apply (noflash)
  62. [mapping:hal_pm]
  63. archive: libhal.a
  64. entries:
  65. if GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL = y:
  66. if PM_SLP_IRAM_OPT = y:
  67. gpio_hal_workaround (noflash)
  68. else:
  69. gpio_hal_workaround:gpio_hal_sleep_pupd_config_unapply (noflash)
  70. gpio_hal_workaround:gpio_hal_sleep_mode_setup_wrapper (noflash)
  71. gpio_hal_workaround:gpio_hal_fun_pupd_restore (noflash)
  72. if PM_SLP_IRAM_OPT = y && PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP = y:
  73. rtc_cntl_hal:rtc_cntl_hal_enable_cpu_retention (noflash)
  74. if PM_SLP_IRAM_OPT = y && PM_POWER_DOWN_TAGMEM_IN_LIGHT_SLEEP = y:
  75. rtc_cntl_hal:rtc_cntl_hal_enable_tagmem_retention (noflash)