Function esp_idf_sys::gptimer_new_etm_task
source ยท pub unsafe extern "C" fn gptimer_new_etm_task(
timer: gptimer_handle_t,
config: *const gptimer_etm_task_config_t,
out_task: *mut esp_etm_task_handle_t,
) -> esp_err_t
Expand description
@brief Get the ETM task for GPTimer
@note The created ETM task object can be deleted later by calling esp_etm_del_task
@param[in] timer Timer handle created by gptimer_new_timer
@param[in] config GPTimer ETM task configuration
@param[out] out_task Returned ETM task handle
@return
- ESP_OK: Get ETM task successfully
- ESP_ERR_INVALID_ARG: Get ETM task failed because of invalid argument
- ESP_FAIL: Get ETM task failed because of other error