mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
freertos: Update SMP idle hooks
This commit updates the usage of idle hooks in SMP FreeRTOS as follows: - IDF style idle hooks are now called from vApplicationMinimalIdleHook() - If the user provdies their own vApplicationMinimalIdleHook(), it can be wrapped using -Wl,--wrap if CONFIG_FREERTOS_USE_MINIMAL_IDLE_HOOK is enabled. - SMP port no longer uses vApplicationIdleHook() as it's only called from the prvIdleTask() and not every prvMinimalIdleTask()
This commit is contained in:
@@ -206,6 +206,12 @@ else()
|
||||
list(APPEND link_options "-Wl,--gc-sections")
|
||||
endif()
|
||||
|
||||
# SMP FreeRTOS user provided minimal idle hook. This allows the user to provide
|
||||
# their own copy of vApplicationMinimalIdleHook()
|
||||
if(CONFIG_FREERTOS_USE_MINIMAL_IDLE_HOOK)
|
||||
list(APPEND link_options "-Wl,--wrap=vApplicationMinimalIdleHook")
|
||||
endif()
|
||||
|
||||
# Placing jump tables in flash would cause issues with code that required
|
||||
# to be placed in IRAM
|
||||
list(APPEND compile_options "-fno-jump-tables")
|
||||
|
||||
Reference in New Issue
Block a user