mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
mcpwm: decrease test time
cherry-pick 538540ce
This commit is contained in:
parent
0f10d12b81
commit
9037b8fb52
@ -313,10 +313,10 @@ static void oneshot_fault_test(mcpwm_unit_t unit, mcpwm_io_signals_t mcpwm_a, mc
|
||||
// one shot mode, it just can be triggered once
|
||||
TEST_ESP_OK(mcpwm_fault_init(unit, input_sig, fault_sig));
|
||||
TEST_ESP_OK(mcpwm_fault_set_oneshot_mode(unit, timer, fault_sig, action_a, action_b));
|
||||
vTaskDelay(1000 / portTICK_RATE_MS);
|
||||
vTaskDelay(10/ portTICK_RATE_MS);
|
||||
// trigger it
|
||||
gpio_set_level(FAULT_SIG_NUM, input_sig);
|
||||
vTaskDelay(1000 / portTICK_RATE_MS);
|
||||
vTaskDelay(10/ portTICK_RATE_MS);
|
||||
get_action_level(input_sig, action_a, action_b, 1000, 5);
|
||||
TEST_ESP_OK(mcpwm_fault_deinit(unit, fault_sig));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user