mcpwm_timer_enable() function
Enable MCPWM timer
Arguments
timer
MCPWM timer handle, allocated by `mcpwm_new_timer()`
Return value
- ESP_OK: Enable MCPWM timer successfully - ESP_ERR_INVALID_ARG: Enable MCPWM timer failed because of invalid argument - ESP_ERR_INVALID_STATE: Enable MCPWM timer failed because timer is enabled already - ESP_FAIL: Enable MCPWM timer failed because of other error
mcpwm_timer_enable() calls 4 functions:
![]()
mcpwm_timer_enable()
mcpwm_timer_enable() reads 12 variables and writes 1 variable:
![]()
mcpwm_timer_enable()