esp_timer: allow querying the timer before esp_timer_init is called

This commit is contained in:
Ivan Grokhotkov
2021-07-20 03:31:25 +02:00
committed by Cao Sen Miao
parent 98d34e5f6d
commit b5fe84a250
6 changed files with 68 additions and 20 deletions

View File

@@ -364,6 +364,11 @@ static IRAM_ATTR inline bool is_initialized(void)
return s_timer_task != NULL;
}
esp_err_t esp_timer_early_init(void)
{
return esp_timer_impl_early_init();
}
esp_err_t esp_timer_init(void)
{
esp_err_t err;