Searched refs:pwm_config (Results 1 – 5 of 5) sorted by relevance
/hal_espressif-3.6.0/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/main/ |
D | mcpwm_brushed_dc_control_example.c | 167 mcpwm_config_t pwm_config; in motor_ctrl_mcpwm_init() local 168 pwm_config.frequency = motor_ctrl.cfg.pwm_freq; //frequency = 1kHz, in motor_ctrl_mcpwm_init() 169 pwm_config.cmpr_a = 0; //initial duty cycle of PWMxA = 0 in motor_ctrl_mcpwm_init() 170 pwm_config.cmpr_b = 0; //initial duty cycle of PWMxb = 0 in motor_ctrl_mcpwm_init() 171 pwm_config.counter_mode = MCPWM_UP_COUNTER; //up counting mode in motor_ctrl_mcpwm_init() 172 pwm_config.duty_mode = MCPWM_DUTY_MODE_0; in motor_ctrl_mcpwm_init() 173 …mcpwm_init(MOTOR_CTRL_MCPWM_UNIT, MOTOR_CTRL_MCPWM_TIMER, &pwm_config); //Configure PWM0A & PWM… in motor_ctrl_mcpwm_init()
|
/hal_espressif-3.6.0/examples/peripherals/mcpwm/mcpwm_sync_example/main/ |
D | mcpwm_sync_example.c | 38 mcpwm_config_t pwm_config = { in app_main() local 45 ESP_ERROR_CHECK(mcpwm_init(TARGET_MCPWM_UNIT, MCPWM_TIMER_0, &pwm_config)); in app_main() 46 ESP_ERROR_CHECK(mcpwm_init(TARGET_MCPWM_UNIT, MCPWM_TIMER_1, &pwm_config)); in app_main() 47 ESP_ERROR_CHECK(mcpwm_init(TARGET_MCPWM_UNIT, MCPWM_TIMER_2, &pwm_config)); in app_main()
|
/hal_espressif-3.6.0/examples/peripherals/mcpwm/mcpwm_servo_control/main/ |
D | mcpwm_servo_control_example_main.c | 32 mcpwm_config_t pwm_config = { in app_main() local 38 mcpwm_init(MCPWM_UNIT_0, MCPWM_TIMER_0, &pwm_config); in app_main()
|
/hal_espressif-3.6.0/examples/peripherals/mcpwm/mcpwm_bldc_hall_control/main/ |
D | mcpwm_bldc_hall_control_example_main.c | 205 mcpwm_config_t pwm_config = { in app_main() local 212 ESP_ERROR_CHECK(mcpwm_init(BLDC_MCPWM_GROUP, BLDC_MCPWM_TIMER_U, &pwm_config)); in app_main() 213 ESP_ERROR_CHECK(mcpwm_init(BLDC_MCPWM_GROUP, BLDC_MCPWM_TIMER_V, &pwm_config)); in app_main() 214 ESP_ERROR_CHECK(mcpwm_init(BLDC_MCPWM_GROUP, BLDC_MCPWM_TIMER_W, &pwm_config)); in app_main()
|
/hal_espressif-3.6.0/components/driver/test/ |
D | test_pwm.c | 102 mcpwm_config_t pwm_config = { in mcpwm_setup_testbench() local 111 TEST_ESP_OK(mcpwm_init(group, timer, &pwm_config)); in mcpwm_setup_testbench()
|