Function esp_idf_sys::gpio_etm_task_add_gpio
source ยท pub unsafe extern "C" fn gpio_etm_task_add_gpio(
task: esp_etm_task_handle_t,
gpio_num: c_int,
) -> esp_err_t
Expand description
@brief Add GPIO to the ETM task.
@note You can call this function multiple times to add more GPIOs @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 can be controlled by the ETM task
@return
- ESP_OK: Add GPIO to the ETM task successfully
- ESP_ERR_INVALID_ARG: Add GPIO to the ETM task failed because of invalid argument, e.g. GPIO is not output capable, ETM task is not of GPIO type
- ESP_ERR_INVALID_STATE: Add GPIO to the ETM task failed because the GPIO is used by other ETM task already
- ESP_FAIL: Add GPIO to the ETM task failed because of other reasons