mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-05 04:15:21 +02:00
driver: fix typo "destroy"
This commit is contained in:
@@ -68,7 +68,7 @@ static void mcpwm_operator_unregister_from_group(mcpwm_oper_t *oper)
|
||||
mcpwm_release_group_handle(group);
|
||||
}
|
||||
|
||||
static esp_err_t mcpwm_operator_destory(mcpwm_oper_t *oper)
|
||||
static esp_err_t mcpwm_operator_destroy(mcpwm_oper_t *oper)
|
||||
{
|
||||
if (oper->intr) {
|
||||
ESP_RETURN_ON_ERROR(esp_intr_free(oper->intr), TAG, "uninstall interrupt service failed");
|
||||
@@ -123,7 +123,7 @@ esp_err_t mcpwm_new_operator(const mcpwm_operator_config_t *config, mcpwm_oper_h
|
||||
|
||||
err:
|
||||
if (oper) {
|
||||
mcpwm_operator_destory(oper);
|
||||
mcpwm_operator_destroy(oper);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
@@ -149,7 +149,7 @@ esp_err_t mcpwm_del_operator(mcpwm_oper_handle_t oper)
|
||||
|
||||
ESP_LOGD(TAG, "del operator (%d,%d)", group->group_id, oper_id);
|
||||
// recycle memory resource
|
||||
ESP_RETURN_ON_ERROR(mcpwm_operator_destory(oper), TAG, "destory operator failed");
|
||||
ESP_RETURN_ON_ERROR(mcpwm_operator_destroy(oper), TAG, "destroy operator failed");
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user