Pointer to a structure with timer creation arguments. Not saved by the library, can be allocated on the stack.
out_handle
Output, pointer to esp_timer_handle_t variable that holds the created timer handle.
Return value
- ESP_OK on success - ESP_ERR_INVALID_ARG if some of the create_args are not valid - ESP_ERR_INVALID_STATE if esp_timer library is not initialized yet - ESP_ERR_NO_MEM if memory allocation fails
Notes
When timer no longer needed, delete it using esp_timer_delete().
Examples
esp_timer_create() is referenced by 25 libraries and example projects: