Function esp_idf_svc::hal::sys::gpio_etm_task_rm_gpio

source ยท
pub unsafe extern "C" fn gpio_etm_task_rm_gpio(
    task: *mut esp_etm_task_t,
    gpio_num: i32,
) -> i32
Expand description

@brief Remove the GPIO from the ETM task

@note Before deleting the ETM task, you need to remove all the GPIOs from the ETM task by this function @note Only GPIO ETM object can call this function

@param[in] task ETM task handle that created by gpio_new_etm_task @param[in] gpio_num GPIO number that to be remove from the ETM task @return - ESP_OK: Remove the GPIO from the ETM task successfully - ESP_ERR_INVALID_ARG: Remove the GPIO from the ETM task failed because of invalid argument - ESP_ERR_INVALID_STATE: Remove the GPIO from the ETM task failed because the GPIO is not controlled by this ETM task - ESP_FAIL: Remove the GPIO from the ETM task failed because of other reasons