Function esp_idf_svc::sys::gpio_etm_task_add_gpio
source ยท pub unsafe extern "C" fn gpio_etm_task_add_gpio(
task: *mut esp_etm_task_t,
gpio_num: i32,
) -> i32
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