Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/examples/peripherals/mcpwm/mcpwm_sync_example/main/
Dmcpwm_sync_example.c27 #define TARGET_MCPWM_UNIT MCPWM_UNIT_0
112 mcpwm_set_timer_sync_output(MCPWM_UNIT_0, MCPWM_TIMER_0, MCPWM_SWSYNC_SOURCE_SYNCIN); in app_main()
114 mcpwm_sync_configure(MCPWM_UNIT_0, MCPWM_TIMER_0, &sync_conf); in app_main()
115 mcpwm_sync_configure(MCPWM_UNIT_0, MCPWM_TIMER_1, &sync_conf); in app_main()
116 mcpwm_sync_configure(MCPWM_UNIT_0, MCPWM_TIMER_2, &sync_conf); in app_main()
118 mcpwm_timer_trigger_soft_sync(MCPWM_UNIT_0, MCPWM_TIMER_0); in app_main()
137 mcpwm_sync_configure(MCPWM_UNIT_0, MCPWM_TIMER_0, &sync_conf); in app_main()
139 mcpwm_sync_configure(MCPWM_UNIT_0, MCPWM_TIMER_1, &sync_conf); in app_main()
141 mcpwm_sync_configure(MCPWM_UNIT_0, MCPWM_TIMER_2, &sync_conf); in app_main()
/hal_espressif-3.6.0/examples/peripherals/mcpwm/mcpwm_servo_control/main/
Dmcpwm_servo_control_example_main.c30 …mcpwm_gpio_init(MCPWM_UNIT_0, MCPWM0A, SERVO_PULSE_GPIO); // To drive a RC servo, one MCPWM genera… in app_main()
38 mcpwm_init(MCPWM_UNIT_0, MCPWM_TIMER_0, &pwm_config); in app_main()
43 …ESP_ERROR_CHECK(mcpwm_set_duty_in_us(MCPWM_UNIT_0, MCPWM_TIMER_0, MCPWM_OPR_A, example_convert_ser… in app_main()
/hal_espressif-3.6.0/examples/peripherals/mcpwm/mcpwm_capture_hc_sr04/main/
Dmcpwm_capture_hc_sr04.c91 ESP_ERROR_CHECK(mcpwm_gpio_init(MCPWM_UNIT_0, MCPWM_CAP_0, HC_SR04_PIN_ECHO)); in app_main()
101 ESP_ERROR_CHECK(mcpwm_capture_enable_channel(MCPWM_UNIT_0, MCPWM_SELECT_CAP0, &conf)); in app_main()
/hal_espressif-3.6.0/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/main/
Dmcpwm_brushed_dc_control_example.c29 #define MOTOR_CTRL_MCPWM_UNIT MCPWM_UNIT_0
/hal_espressif-3.6.0/components/driver/include/driver/
Dmcpwm.h74 MCPWM_UNIT_0, /*!<MCPWM unit0 selected*/ enumerator
/hal_espressif-3.6.0/docs/en/api-reference/peripherals/
Dmcpwm.rst126 mcpwm_set_timer_sync_output(MCPWM_UNIT_0, MCPWM_TIMER_0, MCPWM_SWSYNC_SOURCE_SYNCIN);
136 mcpwm_timer_trigger_soft_sync(MCPWM_UNIT_0, MCPWM_TIMER_0);