pub unsafe extern "C" fn esp_timer_create(
create_args: *const esp_timer_create_args_t,
out_handle: *mut esp_timer_handle_t,
) -> esp_err_t
Expand description
@brief Create an esp_timer instance
@note When timer no longer needed, delete it using esp_timer_delete().
@param create_args Pointer to a structure with timer creation arguments. Not saved by the library, can be allocated on the stack. @param[out] out_handle Output, pointer to esp_timer_handle_t variable that holds the created timer handle.
@return - 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