Function esp_idf_svc::hal::sys::esp_timer_init
source ยท pub unsafe extern "C" fn esp_timer_init() -> i32
Expand description
@brief Initialize esp_timer library
@note This function is called from startup code. Applications do not need to call this function before using other esp_timer APIs. Before calling this function, esp_timer_early_init must be called by the startup code.
This function will be called from startup code on every core if CONFIG_ESP_TIMER_ISR_AFFINITY_NO_AFFINITY is enabled, It allocates the timer ISR on MULTIPLE cores and creates the timer task which can be run on any core.
@return - ESP_OK on success - ESP_ERR_NO_MEM if allocation has failed - ESP_ERR_INVALID_STATE if already initialized - other errors from interrupt allocator