Home
last modified time | relevance | path

Searched refs:K_MSEC (Results 1 – 25 of 1048) sorted by relevance

12345678910>>...42

/Zephyr-latest/tests/subsys/zbus/runtime_observers_registration/src/
Dmain.c74 zassert_equal(-EEXIST, zbus_chan_add_obs(&chan2, &lis2, K_MSEC(200)), NULL); in ZTEST()
76 zassert_equal(0, zbus_chan_pub(&chan1, &sd, K_MSEC(500)), NULL); in ZTEST()
79 zassert_equal(0, zbus_chan_add_obs(&chan1, &lis1, K_MSEC(200)), NULL); in ZTEST()
80 zassert_equal(-EALREADY, zbus_chan_add_obs(&chan1, &lis1, K_MSEC(200)), in ZTEST()
83 zassert_equal(0, zbus_chan_pub(&chan1, &sd, K_MSEC(500)), NULL); in ZTEST()
87 zassert_equal(0, zbus_chan_rm_obs(&chan1, &lis1, K_MSEC(200)), "It must remove the obs"); in ZTEST()
89 zassert_equal(-ENODATA, zbus_chan_rm_obs(&chan1, &lis1, K_MSEC(200)), in ZTEST()
92 zassert_equal(0, zbus_chan_pub(&chan1, &sd, K_MSEC(500)), NULL); in ZTEST()
98 zassert_equal(0, zbus_chan_pub(&chan2, &sd, K_MSEC(500)), NULL); in ZTEST()
101 zassert_equal(0, zbus_chan_add_obs(&chan2, &lis3, K_MSEC(200)), NULL); in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/uart/uart_async_api/src/
Dtest_uart_async.c212 zassert_equal(k_sem_take(&rx_rdy, K_MSEC(100)), -EAGAIN, in ZTEST_USER()
218 zassert_equal(k_sem_take(&tx_done, K_MSEC(100)), 0, "TX_DONE timeout"); in ZTEST_USER()
219 zassert_equal(k_sem_take(&rx_rdy, K_MSEC(100)), 0, "RX_RDY timeout"); in ZTEST_USER()
220 zassert_equal(k_sem_take(&rx_rdy, K_MSEC(100)), -EAGAIN, in ZTEST_USER()
228 zassert_equal(k_sem_take(&tx_done, K_MSEC(100)), 0, "TX_DONE timeout"); in ZTEST_USER()
229 zassert_equal(k_sem_take(&rx_rdy, K_MSEC(100)), 0, "RX_RDY timeout"); in ZTEST_USER()
230 zassert_equal(k_sem_take(&rx_buf_released, K_MSEC(100)), in ZTEST_USER()
235 zassert_equal(k_sem_take(&rx_disabled, K_MSEC(1000)), 0, in ZTEST_USER()
237 zassert_equal(k_sem_take(&rx_rdy, K_MSEC(100)), -EAGAIN, in ZTEST_USER()
274 zassert_equal(k_sem_take(&rx_rdy, K_MSEC(100)), -EAGAIN, in ZTEST_USER()
[all …]
Dtest_uart_wide.c98 zassert_equal(k_sem_take(&rx_wide_rdy, K_MSEC(100)), -EAGAIN, in ZTEST_USER()
102 zassert_equal(k_sem_take(&tx_wide_done, K_MSEC(100)), 0, "TX_DONE timeout"); in ZTEST_USER()
103 zassert_equal(k_sem_take(&rx_wide_rdy, K_MSEC(100)), 0, "RX_RDY timeout"); in ZTEST_USER()
104 zassert_equal(k_sem_take(&rx_wide_rdy, K_MSEC(100)), -EAGAIN, in ZTEST_USER()
111 zassert_equal(k_sem_take(&tx_wide_done, K_MSEC(100)), 0, "TX_DONE timeout"); in ZTEST_USER()
112 zassert_equal(k_sem_take(&rx_wide_rdy, K_MSEC(100)), 0, "RX_RDY timeout"); in ZTEST_USER()
113 zassert_equal(k_sem_take(&rx_wide_buf_released, K_MSEC(100)), in ZTEST_USER()
116 zassert_equal(k_sem_take(&rx_wide_disabled, K_MSEC(1000)), 0, in ZTEST_USER()
118 zassert_equal(k_sem_take(&rx_wide_rdy, K_MSEC(100)), -EAGAIN, in ZTEST_USER()
/Zephyr-latest/tests/bsim/bluetooth/ll/advx/src/
Dmain.c198 k_sleep(K_MSEC(100)); in test_advx_main()
204 k_sleep(K_MSEC(100)); in test_advx_main()
250 k_sleep(K_MSEC(100)); in test_advx_main()
294 k_sleep(K_MSEC(100)); in test_advx_main()
331 k_sleep(K_MSEC(500)); in test_advx_main()
367 k_sleep(K_MSEC(100)); in test_advx_main()
373 k_sleep(K_MSEC(100)); in test_advx_main()
384 k_sleep(K_MSEC(1000)); in test_advx_main()
393 k_sleep(K_MSEC(400)); in test_advx_main()
402 k_sleep(K_MSEC(1000)); in test_advx_main()
[all …]
/Zephyr-latest/samples/drivers/led/pwm/src/
Dmain.c47 k_sleep(K_MSEC(1000)); in run_led_test()
56 k_sleep(K_MSEC(1000)); in run_led_test()
66 k_sleep(K_MSEC(CONFIG_FADE_DELAY)); in run_led_test()
68 k_sleep(K_MSEC(1000)); in run_led_test()
78 k_sleep(K_MSEC(CONFIG_FADE_DELAY)); in run_led_test()
80 k_sleep(K_MSEC(1000)); in run_led_test()
92 k_sleep(K_MSEC(5000)); in run_led_test()
108 k_sleep(K_MSEC(5000)); in run_led_test()
/Zephyr-latest/tests/bsim/bluetooth/host/misc/disconnect/common/
Dutils.h23 (void)k_sleep(K_MSEC(1)); \
27 (void)k_sleep(K_MSEC(1)); \
31 (void)k_sleep(K_MSEC(1)); \
35 (void)k_sleep(K_MSEC(1)); \
39 (void)k_sleep(K_MSEC(1)); \
/Zephyr-latest/tests/bsim/babblekit/include/babblekit/
Dflags.h36 (void)k_sleep(K_MSEC(1)); \
42 (void)k_sleep(K_MSEC(1)); \
48 (void)k_sleep(K_MSEC(1)); \
54 (void)k_sleep(K_MSEC(1)); \
/Zephyr-latest/tests/drivers/timer/nrf_grtc_timer/src/
Dmain.c29 k_timeout_t t = K_MSEC(1); in ZTEST()
43 t = Z_TIMEOUT_TICKS(Z_TICK_ABS(sys_clock_tick_get() - K_MSEC(1).ticks)); in ZTEST()
45 exp_ticks = z_nrf_grtc_timer_read() - K_MSEC(1).ticks * CYC_PER_TICK; in ZTEST()
53 t = Z_TIMEOUT_TICKS(Z_TICK_ABS(sys_clock_tick_get() + K_MSEC(10).ticks)); in ZTEST()
54 exp_ticks = z_nrf_grtc_timer_read() + K_MSEC(10).ticks * CYC_PER_TICK; in ZTEST()
78 test_ticks = z_nrf_grtc_timer_get_ticks(K_MSEC(TIMER_COUNT_TIME_MS)); in ZTEST()
89 k_sleep(K_MSEC(WAIT_FOR_TIMER_EVENT_TIME_MS)); in ZTEST()
115 test_ticks = z_nrf_grtc_timer_get_ticks(K_MSEC(TIMER_COUNT_TIME_MS)); in ZTEST()
128 k_sleep(K_MSEC(WAIT_FOR_TIMER_EVENT_TIME_MS)); in ZTEST()
/Zephyr-latest/samples/subsys/zbus/runtime_obs_registration/src/
Dmain.c35 zbus_chan_pub(&processed_data_chan, &proc_msg, K_MSEC(200)); in filter_callback()
50 zbus_chan_add_obs(&raw_data_chan, &filter_lis, K_MSEC(200)); in main()
55 zbus_chan_rm_obs(&raw_data_chan, &filter_lis, K_MSEC(200)); in main()
58 zbus_chan_add_obs(&raw_data_chan, &consumer_sub, K_MSEC(200)); in main()
63 zbus_chan_rm_obs(&raw_data_chan, &consumer_sub, K_MSEC(200)); in main()
/Zephyr-latest/tests/net/conn_mgr_conn/src/
Dmain.c206 k_sleep(K_MSEC(1)); in ZTEST()
215 k_sleep(K_MSEC(1)); in ZTEST()
237 k_sleep(K_MSEC(1)); in ZTEST()
259 k_sleep(K_MSEC(1)); in ZTEST()
281 k_sleep(K_MSEC(1)); in ZTEST()
304 k_sleep(K_MSEC(1)); in ZTEST()
327 k_sleep(K_MSEC(1)); in ZTEST()
359 k_sleep(K_MSEC(1)); in ZTEST()
368 k_sleep(K_MSEC(1)); in ZTEST()
380 k_sleep(K_MSEC(1)); in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/timer/timer_api/src/
Dmain.c190 k_timer_start(&duration_timer, K_MSEC(DURATION), K_MSEC(PERIOD)); in ZTEST_USER()
196 k_timer_start(&duration_timer, K_FOREVER, K_MSEC(PERIOD)); in ZTEST_USER()
219 k_timer_start(&status_anytime_timer, K_MSEC(DURATION), in ZTEST_USER()
220 K_MSEC(PERIOD)); in ZTEST_USER()
224 k_timer_start(&status_anytime_timer, K_MSEC(DURATION), in ZTEST_USER()
225 K_MSEC(PERIOD)); in ZTEST_USER()
330 k_timer_start(&expire_timer, K_MSEC(DURATION), K_MSEC(PERIOD)); in ZTEST_USER()
348 k_timer_start(&sync_timer, K_NO_WAIT, K_MSEC(1)); in tick_sync()
383 k_timer_start(&periodicity_timer, K_NO_WAIT, K_MSEC(PERIOD)); in ZTEST_USER()
441 k_timer_start(&status_timer, K_MSEC(DURATION), K_MSEC(PERIOD)); in ZTEST_USER()
[all …]
/Zephyr-latest/tests/subsys/zbus/integration/src/
Dmain.c50 zbus_chan_pub(&net_pkt_chan, &pkt, K_MSEC(200)); in core_thread()
76 zbus_chan_pub(&net_log_chan, &log_msg, K_MSEC(500)); in net_thread()
128 zbus_chan_pub(&sensor_data_chan, &sd, K_MSEC(250)); in peripheral_thread()
181 zassert_equal(0, zbus_chan_pub(&start_measurement_chan, &start, K_MSEC(200)), NULL); in ZTEST()
192 zassert_equal(0, zbus_chan_pub(&start_measurement_chan, &start, K_MSEC(200)), NULL); in ZTEST()
203 zassert_equal(0, zbus_chan_pub(&start_measurement_chan, &start, K_MSEC(200)), NULL); in ZTEST()
225 zassert_equal(0, zbus_chan_pub(&start_measurement_chan, &start, K_MSEC(200)), NULL); in ZTEST()
238 zassert_equal(0, zbus_chan_pub(&start_measurement_chan, &start, K_MSEC(200)), NULL); in ZTEST()
251 zassert_equal(0, zbus_chan_pub(&start_measurement_chan, &start, K_MSEC(200)), NULL); in ZTEST()
264 zassert_equal(0, zbus_chan_pub(&start_measurement_chan, &start, K_MSEC(200)), NULL); in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/modem/modem_cmux_pair/src/
Dmain.c304 events = k_event_wait(&cmux_event_dte, EVENT_CMUX_CONNECTED, false, K_MSEC(100)); in test_setup()
306 events = k_event_wait(&cmux_event_dce, EVENT_CMUX_CONNECTED, false, K_MSEC(100)); in test_setup()
311 events = k_event_wait(&cmux_event_dte, EVENT_CMUX_DLCI1_OPEN, false, K_MSEC(100)); in test_setup()
313 events = k_event_wait(&cmux_event_dce, EVENT_CMUX_DLCI1_OPEN, false, K_MSEC(100)); in test_setup()
317 events = k_event_wait(&cmux_event_dte, EVENT_CMUX_DLCI2_OPEN, false, K_MSEC(100)); in test_setup()
319 events = k_event_wait(&cmux_event_dce, EVENT_CMUX_DLCI2_OPEN, false, K_MSEC(100)); in test_setup()
349 events = k_event_wait(&cmux_event_dce, EVENT_CMUX_DLCI2_RX_DATA, false, K_MSEC(100)); in ZTEST()
379 events = k_event_wait(&cmux_event_dce, EVENT_CMUX_DLCI1_RX_DATA, false, K_MSEC(100)); in ZTEST()
410 events = k_event_wait(&cmux_event_dce, EVENT_CMUX_DLCI2_RX_DATA, false, K_MSEC(100)); in ZTEST()
445 events = k_event_wait(&cmux_event_dte, EVENT_CMUX_DLCI2_RX_DATA, false, K_MSEC(100)); in ZTEST()
[all …]
/Zephyr-latest/tests/benchmarks/footprints/src/
Dtimer.c60 k_timer_start(&timer0, K_MSEC(DURATION), K_MSEC(PERIOD)); in thread_fn()
66 k_timer_start(&timer0, K_MSEC(DURATION), K_MSEC(PERIOD)); in thread_fn()
73 k_timer_start(&timer0, K_MSEC(DURATION), K_MSEC(PERIOD)); in thread_fn()
/Zephyr-latest/tests/bsim/bluetooth/host/misc/hfc/src/
Dutils.h23 (void)k_sleep(K_MSEC(1)); \
27 (void)k_sleep(K_MSEC(1)); \
31 (void)k_sleep(K_MSEC(1)); \
35 (void)k_sleep(K_MSEC(1)); \
/Zephyr-latest/tests/bsim/bluetooth/host/att/sequential/common/
Dutils.h23 (void)k_sleep(K_MSEC(1)); \
27 (void)k_sleep(K_MSEC(1)); \
31 (void)k_sleep(K_MSEC(1)); \
35 (void)k_sleep(K_MSEC(1)); \
/Zephyr-latest/samples/boards/nordic/nrf_led_matrix/src/
Dmain.c49 k_sleep(K_MSEC(100)); in update_block_3x3()
78 k_sleep(K_MSEC(100)); in update_block_5x5()
107 k_sleep(K_MSEC(5)); in show_all_brightness_levels()
132 k_sleep(K_MSEC(100)); in update_through_framebuffer()
233 k_sleep(K_MSEC(500)); in main()
237 k_sleep(K_MSEC(500)); in main()
241 k_sleep(K_MSEC(200)); in main()
249 k_sleep(K_MSEC(500)); in main()
257 k_sleep(K_MSEC(500)); in main()
263 k_sleep(K_MSEC(500)); in main()
/Zephyr-latest/tests/net/lib/coap_client/src/
Dmain.c473 k_sleep(K_MSEC(1)); in suite_setup()
523 k_sleep(K_MSEC(MORE_THAN_EXCHANGE_LIFETIME_MS)); in ZTEST()
546 k_sleep(K_MSEC(MORE_THAN_ACK_TIMEOUT_MS)); in ZTEST()
548 k_sleep(K_MSEC(MORE_THAN_EXCHANGE_LIFETIME_MS)); in ZTEST()
559 k_sleep(K_MSEC(MORE_THAN_EXCHANGE_LIFETIME_MS)); in ZTEST()
571 k_sleep(K_MSEC(MORE_THAN_EXCHANGE_LIFETIME_MS)); in ZTEST()
583 k_sleep(K_MSEC(MORE_THAN_EXCHANGE_LIFETIME_MS)); in ZTEST()
599 k_sleep(K_MSEC(MORE_THAN_EXCHANGE_LIFETIME_MS)); in ZTEST()
616 k_sleep(K_MSEC(MORE_THAN_LONG_EXCHANGE_LIFETIME_MS)); in ZTEST()
626 k_sleep(K_MSEC(MORE_THAN_EXCHANGE_LIFETIME_MS)); in ZTEST()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/att/pipeline/common/
Dutils.h23 (void)k_sleep(K_MSEC(1)); \
27 (void)k_sleep(K_MSEC(1)); \
31 (void)k_sleep(K_MSEC(1)); \
35 (void)k_sleep(K_MSEC(1)); \
/Zephyr-latest/tests/kernel/sched/schedule_api/src/
Dtest_sched_priority.c28 k_sem_take(&sync_sema, K_MSEC(100)); in thread_entry_prio()
63 k_sleep(K_MSEC(100)); in ZTEST()
99 k_sleep(K_MSEC(100)); in ZTEST()
141 K_PRIO_PREEMPT(0), 0, K_MSEC(10)); in ZTEST()
145 K_PRIO_PREEMPT(0), 0, K_MSEC(20)); in ZTEST()
149 K_PRIO_PREEMPT(1), 0, K_MSEC(10)); in ZTEST()
153 K_PRIO_PREEMPT(1), 0, K_MSEC(20)); in ZTEST()
156 k_sleep(K_MSEC(30)); in ZTEST()
/Zephyr-latest/tests/subsys/input/double_tap/src/
Dmain.c47 k_sleep(K_MSEC(50)); in ZTEST()
49 k_sleep(K_MSEC(50)); in ZTEST()
51 k_sleep(K_MSEC(50)); in ZTEST()
63 k_sleep(K_MSEC(50)); in ZTEST()
65 k_sleep(K_MSEC(50)); in ZTEST()
67 k_sleep(K_MSEC(50)); in ZTEST()
/Zephyr-latest/tests/kernel/timer/timepoints/src/
Dmain.c32 k_sleep(K_MSEC(1100)); in ZTEST()
53 b = sys_timepoint_calc(K_MSEC(1)); in ZTEST()
57 a = sys_timepoint_calc(K_MSEC(1)); in ZTEST()
62 a = sys_timepoint_calc(K_MSEC(1)); in ZTEST()
67 a = sys_timepoint_calc(K_MSEC(100)); in ZTEST()
68 b = sys_timepoint_calc(K_MSEC(200)); in ZTEST()
/Zephyr-latest/tests/bsim/bluetooth/host/att/eatt/src/
Dmain_autoconnect.c16 k_sleep(K_MSEC(10)); in test_peripheral_main()
20 k_sleep(K_MSEC(1000)); in test_peripheral_main()
32 k_sleep(K_MSEC(10)); in test_central_main()
Dcommon.c121 k_sleep(K_MSEC(100)); in central_setup_and_connect()
130 k_sleep(K_MSEC(100)); in central_setup_and_connect()
149 k_sleep(K_MSEC(100)); in peripheral_setup_and_connect()
154 k_sleep(K_MSEC(100)); in peripheral_setup_and_connect()
161 k_sleep(K_MSEC(100)); in wait_for_disconnect()
175 k_sleep(K_MSEC(100)); in disconnect()
219 k_sleep(K_MSEC(1)); in backchannel_sync_wait()
/Zephyr-latest/samples/drivers/ipm/ipm_esp32/src/
Dmain.c44 k_sleep(K_MSEC(50)); in main()
51 ret = k_sem_take(&sync, K_MSEC(5000)); in main()
59 k_sleep(K_MSEC(1000)); in main()

12345678910>>...42