linker.lf 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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_common_pm]
  10. archive: libesp_common.a
  11. entries:
  12. if PM_RTOS_IDLE_OPT = y:
  13. freertos_hooks:esp_vApplicationIdleHook (noflash)
  14. task_wdt:idle_hook_cb (noflash)
  15. task_wdt:esp_task_wdt_reset (noflash)
  16. task_wdt:find_task_in_twdt_list (noflash)
  17. task_wdt:reset_hw_timer (noflash)
  18. [mapping:esp_hw_support_pm]
  19. archive: libesp_hw_support.a
  20. entries:
  21. if PM_SLP_IRAM_OPT = y:
  22. rtc_init:rtc_vddsdio_get_config (noflash)
  23. [mapping:esp_system_pm]
  24. archive: libesp_system.a
  25. entries:
  26. if PM_SLP_IRAM_OPT = y:
  27. sleep_modes:esp_light_sleep_start (noflash)
  28. sleep_modes:esp_sleep_enable_timer_wakeup (noflash)
  29. sleep_modes:timer_wakeup_prepare (noflash)
  30. sleep_modes:get_power_down_flags (noflash)
  31. [mapping:esp_timer_pm]
  32. archive: libesp_timer.a
  33. entries:
  34. if PM_SLP_IRAM_OPT = y:
  35. if ESP_TIMER_IMPL_TG0_LAC = y:
  36. esp_timer_impl_lac:esp_timer_impl_lock (noflash)
  37. esp_timer_impl_lac:esp_timer_impl_unlock (noflash)
  38. esp_timer_impl_lac:esp_timer_impl_advance (noflash)
  39. elif ESP_TIMER_IMPL_SYSTIMER = y:
  40. esp_timer_impl_systimer:esp_timer_impl_lock (noflash)
  41. esp_timer_impl_systimer:esp_timer_impl_unlock (noflash)
  42. esp_timer_impl_systimer:esp_timer_impl_advance (noflash)
  43. [mapping:newlib_pm]
  44. archive: libnewlib.a
  45. entries:
  46. if PM_SLP_IRAM_OPT = y:
  47. esp_time_impl:esp_time_impl_set_boot_time (noflash)
  48. esp_time_impl:esp_time_impl_get_boot_time (noflash)
  49. esp_time_impl:esp_clk_slowclk_cal_get (noflash)
  50. esp_time_impl:esp_rtc_get_time_us (noflash)
  51. esp_time_impl:esp_clk_slowclk_cal_set (noflash)
  52. esp_time_impl:esp_set_time_from_rtc (noflash)
  53. [mapping:driver_pm]
  54. archive: libdriver.a
  55. entries:
  56. if GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL = y:
  57. gpio:gpio_sleep_pupd_config_unapply (noflash)
  58. if PM_SLP_IRAM_OPT = y:
  59. gpio:gpio_sleep_pupd_config_apply (noflash)
  60. [mapping:hal_pm]
  61. archive: libhal.a
  62. entries:
  63. if GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL = y:
  64. if PM_SLP_IRAM_OPT = y:
  65. gpio_hal_workaround (noflash)
  66. else:
  67. gpio_hal_workaround:gpio_hal_sleep_pupd_config_unapply (noflash)
  68. gpio_hal_workaround:gpio_hal_sleep_mode_setup_wrapper (noflash)
  69. gpio_hal_workaround:gpio_hal_fun_pupd_restore (noflash)
  70. if PM_SLP_IRAM_OPT = y && ESP_SYSTEM_PM_POWER_DOWN_CPU = y:
  71. rtc_cntl_hal:rtc_cntl_hal_enable_cpu_retention (noflash)