/Zephyr-Core-2.7.6/samples/subsys/portability/cmsis_rtos_v1/philosophers/src/ |
D | main.c | 93 static void print_phil_state(int id, const char *fmt, int32_t delay) in print_phil_state() argument 104 if (delay) { in print_phil_state() 105 printk(fmt, delay < 1000 ? " " : "", delay); in print_phil_state() 120 int32_t delay = (k_uptime_get_32() / 100 * (id + 1)) & 0x1f; in get_random_delay() local 123 int32_t ms = (delay + 1) * period_in_ms; in get_random_delay() 150 int32_t delay; in philosopher() local 157 delay = get_random_delay(my_id, 25); in philosopher() 158 print_phil_state(my_id, " EATING [ %s%d ms ] ", delay); in philosopher() 159 osDelay(delay); in philosopher() 165 delay = get_random_delay(my_id, 25); in philosopher() [all …]
|
/Zephyr-Core-2.7.6/samples/subsys/portability/cmsis_rtos_v2/philosophers/src/ |
D | main.c | 129 static void print_phil_state(int id, const char *fmt, int32_t delay) in print_phil_state() argument 140 if (delay) { in print_phil_state() 141 printk(fmt, delay < 1000 ? " " : "", delay); in print_phil_state() 156 int32_t delay = (k_uptime_get_32()/100 * (id + 1)) & 0x1f; in get_random_delay() local 159 int32_t ms = (delay + 1) * period_in_ms; in get_random_delay() 186 int32_t delay; in philosopher() local 193 delay = get_random_delay(my_id, 25); in philosopher() 194 print_phil_state(my_id, " EATING [ %s%d ms ] ", delay); in philosopher() 195 osDelay(delay); in philosopher() 201 delay = get_random_delay(my_id, 25); in philosopher() [all …]
|
/Zephyr-Core-2.7.6/samples/philosophers/src/ |
D | main.c | 100 static void print_phil_state(int id, const char *fmt, int32_t delay) in print_phil_state() argument 111 if (delay) { in print_phil_state() 112 printk(fmt, delay < 1000 ? " " : "", delay); in print_phil_state() 127 int32_t delay = (k_uptime_get_32()/100 * (id + 1)) & 0x1f; in get_random_delay() local 130 int32_t ms = (delay + 1) * period_in_ms; in get_random_delay() 160 int32_t delay; in philosopher() local 167 delay = get_random_delay(my_id, 25); in philosopher() 168 print_phil_state(my_id, " EATING [ %s%d ms ] ", delay); in philosopher() 169 k_msleep(delay); in philosopher() 175 delay = get_random_delay(my_id, 25); in philosopher() [all …]
|
/Zephyr-Core-2.7.6/tests/unit/net_timeout/ |
D | main.c | 199 uint32_t delay; in test_evaluate_basic() local 214 delay = net_timeout_evaluate(&nto, now); in test_evaluate_basic() 215 zassert_equal(delay, NET_TIMEOUT_MAX_VALUE, in test_evaluate_basic() 229 delay = net_timeout_evaluate(&nto, now + half_max); in test_evaluate_basic() 230 zassert_equal(delay, NET_TIMEOUT_MAX_VALUE - half_max, in test_evaluate_basic() 244 delay = net_timeout_evaluate(&nto, now + NET_TIMEOUT_MAX_VALUE - 1U); in test_evaluate_basic() 245 zassert_equal(delay, 1U, in test_evaluate_basic() 260 delay = net_timeout_evaluate(&nto, now); in test_evaluate_basic() 261 zassert_equal(delay, NET_TIMEOUT_MAX_VALUE, in test_evaluate_basic() 278 delay = net_timeout_evaluate(&nto, now); in test_evaluate_basic() [all …]
|
/Zephyr-Core-2.7.6/drivers/timer/ |
D | cortex_m_systick.c | 182 uint32_t delay; in sys_clock_set_timeout() local 210 delay = ticks * CYC_PER_TICK; in sys_clock_set_timeout() 213 delay += unannounced; in sys_clock_set_timeout() 214 delay = in sys_clock_set_timeout() 215 ((delay + CYC_PER_TICK - 1) / CYC_PER_TICK) * CYC_PER_TICK; in sys_clock_set_timeout() 216 delay -= unannounced; in sys_clock_set_timeout() 217 delay = MAX(delay, MIN_DELAY); in sys_clock_set_timeout() 218 if (delay > MAX_CYCLES) { in sys_clock_set_timeout() 221 last_load = delay; in sys_clock_set_timeout()
|
D | arcv2_timer0.c | 334 uint32_t delay; in sys_clock_set_timeout() local 344 delay = MAX(ticks * CYC_PER_TICK, MIN_DELAY); in sys_clock_set_timeout() 348 timer0_limit_register_set(delay - 1); in sys_clock_set_timeout() 365 uint32_t delay; in sys_clock_set_timeout() 395 delay = ticks * CYC_PER_TICK; in sys_clock_set_timeout() 398 delay += unannounced; in sys_clock_set_timeout() 399 delay = in sys_clock_set_timeout() 400 ((delay + CYC_PER_TICK - 1) / CYC_PER_TICK) * CYC_PER_TICK; in sys_clock_set_timeout() 402 delay -= unannounced; in sys_clock_set_timeout() 403 delay = MAX(delay, MIN_DELAY); in sys_clock_set_timeout() [all …]
|
/Zephyr-Core-2.7.6/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/ |
D | device_composition.c | 126 uint8_t tid, onoff, tt, delay; in gen_onoff_set_unack() local 147 delay = 0U; in gen_onoff_set_unack() 155 delay = net_buf_simple_pull_u8(buf); in gen_onoff_set_unack() 169 ctl->transition->delay = delay; in gen_onoff_set_unack() 195 uint8_t tid, onoff, tt, delay; in gen_onoff_set() local 217 delay = 0U; in gen_onoff_set() 225 delay = net_buf_simple_pull_u8(buf); in gen_onoff_set() 239 ctl->transition->delay = delay; in gen_onoff_set() 335 uint8_t tid, tt, delay; in gen_level_set_unack() local 353 delay = 0U; in gen_level_set_unack() [all …]
|
D | transition.c | 470 if (ctl->transition->counter == 0U && ctl->transition->delay == 0) { in onoff_handler() 478 K_MSEC(ctl->transition->delay * 5U), in onoff_handler() 484 if (ctl->transition->counter == 0U && ctl->transition->delay == 0) { in level_lightness_handler() 493 K_MSEC(ctl->transition->delay * 5U), in level_lightness_handler() 499 if (ctl->transition->counter == 0U && ctl->transition->delay == 0) { in level_temp_handler() 507 K_MSEC(ctl->transition->delay * 5U), in level_temp_handler() 513 if (ctl->transition->counter == 0U && ctl->transition->delay == 0) { in light_lightness_actual_handler() 522 K_MSEC(ctl->transition->delay * 5U), in light_lightness_actual_handler() 528 if (ctl->transition->counter == 0U && ctl->transition->delay == 0) { in light_lightness_linear_handler() 537 K_MSEC(ctl->transition->delay * 5U), in light_lightness_linear_handler() [all …]
|
/Zephyr-Core-2.7.6/boards/arm/mm_feather/ |
D | mm_feather.dts | 103 pcs-sck-delay = <2>; 104 sck-pcs-delay = <2>; 105 transfer-delay = <2>; 110 pcs-sck-delay = <2>; 111 sck-pcs-delay = <2>; 112 transfer-delay = <2>;
|
/Zephyr-Core-2.7.6/samples/drivers/spi_flash_at45/boards/ |
D | nrf9160dk_nrf9160.overlay | 24 enter-dpd-delay = <2000>; 25 exit-dpd-delay = <35000>; 40 enter-dpd-delay = <1000>; 41 exit-dpd-delay = <180000>;
|
/Zephyr-Core-2.7.6/boards/arm/mm_swiftio/ |
D | mm_swiftio.dts | 118 pcs-sck-delay = <50>; 119 sck-pcs-delay = <50>; 120 transfer-delay = <50>; 125 pcs-sck-delay = <50>; 126 sck-pcs-delay = <50>; 127 transfer-delay = <50>;
|
/Zephyr-Core-2.7.6/samples/net/zperf/src/ |
D | zperf_udp_uploader.c | 172 uint64_t delay = packet_duration; in zperf_udp_upload() local 230 delay += adjust; in zperf_udp_upload() 231 } else if ((uint64_t)-adjust < delay) { in zperf_udp_upload() 232 delay -= (uint64_t)-adjust; in zperf_udp_upload() 234 delay = 0U; /* delay should never be negative */ in zperf_udp_upload() 276 nb_packets, (unsigned int)delay, in zperf_udp_upload() 287 if (delay != 0) { in zperf_udp_upload() 288 if (k_us_to_ticks_floor64(delay) > remaining) { in zperf_udp_upload() 289 delay = k_ticks_to_us_ceil64(remaining); in zperf_udp_upload() 292 k_sleep(K_USEC(delay)); in zperf_udp_upload()
|
/Zephyr-Core-2.7.6/scripts/release/ |
D | list_issues.py | 23 delay = 0.1 variable in Spinner 31 def __init__(self, delay=None): argument 33 if delay and float(delay): 34 self.delay = delay 40 time.sleep(self.delay) 50 time.sleep(self.delay)
|
/Zephyr-Core-2.7.6/kernel/ |
D | work.c | 885 k_timeout_t delay) in schedule_for_queue_locked() argument 890 if (K_TIMEOUT_EQ(delay, K_NO_WAIT)) { in schedule_for_queue_locked() 898 z_add_timeout(&dwork->timeout, work_timeout, delay); in schedule_for_queue_locked() 949 k_timeout_t delay) in k_work_schedule_for_queue() argument 953 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_work, schedule_for_queue, queue, dwork, delay); in k_work_schedule_for_queue() 961 ret = schedule_for_queue_locked(&queue, dwork, delay); in k_work_schedule_for_queue() 966 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_work, schedule_for_queue, queue, dwork, delay, ret); in k_work_schedule_for_queue() 972 k_timeout_t delay) in k_work_schedule() argument 974 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_work, schedule, dwork, delay); in k_work_schedule() 976 int ret = k_work_schedule_for_queue(&k_sys_work_q, dwork, delay); in k_work_schedule() [all …]
|
D | thread.c | 380 static void schedule_new_thread(struct k_thread *thread, k_timeout_t delay) in schedule_new_thread() argument 383 if (K_TIMEOUT_EQ(delay, K_NO_WAIT)) { in schedule_new_thread() 386 z_add_thread_timeout(thread, delay); in schedule_new_thread() 389 ARG_UNUSED(delay); in schedule_new_thread() 620 int prio, uint32_t options, k_timeout_t delay) in z_impl_k_thread_create() argument 627 if (!K_TIMEOUT_EQ(delay, K_FOREVER)) { in z_impl_k_thread_create() 628 schedule_new_thread(new_thread, delay); in z_impl_k_thread_create() 645 int prio, uint32_t options, k_timeout_t delay) in z_vrfy_k_thread_create() argument 699 if (!K_TIMEOUT_EQ(delay, K_FOREVER)) { in z_vrfy_k_thread_create() 700 schedule_new_thread(new_thread, delay); in z_vrfy_k_thread_create()
|
/Zephyr-Core-2.7.6/drivers/wifi/simplelink/ |
D | simplelink.c | 119 int32_t delay; in simplelink_scan_work_handler() local 124 delay = (simplelink_data.num_results_or_err > 0 ? 0 : in simplelink_scan_work_handler() 126 if (delay > 0) { in simplelink_scan_work_handler() 129 k_work_reschedule(&simplelink_data.work, K_MSEC(delay)); in simplelink_scan_work_handler() 156 int32_t delay = (err > 0 ? 0 : SCAN_RETRY_DELAY); in simplelink_mgmt_scan() local 163 k_work_reschedule(&simplelink_data.work, K_MSEC(delay)); in simplelink_mgmt_scan()
|
/Zephyr-Core-2.7.6/tests/net/socket/socketpair/src/ |
D | test_socketpair_poll.c | 30 k_timeout_t delay; member 105 if (!(K_TIMEOUT_EQ(ctx.delay, K_NO_WAIT) in close_fun() 106 || K_TIMEOUT_EQ(ctx.delay, K_FOREVER))) { in close_fun() 107 k_sleep(ctx.delay); in close_fun() 143 ctx.delay = K_MSEC(1000); in test_socketpair_poll_close_remote_end_POLLIN() 185 ctx.delay = K_MSEC(1000); in test_socketpair_poll_close_remote_end_POLLOUT() 261 if (!(K_TIMEOUT_EQ(ctx.delay, K_NO_WAIT) in rw_fun() 262 || K_TIMEOUT_EQ(ctx.delay, K_FOREVER))) { in rw_fun() 263 k_sleep(ctx.delay); in rw_fun() 307 ctx.delay = K_MSEC(100); in test_socketpair_poll_delayed_data() [all …]
|
/Zephyr-Core-2.7.6/tests/drivers/regulator/fixed/dts/ |
D | test_common.dtsi | 22 startup-delay-us = <10000>; 25 off-on-delay-us = <20000>;
|
/Zephyr-Core-2.7.6/drivers/can/ |
D | Kconfig.mcan | 18 bool "Enable transceiver delay compensation" 21 Enable the automatic transceiver delay compensation.
|
/Zephyr-Core-2.7.6/subsys/tracing/user/ |
D | tracing_user.h | 91 #define sys_port_trace_k_work_schedule_for_queue_enter(queue, dwork, delay) argument 92 #define sys_port_trace_k_work_schedule_for_queue_exit(queue, dwork, delay, \ argument 94 #define sys_port_trace_k_work_schedule_enter(dwork, delay) argument 95 #define sys_port_trace_k_work_schedule_exit(dwork, delay, ret) argument 96 #define sys_port_trace_k_work_reschedule_for_queue_enter(queue, dwork, delay) argument 97 #define sys_port_trace_k_work_reschedule_for_queue_exit(queue, dwork, delay, \ argument 99 #define sys_port_trace_k_work_reschedule_enter(dwork, delay) argument 100 #define sys_port_trace_k_work_reschedule_exit(dwork, delay, ret) argument
|
/Zephyr-Core-2.7.6/include/tracing/ |
D | tracing.h | 480 #define sys_port_trace_k_work_schedule_for_queue_enter(queue, dwork, delay) argument 489 #define sys_port_trace_k_work_schedule_for_queue_exit(queue, dwork, delay, ret) argument 496 #define sys_port_trace_k_work_schedule_enter(dwork, delay) argument 504 #define sys_port_trace_k_work_schedule_exit(dwork, delay, ret) argument 512 #define sys_port_trace_k_work_reschedule_for_queue_enter(queue, dwork, delay) argument 521 #define sys_port_trace_k_work_reschedule_for_queue_exit(queue, dwork, delay, ret) argument 528 #define sys_port_trace_k_work_reschedule_enter(dwork, delay) argument 536 #define sys_port_trace_k_work_reschedule_exit(dwork, delay, ret) argument
|
/Zephyr-Core-2.7.6/samples/drivers/counter/alarm/ |
D | README.rst | 9 It sets an alarm with an initial delay of 2 seconds. At each alarm 10 expiry, a new alarm is configured with a delay multiplied by 2.
|
/Zephyr-Core-2.7.6/tests/drivers/timer/nrf_rtc_timer/src/ |
D | main.c | 14 uint32_t delay; member 62 zassert_true(diff <= data->delay, in timeout_handler() 79 .delay = ext_window ? 100 : 2, in test_timeout() 138 .delay = 2000, in test_int_disable_enabled() 309 .delay = 0, in test_reseting_cc()
|
/Zephyr-Core-2.7.6/samples/drivers/kscan/src/ |
D | main.c | 116 static const uint16_t delay[] = { 250U, 500U, 750U, 1000U }; variable 135 K_MSEC(delay[0]), K_MSEC(period[0])); in kb_callback()
|
/Zephyr-Core-2.7.6/subsys/tracing/ctf/ |
D | tracing_ctf.h | 99 #define sys_port_trace_k_work_schedule_for_queue_enter(queue, dwork, delay) argument 100 #define sys_port_trace_k_work_schedule_for_queue_exit(queue, dwork, delay, \ argument 102 #define sys_port_trace_k_work_schedule_enter(dwork, delay) argument 103 #define sys_port_trace_k_work_schedule_exit(dwork, delay, ret) argument 104 #define sys_port_trace_k_work_reschedule_for_queue_enter(queue, dwork, delay) argument 105 #define sys_port_trace_k_work_reschedule_for_queue_exit(queue, dwork, delay, \ argument 107 #define sys_port_trace_k_work_reschedule_enter(dwork, delay) argument 108 #define sys_port_trace_k_work_reschedule_exit(dwork, delay, ret) argument
|