refactor(startup): implement registration of core init functions

Similar to how the secondary init functions were already registered
via ESP_SYSTEM_INIT_FN, do the same for the core init functions.
This MR doesn't actually move the init functions into respective
components yet. This has to be carefully done in follow-up MRs.
This commit is contained in:
Ivan Grokhotkov
2023-11-24 18:32:37 +01:00
parent feb62db338
commit 75c92c3a66
15 changed files with 499 additions and 342 deletions

View File

@@ -574,7 +574,7 @@ esp_err_t esp_timer_init(void)
return err;
}
ESP_SYSTEM_INIT_FN(esp_timer_startup_init, CONFIG_ESP_TIMER_ISR_AFFINITY, 100)
ESP_SYSTEM_INIT_FN(esp_timer_startup_init, SECONDARY, CONFIG_ESP_TIMER_ISR_AFFINITY, 100)
{
return esp_timer_init();
}