Function esp_idf_sys::gptimer_del_timer
source · pub unsafe extern "C" fn gptimer_del_timer(
timer: gptimer_handle_t,
) -> esp_err_t
Expand description
@brief Delete the GPTimer handle
@note A timer must be in the “init” state before it can be deleted.
@param[in] timer Timer handle created by gptimer_new_timer
@return
- ESP_OK: Delete GPTimer successfully
- ESP_ERR_INVALID_ARG: Delete GPTimer failed because of invalid argument
- ESP_ERR_INVALID_STATE: Delete GPTimer failed because the timer is not in init state
- ESP_FAIL: Delete GPTimer failed because of other error