Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/main/
Dmcpwm_brushed_dc_control_example.c55 mcpwm_set_duty(MOTOR_CTRL_MCPWM_UNIT, MOTOR_CTRL_MCPWM_TIMER, MCPWM_OPR_B, duty_cycle); in brushed_motor_set_duty()
56 …mcpwm_set_duty_type(MOTOR_CTRL_MCPWM_UNIT, MOTOR_CTRL_MCPWM_TIMER, MCPWM_OPR_B, MCPWM_DUTY_MODE_0)… in brushed_motor_set_duty()
60 mcpwm_set_signal_low(MOTOR_CTRL_MCPWM_UNIT, MOTOR_CTRL_MCPWM_TIMER, MCPWM_OPR_B); in brushed_motor_set_duty()
/hal_espressif-3.6.0/components/driver/test/
Dtest_pwm.c132 TEST_ESP_OK(mcpwm_set_duty(unit, timer, MCPWM_OPR_B, 20.0)); in mcpwm_timer_duty_test()
134 TEST_ASSERT_FLOAT_WITHIN(0.1, 20.0, mcpwm_get_duty(unit, timer, MCPWM_OPR_B)); in mcpwm_timer_duty_test()
142 TEST_ESP_OK(mcpwm_set_duty_in_us(unit, timer, MCPWM_OPR_B, 500)); in mcpwm_timer_duty_test()
143 TEST_ASSERT_INT_WITHIN(5, 500, mcpwm_get_duty_in_us(unit, timer, MCPWM_OPR_B)); in mcpwm_timer_duty_test()
/hal_espressif-3.6.0/components/driver/include/driver/
Dmcpwm.h102 #define MCPWM_OPR_B MCPWM_GEN_B ///< @deprecated macro