mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-14 14:06:54 +00:00
esp_timer: perform initialization using ESP_SYSTEM_INIT_FN
(startup.c still calls esp_timer_early_init directly)
This commit is contained in:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user