pub unsafe extern "C" fn esp_timer_init() -> esp_err_t
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 Kconfig option CONFIG_ESP_TIMER_ISR_AFFINITY
is set to NO_AFFINITY
,
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