Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/examples/peripherals/mcpwm/mcpwm_sync_example/main/
Dmcpwm_sync_example.c45 ESP_ERROR_CHECK(mcpwm_init(TARGET_MCPWM_UNIT, MCPWM_TIMER_0, &pwm_config)); in app_main()
69 ESP_ERROR_CHECK(mcpwm_sync_configure(TARGET_MCPWM_UNIT, MCPWM_TIMER_0, &sync_conf)); in app_main()
96 ESP_ERROR_CHECK(mcpwm_stop(TARGET_MCPWM_UNIT, MCPWM_TIMER_0)); in app_main()
98 ESP_ERROR_CHECK(mcpwm_start(TARGET_MCPWM_UNIT, MCPWM_TIMER_0)); in app_main()
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()
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()
157 ESP_ERROR_CHECK(mcpwm_stop(TARGET_MCPWM_UNIT, MCPWM_TIMER_0)); in app_main()
/hal_espressif-3.6.0/examples/peripherals/mcpwm/mcpwm_servo_control/main/
Dmcpwm_servo_control_example_main.c38 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/components/driver/test/
Dtest_pwm.c442 TEST_ESP_OK(mcpwm_set_timer_sync_output(unit, MCPWM_TIMER_0, MCPWM_SWSYNC_SOURCE_TEZ)); in mcpwm_swsync_test()
455 …uint32_t expected_phase_us = 1000000 / mcpwm_get_frequency(unit, MCPWM_TIMER_0) * test_sync_phase … in mcpwm_swsync_test()
/hal_espressif-3.6.0/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/main/
Dmcpwm_brushed_dc_control_example.c30 #define MOTOR_CTRL_MCPWM_TIMER MCPWM_TIMER_0
/hal_espressif-3.6.0/components/driver/include/driver/
Dmcpwm.h85 MCPWM_TIMER_0, /*!<Select MCPWM timer0*/ 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);
132 mcpwm_sync_configure(TARGET_MCPWM_UNIT, MCPWM_TIMER_0, &sync_conf);
136 mcpwm_timer_trigger_soft_sync(MCPWM_UNIT_0, MCPWM_TIMER_0);