Home
last modified time | relevance | path

Searched refs:K_SECONDS (Results 1 – 25 of 258) sorted by relevance

1234567891011

/Zephyr-Core-3.6.0/tests/bsim/bluetooth/mesh/src/
Dtest_friendship.c82 K_SECONDS(30)), "LPN never polled"); in friend_wait_for_polls()
89 K_SECONDS(2)), in friend_wait_for_polls()
94 K_SECONDS(2)) != -EAGAIN) { in friend_wait_for_polls()
111 K_SECONDS(5)), in test_friend_est()
134 K_SECONDS(5)), in test_friend_est_multi()
159 K_SECONDS(5)), in test_friend_msg()
164 k_sleep(K_SECONDS(1)); in test_friend_msg()
169 K_SECONDS(1)), in test_friend_msg()
177 K_SECONDS(1)), in test_friend_msg()
191 BT_MESH_SDU_UNSEG_MAX, 0, K_SECONDS(1)), in test_friend_msg()
[all …]
Dtest_transport.c145 test_vector[i].flags, K_SECONDS(10)); in test_tx_unicast()
162 test_vector[i].flags, K_SECONDS(20)); in test_tx_group()
175 test_vector[0].flags, K_SECONDS(2))); in test_tx_fixed()
177 k_sleep(K_SECONDS(2)); in test_tx_fixed()
180 test_vector[0].flags, K_SECONDS(2))); in test_tx_fixed()
182 k_sleep(K_SECONDS(2)); in test_tx_fixed()
185 test_vector[0].flags, K_SECONDS(2))); in test_tx_fixed()
203 k_sleep(K_SECONDS(1)); in test_tx_va()
207 test_vector[i].flags, K_SECONDS(20)); in test_tx_va()
230 k_sleep(K_SECONDS(1)); in test_tx_va_collision()
[all …]
Dtest_replay_cache.c143 if (k_sem_take(&sem, K_SECONDS(TEST_DATA_WAITING_TIME))) { in test_tx_immediate_replay_attack()
149 k_sleep(K_SECONDS(1)); in test_tx_immediate_replay_attack()
161 if (k_sem_take(&sem, K_SECONDS(TEST_DATA_WAITING_TIME))) { in test_tx_immediate_replay_attack()
167 k_sleep(K_SECONDS(1)); in test_tx_immediate_replay_attack()
179 k_sleep(K_SECONDS(6 * TEST_DATA_WAITING_TIME)); in test_rx_immediate_replay_attack()
206 if (k_sem_take(&sem, K_SECONDS(TEST_DATA_WAITING_TIME))) { in test_tx_power_replay_attack()
212 k_sleep(K_SECONDS(1)); in test_tx_power_replay_attack()
222 if (k_sem_take(&sem, K_SECONDS(TEST_DATA_WAITING_TIME))) { in test_tx_power_replay_attack()
228 k_sleep(K_SECONDS(1)); in test_tx_power_replay_attack()
240 k_sleep(K_SECONDS(6 * TEST_DATA_WAITING_TIME)); in test_rx_power_replay_attack()
[all …]
Dtest_proxy_sol.c203 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_beacon_rcvd()
207 ASSERT_OK_MSG(k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT)), in test_tester_beacon_rcvd()
218 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_immediate_replay_attack()
223 ASSERT_OK_MSG(k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT)), in test_tester_immediate_replay_attack()
229 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_immediate_replay_attack()
234 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_immediate_replay_attack()
244 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_power_replay_attack()
252 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_power_replay_attack()
256 ASSERT_OK_MSG(k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT)), in test_tester_power_replay_attack()
265 k_sleep(K_SECONDS(3 * SEM_TIMEOUT)); in test_iut_beacon_send()
[all …]
Dtest_blob.c409 if (k_sem_take(&lost_target_sem, K_SECONDS(60))) { in cli_caps_common_procedure()
414 if (k_sem_take(&blob_caps_sem, K_SECONDS(60))) { in cli_caps_common_procedure()
487 k_sleep(K_SECONDS(15)); in test_cli_caps_cancelled()
494 if (!k_sem_take(&blob_caps_sem, K_SECONDS(60))) { in test_cli_caps_cancelled()
512 if (k_sem_take(&blob_caps_sem, K_SECONDS(60))) { in test_cli_caps_cancelled()
547 int err = k_sem_take(&info_get_sem, K_SECONDS(15)); in test_srv_caps_no_rsp()
603 if (k_sem_take(&blob_broad_send_sem, K_SECONDS(15))) { in test_cli_broadcast_basic()
612 if (k_sem_take(&blob_broad_send_sem, K_SECONDS(15))) { in test_cli_broadcast_basic()
623 if (k_sem_take(&blob_broad_send_sem, K_SECONDS(15))) { in test_cli_broadcast_basic()
634 if (k_sem_take(&blob_broad_next_sem, K_SECONDS(15))) { in test_cli_broadcast_basic()
[all …]
Dtest_provision.c332 k_work_reschedule(&oob_timer, K_SECONDS(1)); in input()
505 ASSERT_OK(k_sem_take(&prov_sem, K_SECONDS(40))); in oob_device()
510 k_sleep(K_SECONDS(2)); in oob_device()
524 k_sleep(K_SECONDS(1)); in oob_provisioner()
547 ASSERT_OK(k_sem_take(&prov_sem, K_SECONDS(40))); in oob_provisioner()
555 k_sleep(K_SECONDS(1)); in oob_provisioner()
596 k_sleep(K_SECONDS(2)); in node_configure_and_reset()
602 k_sleep(K_SECONDS(2)); in node_configure_and_reset()
608 k_sleep(K_SECONDS(2)); in node_configure_and_reset()
615 k_sleep(K_SECONDS(2)); in node_configure_and_reset()
[all …]
Dtest_scanner.c120 k_sleep(K_SECONDS(1)); in test_tx_invalid_ad_type()
127 k_sleep(K_SECONDS(10)); in test_tx_invalid_ad_type()
148 k_sleep(K_SECONDS(1)); in test_tx_wrong_packet_length()
161 k_sleep(K_SECONDS(10)); in test_tx_wrong_packet_length()
181 err = bt_mesh_test_recv_msg(&msg, K_SECONDS(10)); in test_rx_invalid_packet()
187 err = bt_mesh_test_recv(10, cfg->addr, NULL, K_SECONDS(10)); in test_rx_invalid_packet()
Dtest_beacon.c158 k_sleep(K_SECONDS(1)); in tx_on_iv_update_test()
167 k_sleep(K_SECONDS(BEACON_INTERVAL)); in tx_on_iv_update_test()
173 k_sleep(K_SECONDS(BEACON_INTERVAL)); in tx_on_iv_update_test()
179 k_sleep(K_SECONDS(BEACON_INTERVAL)); in tx_on_iv_update_test()
204 k_sleep(K_SECONDS(1)); in test_rx_on_iv_update()
210 k_sleep(K_SECONDS(BEACON_INTERVAL)); in test_rx_on_iv_update()
216 k_sleep(K_SECONDS(BEACON_INTERVAL)); in test_rx_on_iv_update()
222 k_sleep(K_SECONDS(BEACON_INTERVAL)); in test_rx_on_iv_update()
242 k_sleep(K_SECONDS(1)); in tx_on_key_refresh_test()
250 k_sleep(K_SECONDS(BEACON_INTERVAL)); in tx_on_key_refresh_test()
[all …]
Dtest_dfu.c505 if (k_sem_take(&dfu_dist_ended, K_SECONDS(DFU_TIMEOUT))) { in dist_dfu_start_and_confirm()
587 if (k_sem_take(&dfu_ended, K_SECONDS(DFU_TIMEOUT))) { in test_dist_dfu_self_update()
802 if (k_sem_take(&dfu_ended, K_SECONDS(DFU_TIMEOUT))) { in target_test_effect()
1019 if (k_sem_take(&dfu_ended, K_SECONDS(SEMAPHORE_TIMEOUT))) { in test_cli_fail_on_persistency()
1053 if (k_sem_take(&dfu_cli_applied_sem, K_SECONDS(SEMAPHORE_TIMEOUT))) { in test_cli_fail_on_persistency()
1066 if (k_sem_take(&dfu_cli_confirmed_sem, K_SECONDS(SEMAPHORE_TIMEOUT))) { in test_cli_fail_on_persistency()
1099 if (k_sem_take(&dfu_ended, K_SECONDS(SEMAPHORE_TIMEOUT))) { in test_cli_all_targets_lost_common()
1190 if (!k_sem_take(&dfu_cli_applied_sem, K_SECONDS(SEMAPHORE_TIMEOUT))) { in test_cli_all_targets_lost_on_apply()
1221 if (k_sem_take(&dfu_started, K_SECONDS(SEMAPHORE_TIMEOUT))) { in test_cli_stop()
1237 if (k_sem_take(&dfu_verifying, K_SECONDS(SEMAPHORE_TIMEOUT))) { in test_cli_stop()
[all …]
Dtest_access.c427 ASSERT_OK(k_poll(events, 1, K_SECONDS(3))); in test_sub_ext_model()
539 err = k_sem_take(&publish_sem, K_SECONDS(20)); in pub_delayable_check()
577 err = k_sem_take(&publish_sem, K_SECONDS(20)); in recv_delayable_check()
588 err = k_sem_take(&publish_sem, K_SECONDS(20)); in recv_delayable_check()
626 err = k_sem_take(&publish_sem, K_SECONDS(20)); in pub_jitter_check()
651 err = k_sem_take(&publish_sem, K_SECONDS(20)); in recv_jitter_check()
662 err = k_sem_take(&publish_sem, K_SECONDS(20)); in recv_jitter_check()
717 k_sleep(K_SECONDS(1)); in tx_period()
815 k_sleep(K_SECONDS(1)); in tx_transmit()
893 err = k_sem_take(&publish_sem, K_SECONDS(20)); in test_tx_cancel()
[all …]
/Zephyr-Core-3.6.0/drivers/modem/
Dsimcom-sim7080.h37 #define BUF_ALLOC_TIMEOUT K_SECONDS(1)
38 #define MDM_CMD_TIMEOUT K_SECONDS(10)
39 #define MDM_REGISTRATION_TIMEOUT K_SECONDS(180)
40 #define MDM_CONNECT_TIMEOUT K_SECONDS(90)
41 #define MDM_PDP_TIMEOUT K_SECONDS(120)
42 #define MDM_DNS_TIMEOUT K_SECONDS(210)
43 #define MDM_WAIT_FOR_RSSI_DELAY K_SECONDS(2)
Dquectel-bg9x.h29 #define MDM_CMD_TIMEOUT K_SECONDS(10)
30 #define MDM_CMD_CONN_TIMEOUT K_SECONDS(120)
31 #define MDM_REGISTRATION_TIMEOUT K_SECONDS(180)
42 #define MDM_WAIT_FOR_RSSI_DELAY K_SECONDS(2)
43 #define BUF_ALLOC_TIMEOUT K_SECONDS(1)
44 #define MDM_MAX_BOOT_TIME K_SECONDS(50)
/Zephyr-Core-3.6.0/samples/boards/stm32/power_mgmt/stm32wb_ble/src/
Dmain.c80 k_sleep(K_SECONDS(2)); in bt_ready()
90 k_sleep(K_SECONDS(1)); in bt_ready()
123 k_sleep(K_SECONDS(6)); in main()
131 k_sleep(K_SECONDS(2)); in main()
141 k_sleep(K_SECONDS(6)); in main()
/Zephyr-Core-3.6.0/samples/drivers/led_xec/src/
Dmain.c64 k_sleep(K_SECONDS(1)); in led_test()
90 k_sleep(K_SECONDS(5)); in led_test()
102 k_sleep(K_SECONDS(15)); in led_test()
112 k_sleep(K_SECONDS(2)); in led_test()
122 k_sleep(K_SECONDS(2)); in led_test()
/Zephyr-Core-3.6.0/samples/bluetooth/periodic_adv/src/
Dmain.c62 k_sleep(K_SECONDS(10)); in main()
75 k_sleep(K_SECONDS(10)); in main()
86 k_sleep(K_SECONDS(10)); in main()
/Zephyr-Core-3.6.0/samples/boards/bbc_microbit/display/src/
Dmain.c76 k_sleep(K_SECONDS(11)); in main()
92 k_sleep(K_SECONDS(2)); in main()
97 k_sleep(K_SECONDS((ARRAY_SIZE(scroll) + 2))); in main()
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/audio/src/
Dias_client_test.c118 k_sleep(K_SECONDS(1)); in test_main()
121 k_sleep(K_SECONDS(1)); in test_main()
124 k_sleep(K_SECONDS(1)); in test_main()
/Zephyr-Core-3.6.0/tests/kernel/sleep/src/
Dmain.c115 k_sleep(K_SECONDS(1)); in test_thread()
129 k_sleep(K_SECONDS(1)); in test_thread()
142 k_sleep(K_SECONDS(1)); in test_thread()
155 k_sleep(K_SECONDS(1)); /* Task will execute */ in test_thread()
232 k_sleep(K_SECONDS(1)); in ZTEST()
/Zephyr-Core-3.6.0/tests/kernel/mutex/sys_mutex/src/
Dmain.c114 rv = sys_mutex_lock(&mutex_4, K_SECONDS(1)); in thread_05()
148 rv = sys_mutex_lock(&mutex_4, K_SECONDS(2)); in thread_06()
182 rv = sys_mutex_lock(&mutex_3, K_SECONDS(3)); in thread_07()
361 k_sleep(K_SECONDS(1)); in ZTEST_USER_OR_NOT()
376 k_sleep(K_SECONDS(1)); /* thread_05 should time out */ in ZTEST_USER_OR_NOT()
390 k_sleep(K_SECONDS(1)); /* thread_07 should time out */ in ZTEST_USER_OR_NOT()
406 k_sleep(K_SECONDS(1)); /* Give thread_11 time to run */ in ZTEST_USER_OR_NOT()
432 rv = sys_mutex_lock(&private_mutex, K_SECONDS(1)); in ZTEST_USER_OR_NOT()
/Zephyr-Core-3.6.0/samples/boards/reel_board/mesh_badge/src/
Dmain.c104 board_show_text("Pairing Complete", false, K_SECONDS(2)); in pairing_complete()
110 board_show_text("Pairing Failed", false, K_SECONDS(2)); in pairing_failed()
128 board_show_text("Connection failed", false, K_SECONDS(2)); in connected()
144 board_show_text("Disconnected", false, K_SECONDS(2)); in disconnected()
Dmesh.c72 board_show_text("Heartbeat Received", false, K_SECONDS(2)); in heartbeat()
82 board_show_text("Starting Mesh Failed", false, K_SECONDS(2)); in show_mesh_status()
87 board_show_text(buf, false, K_SECONDS(4)); in show_mesh_status()
164 board_show_text("Attention!", false, K_SECONDS(2)); in attention_on()
419 board_show_text(str, false, K_SECONDS(3)); in vnd_hello()
444 board_show_text(str, false, K_SECONDS(3)); in vnd_baduser()
540 K_SECONDS(2)); in send_hello()
542 board_show_text("Sending Failed!", false, K_SECONDS(2)); in send_hello()
566 board_show_text("Bad user!", false, K_SECONDS(2)); in send_baduser()
568 board_show_text("Sending Failed!", false, K_SECONDS(2)); in send_baduser()
/Zephyr-Core-3.6.0/tests/lib/time/src/
Dmain.c35 k_sleep(K_SECONDS(1)); in ZTEST()
56 k_sleep(K_SECONDS(1)); in ZTEST()
/Zephyr-Core-3.6.0/tests/bluetooth/mesh/delayable_msg/src/
Dmain.c150 zassert_ok(k_sem_take(&delayed_msg_sent, K_SECONDS(1)), in ZTEST()
287 zassert_ok(k_sem_take(&delayed_msg_sent, K_SECONDS(1)), in ZTEST()
290 zassert_ok(k_sem_take(&delayed_msg_sent, K_SECONDS(1)), in ZTEST()
295 zassert_ok(k_sem_take(&delayed_msg_sent, K_SECONDS(1)), in ZTEST()
298 zassert_ok(k_sem_take(&delayed_msg_sent, K_SECONDS(1)), in ZTEST()
304 zassert_ok(k_sem_take(&delayed_msg_sent, K_SECONDS(1)), in ZTEST()
307 zexpect_not_ok(k_sem_take(&delayed_msg_sent, K_SECONDS(1)), in ZTEST()
335 zexpect_not_ok(k_sem_take(&delayed_msg_sent, K_SECONDS(1)), in ZTEST()
/Zephyr-Core-3.6.0/subsys/bluetooth/mesh/
Dprov_bearer.h12 #define PROTOCOL_TIMEOUT K_SECONDS(PROTOCOL_TIMEOUT_SEC)
13 #define PROTOCOL_TIMEOUT_EXT K_SECONDS(PROTOCOL_TIMEOUT_EXT_SEC)
/Zephyr-Core-3.6.0/samples/boards/mimxrt1060_evk/system_off/src/
Dmain.c64 k_sleep(K_SECONDS(SLEEP_S)); in main()
93 k_sleep(K_SECONDS(SLEEP_S)); in main()

1234567891011