Home
last modified time | relevance | path

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

12345678910>>...37

/Zephyr-Core-3.6.0/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-Core-3.6.0/tests/drivers/uart/uart_async_api/src/
Dtest_uart_async.c181 zassert_equal(k_sem_take(&rx_rdy, K_MSEC(100)), -EAGAIN, in ZTEST_USER()
187 zassert_equal(k_sem_take(&tx_done, K_MSEC(100)), 0, "TX_DONE timeout"); in ZTEST_USER()
188 zassert_equal(k_sem_take(&rx_rdy, K_MSEC(100)), 0, "RX_RDY timeout"); in ZTEST_USER()
189 zassert_equal(k_sem_take(&rx_rdy, K_MSEC(100)), -EAGAIN, in ZTEST_USER()
197 zassert_equal(k_sem_take(&tx_done, K_MSEC(100)), 0, "TX_DONE timeout"); in ZTEST_USER()
198 zassert_equal(k_sem_take(&rx_rdy, K_MSEC(100)), 0, "RX_RDY timeout"); in ZTEST_USER()
199 zassert_equal(k_sem_take(&rx_buf_released, K_MSEC(100)), in ZTEST_USER()
204 zassert_equal(k_sem_take(&rx_disabled, K_MSEC(1000)), 0, in ZTEST_USER()
206 zassert_equal(k_sem_take(&rx_rdy, K_MSEC(100)), -EAGAIN, in ZTEST_USER()
241 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-Core-3.6.0/tests/bsim/bluetooth/ll/advx/src/
Dmain.c196 k_sleep(K_MSEC(100)); in test_advx_main()
202 k_sleep(K_MSEC(100)); in test_advx_main()
248 k_sleep(K_MSEC(100)); in test_advx_main()
292 k_sleep(K_MSEC(100)); in test_advx_main()
318 k_sleep(K_MSEC(500)); in test_advx_main()
354 k_sleep(K_MSEC(100)); in test_advx_main()
360 k_sleep(K_MSEC(100)); in test_advx_main()
371 k_sleep(K_MSEC(1000)); in test_advx_main()
380 k_sleep(K_MSEC(400)); in test_advx_main()
389 k_sleep(K_MSEC(1000)); in test_advx_main()
[all …]
/Zephyr-Core-3.6.0/tests/net/lib/coap_client/src/
Dmain.c213 k_sleep(K_MSEC(10)); in z_impl_zsock_recvfrom_custom_fake_delayed_response()
378 k_sleep(K_MSEC(1)); in ZTEST()
385 k_sleep(K_MSEC(5)); in ZTEST()
386 k_sleep(K_MSEC(100)); in ZTEST()
409 k_sleep(K_MSEC(1)); in ZTEST()
414 k_sleep(K_MSEC(300)); in ZTEST()
417 k_sleep(K_MSEC(100)); in ZTEST()
441 k_sleep(K_MSEC(1)); in ZTEST()
448 k_sleep(K_MSEC(5)); in ZTEST()
449 k_sleep(K_MSEC(100)); in ZTEST()
[all …]
/Zephyr-Core-3.6.0/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-Core-3.6.0/samples/drivers/led_pwm/src/
Dmain.c28 #define FADE_DELAY K_MSEC(FADE_DELAY_MS)
50 k_sleep(K_MSEC(1000)); in run_led_test()
59 k_sleep(K_MSEC(1000)); in run_led_test()
71 k_sleep(K_MSEC(1000)); in run_led_test()
80 k_sleep(K_MSEC(5000)); in run_led_test()
90 k_sleep(K_MSEC(5000)); in run_led_test()
/Zephyr-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/samples/boards/nrf/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/tests/drivers/pwm/pwm_api/src/
Dtest_pwm.c143 k_sleep(K_MSEC(1000)); in ZTEST_USER()
148 k_sleep(K_MSEC(1000)); in ZTEST_USER()
153 k_sleep(K_MSEC(1000)); in ZTEST_USER()
161 k_sleep(K_MSEC(1000)); in ZTEST_USER()
166 k_sleep(K_MSEC(1000)); in ZTEST_USER()
171 k_sleep(K_MSEC(1000)); in ZTEST_USER()
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/gatt/settings/src/
Dserver.c56 k_sleep(K_MSEC(100)); in server_round_1()
73 k_sleep(K_MSEC(CONFIG_BT_SETTINGS_DELAYED_STORE_MS)); in server_round_2()
92 k_sleep(K_MSEC(100)); in server_round_3()
114 k_sleep(K_MSEC(100)); in server_round_5()
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/adv/extended/src/
Dcommon.h26 (void)k_sleep(K_MSEC(1)); \
30 (void)k_sleep(K_MSEC(1)); \
34 (void)k_sleep(K_MSEC(1)); \
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/l2cap/split/common/
Dutils.h23 (void)k_sleep(K_MSEC(1)); \
27 (void)k_sleep(K_MSEC(1)); \
31 (void)k_sleep(K_MSEC(1)); \
/Zephyr-Core-3.6.0/tests/subsys/pm/power_mgmt_multicore/src/
Dmain.c22 #define ACTIVE_TIMEOUT K_MSEC(40)
24 #define IDLE_TIMEOUT K_MSEC(60)
26 #define SUSPEND_TO_IDLE_TIMEOUT K_MSEC(100)
27 #define STANDBY_TIMEOUT K_MSEC(200)

12345678910>>...37