gpio_etm_event_bind_gpio() function
Bind the GPIO with the ETM event
Arguments
event
ETM event handle that created by `gpio_new_etm_event`
gpio_num
GPIO number that can trigger the ETM event
Return value
- ESP_OK: Set the GPIO for ETM event successfully - ESP_ERR_INVALID_ARG: Set the GPIO for ETM event failed because of invalid argument, e.g. GPIO is not input capable, ETM event is not of GPIO type - ESP_FAIL: Set the GPIO for ETM event failed because of other reasons
Notes
Calling this function multiple times with different GPIO number can override the previous setting immediately. Only GPIO ETM object can call this function