Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/examples/cxx/experimental/experimental_cpp_component/test/
Dtest_esp_timer.cpp59 const int delays_ms[] = {20, 100, 200, 250}; variable
60 const size_t delays_count = sizeof(delays_ms)/sizeof(delays_ms[0]);
66 timer.start(chrono::microseconds(delays_ms[i] * 1000));
68 vTaskDelay(delays_ms[i] * 2 / portTICK_PERIOD_MS);
71 printf("%d %d\n", delays_ms[i], ms_diff);
73 TEST_ASSERT_INT32_WITHIN(portTICK_PERIOD_MS, delays_ms[i], ms_diff);
/hal_espressif-3.6.0/components/esp_timer/test/
Dtest_ets_timer.c33 const int delays_ms[] = {20, 100, 200, 250}; variable
34 const size_t delays_count = sizeof(delays_ms) / sizeof(delays_ms[0]);
43 ets_timer_arm(&timer1, delays_ms[i], false);
45 vTaskDelay(delays_ms[i] * 2 / portTICK_PERIOD_MS);
48 printf("%d %d\n", delays_ms[i], ms_diff);
50 TEST_ASSERT_INT32_WITHIN(portTICK_PERIOD_MS, delays_ms[i], ms_diff);
Dtest_esp_timer.c173 const int delays_ms[] = {20, 100, 200, 250}; variable
174 const size_t delays_count = sizeof(delays_ms)/sizeof(delays_ms[0]);
182 TEST_ESP_OK(esp_timer_start_once(timer1, delays_ms[i] * 1000));
184 vTaskDelay(delays_ms[i] * 2 / portTICK_PERIOD_MS);
187 printf("%d %d\n", delays_ms[i], ms_diff);
189 TEST_ASSERT_INT32_WITHIN(portTICK_PERIOD_MS, delays_ms[i], ms_diff);