Merge branch 'feat/sys_event_in_freertos' into 'master'

feat(system_init): Introduce pre-scheduler and pre-app main handler registrations

Closes IDF-16133

See merge request espressif/esp-idf!52296
This commit is contained in:
Marius Vikhammer
2026-09-09 09:28:52 +08:00
21 changed files with 348 additions and 129 deletions
@@ -3,6 +3,21 @@ System
:link_to_translation:`zh_CN:[中文]`
FreeRTOS
---------
The legacy ``port_start_app_hook`` is deprecated and will be removed in ESP-IDF v7.0. To preserve the previous execution order, replace it with an ``ESP_PRE_SCHEDULER_HANDLER_REGISTER`` handler at priority ``999``.
.. code-block:: c
#include "esp_private/esp_sys_event_app_init.h"
ESP_PRE_SCHEDULER_HANDLER_REGISTER(port_start_app_hook, 999)
{
// Port-specific startup behavior
return ESP_OK;
}
OTA Updates
-----------