Home
last modified time | relevance | path

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

/hal_espressif-3.5.0/components/esp_timer/test/
Dtest_ets_timer.c69 test_periodic_correct_delays_args_t *p_args = (test_periodic_correct_delays_args_t *) arg; in test_periodic_correct_delays_timer_func() local
72 int32_t ms_diff = (tv_now.tv_sec - p_args->tv_start.tv_sec) * 1000 + in test_periodic_correct_delays_timer_func()
73 (tv_now.tv_usec - p_args->tv_start.tv_usec) / 1000; in test_periodic_correct_delays_timer_func()
74 printf("timer #%d %dms\n", p_args->cur_interval, ms_diff); in test_periodic_correct_delays_timer_func()
75 p_args->intervals[p_args->cur_interval++] = ms_diff; in test_periodic_correct_delays_timer_func()
79 if (p_args->cur_interval == NUM_INTERVALS) { in test_periodic_correct_delays_timer_func()
81 ets_timer_disarm(p_args->timer); in test_periodic_correct_delays_timer_func()
124 test_timers_ordered_correctly_args_t* p_args = (test_timers_ordered_correctly_args_t*) arg; in test_timers_ordered_correctly_timer_func() local
126 size_t count = p_args->common->count; in test_timers_ordered_correctly_timer_func()
127 int expected_index = p_args->common->order[count]; in test_timers_ordered_correctly_timer_func()
[all …]
Dtest_esp_timer.c212 test_periodic_correct_delays_args_t* p_args = (test_periodic_correct_delays_args_t*) arg; in test_periodic_correct_delays_timer_func() local
214 int32_t ms_diff = (t_end - p_args->t_start) / 1000; in test_periodic_correct_delays_timer_func()
215 printf("timer #%d %dms\n", p_args->cur_interval, ms_diff); in test_periodic_correct_delays_timer_func()
216 p_args->intervals[p_args->cur_interval++] = ms_diff; in test_periodic_correct_delays_timer_func()
220 if (p_args->cur_interval == NUM_INTERVALS) { in test_periodic_correct_delays_timer_func()
222 TEST_ESP_OK(esp_timer_stop(p_args->timer)); in test_periodic_correct_delays_timer_func()
223 xSemaphoreGive(p_args->done); in test_periodic_correct_delays_timer_func()
281 test_timers_ordered_correctly_args_t* p_args = (test_timers_ordered_correctly_args_t*) arg; in test_timers_ordered_correctly_timer_func() local
283 size_t count = p_args->common->count; in test_timers_ordered_correctly_timer_func()
284 int expected_index = p_args->common->order[count]; in test_timers_ordered_correctly_timer_func()
[all …]
/hal_espressif-3.5.0/components/esp_pm/test/
Dtest_pm.c322 test_args_t* p_args = (test_args_t*) arg; local
324 int32_t ms_diff = (t_end - p_args->t_start) / 1000;
325 printf("timer #%d %dms\n", p_args->cur_interval, ms_diff);
326 p_args->intervals[p_args->cur_interval++] = ms_diff;
330 if (p_args->cur_interval == NUM_INTERVALS) {
332 TEST_ESP_OK(esp_timer_stop(p_args->timer));
333 xSemaphoreGive(p_args->done);