esp_etm_new_channel() function
Allocate an ETM channel
Arguments
config
ETM channel configuration
ret_chan
Returned ETM channel handle
Return value
- ESP_OK: Allocate ETM channel successfully - ESP_ERR_INVALID_ARG: Allocate ETM channel failed because of invalid argument - ESP_ERR_NO_MEM: Allocate ETM channel failed because of out of memory - ESP_ERR_NOT_FOUND: Allocate ETM channel failed because all channels are used up and no more free one - ESP_FAIL: Allocate ETM channel failed because of other reasons
Notes
The channel can later be freed by `esp_etm_del_channel`