mcpwm_new_timer() function
Create MCPWM timer
Arguments
config
MCPWM timer configuration
ret_timer
Returned MCPWM timer handle
Return value
- ESP_OK: Create MCPWM timer successfully - ESP_ERR_INVALID_ARG: Create MCPWM timer failed because of invalid argument - ESP_ERR_NO_MEM: Create MCPWM timer failed because out of memory - ESP_ERR_NOT_FOUND: Create MCPWM timer failed because all hardware timers are used up and no more free one - ESP_FAIL: Create MCPWM timer failed because of other error
mcpwm_new_timer() calls 14 functions:
![]()
mcpwm_new_timer()
mcpwm_new_timer() reads 27 variables and writes 5 variables:
![]()
mcpwm_new_timer()