feat(esp_system): add esp_sys_event framework

Introduce a shared esp system event framework and use it
for system init and shutdown.
This commit is contained in:
Marius Vikhammer
2026-06-03 15:02:43 +08:00
parent bd4ab32f73
commit be36c20503
27 changed files with 1244 additions and 140 deletions
@@ -8,9 +8,9 @@
* This file defines system init functions whose execution is verified
* by the test cases in test_sys_init_fn.c.
*
* The functions are placed into the esp_sys_init_fn linker section via the
* system init macro. On Linux this uses ELF section sorting; on macOS
* the same section is resolved at runtime via getsectiondata().
* The functions are placed into esp_sys_event linker sections via the system
* init macro. On Linux this uses ELF section sorting; on macOS the same
* sections are resolved at runtime via getsectiondata().
*
* Important: this file must be compiled into the same binary as the test
* runner so the linker/loader sees the section entries.