gpio_etm_task_rm_gpio() function
Remove the GPIO from the ETM task
Arguments
task
ETM task handle that created by `gpio_new_etm_task`
gpio_num
GPIO number that to be remove from the ETM task
Return value
- 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
Notes
Before deleting the ETM task, you need to remove all the GPIOs from the ETM task by this function Only GPIO ETM object can call this function