esp_timer: perform initialization using ESP_SYSTEM_INIT_FN

(startup.c still calls esp_timer_early_init directly)
This commit is contained in:
Ivan Grokhotkov
2022-05-18 01:14:42 +02:00
parent 42654927d5
commit bb771fb7c4
3 changed files with 8 additions and 2 deletions

View File

@@ -460,6 +460,11 @@ out:
return ESP_ERR_NO_MEM;
}
ESP_SYSTEM_INIT_FN(esp_timer_startup_init, BIT(0), 100)
{
return esp_timer_init();
}
esp_err_t esp_timer_deinit(void)
{
if (!is_initialized()) {