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 e525964f67
commit 249abb3fe8
6 changed files with 68 additions and 25 deletions

View File

@@ -428,6 +428,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;