Home
last modified time | relevance | path

Searched refs:pre_scale_temp (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-3.4.0/components/driver/
Dmcpwm.c207 int pre_scale_temp = SOC_MCPWM_BASE_CLK_HZ / resolution; in mcpwm_group_set_resolution() local
208 ESP_RETURN_ON_FALSE(pre_scale_temp >= 1, ESP_ERR_INVALID_ARG, TAG, "invalid resolution"); in mcpwm_group_set_resolution()
209 context[mcpwm_num].group_pre_scale = pre_scale_temp; in mcpwm_group_set_resolution()
220 int pre_scale_temp = SOC_MCPWM_BASE_CLK_HZ / context[mcpwm_num].group_pre_scale / resolution; in mcpwm_timer_set_resolution() local
221 ESP_RETURN_ON_FALSE(pre_scale_temp >= 1, ESP_ERR_INVALID_ARG, TAG, "invalid resolution"); in mcpwm_timer_set_resolution()
222 context[mcpwm_num].timer_pre_scale[timer_num] = pre_scale_temp; in mcpwm_timer_set_resolution()