mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 10:40:47 +03:00
Merge branch 'bugfix/fix_example_power_save_build_fail_issue' into 'master'
fix(esp_timer): preserve timer_process_alarm symbol for ldgen Closes WIFI-7625 See merge request espressif/esp-idf!52528
This commit is contained in:
@@ -32,7 +32,8 @@ endif()
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS include
|
||||
PRIV_REQUIRES "${priv_requires}"
|
||||
PRIV_INCLUDE_DIRS private_include)
|
||||
PRIV_INCLUDE_DIRS private_include
|
||||
LDFRAGMENTS linker.lf)
|
||||
|
||||
# Forces the linker to include esp_timer_init.c
|
||||
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u esp_timer_init_include_func")
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
[mapping:esp_timer_wifi_pm]
|
||||
archive: libesp_timer.a
|
||||
entries:
|
||||
if ESP_WIFI_SLP_IRAM_OPT = y && IDF_TARGET_ESP32 = y:
|
||||
esp_timer:timer_task (noflash)
|
||||
esp_timer:timer_process_alarm (noflash)
|
||||
@@ -484,7 +484,8 @@ static ESP_TIMER_IRAM_ATTR void timer_list_unlock(esp_timer_dispatch_t timer_typ
|
||||
#ifdef CONFIG_ESP_TIMER_SUPPORTS_ISR_DISPATCH_METHOD
|
||||
ESP_TIMER_IRAM_ATTR
|
||||
#endif
|
||||
static void timer_process_alarm(esp_timer_dispatch_t dispatch_method)
|
||||
// Keep this as a standalone symbol because ldgen maps it by name.
|
||||
static void __attribute__((noinline, noclone)) timer_process_alarm(esp_timer_dispatch_t dispatch_method)
|
||||
{
|
||||
timer_list_lock(dispatch_method);
|
||||
esp_timer_handle_t it;
|
||||
|
||||
Reference in New Issue
Block a user