Searched refs:Z_TIMEOUT_TICKS (Results 1 – 11 of 11) sorted by relevance
/Zephyr-Core-2.7.6/include/ |
D | sys_clock.h | 84 #define Z_TIMEOUT_TICKS(t) ((k_timeout_t) { (t) }) macro 86 #define Z_TIMEOUT_TICKS(t) ((k_timeout_t) { .ticks = (t) }) macro 88 #define Z_FOREVER Z_TIMEOUT_TICKS(K_TICKS_FOREVER) 91 # define Z_TIMEOUT_MS(t) Z_TIMEOUT_TICKS((k_ticks_t)k_ms_to_ticks_ceil64(MAX(t, 0))) 92 # define Z_TIMEOUT_US(t) Z_TIMEOUT_TICKS((k_ticks_t)k_us_to_ticks_ceil64(MAX(t, 0))) 93 # define Z_TIMEOUT_NS(t) Z_TIMEOUT_TICKS((k_ticks_t)k_ns_to_ticks_ceil64(MAX(t, 0))) 94 # define Z_TIMEOUT_CYC(t) Z_TIMEOUT_TICKS((k_ticks_t)k_cyc_to_ticks_ceil64(MAX(t, 0))) 96 # define Z_TIMEOUT_MS(t) Z_TIMEOUT_TICKS((k_ticks_t)k_ms_to_ticks_ceil32(MAX(t, 0))) 97 # define Z_TIMEOUT_US(t) Z_TIMEOUT_TICKS((k_ticks_t)k_us_to_ticks_ceil32(MAX(t, 0))) 98 # define Z_TIMEOUT_NS(t) Z_TIMEOUT_TICKS((k_ticks_t)k_ns_to_ticks_ceil32(MAX(t, 0))) [all …]
|
D | kernel.h | 1127 #define K_TICKS(t) Z_TIMEOUT_TICKS(t) 1201 Z_TIMEOUT_TICKS(Z_TICK_ABS((k_ticks_t)MAX(t, 0)))
|
/Zephyr-Core-2.7.6/tests/boards/native_posix/cpu_wait/src/ |
D | main.c | 91 k_sleep(Z_TIMEOUT_TICKS(1)); in thread_entry() 114 k_sleep(Z_TIMEOUT_TICKS(1)); /* Wait until tick boundary */ in test_cpu_hold_with_another_thread() 133 k_sleep(Z_TIMEOUT_TICKS(1)); /* Wait until tick boundary */ in test_cpu_hold_with_another_thread() 153 k_sleep(Z_TIMEOUT_TICKS(1)); /* Wait until tick boundary */ in test_cpu_hold_with_another_thread() 171 k_sleep(Z_TIMEOUT_TICKS(1)); /* Wait until tick boundary */ in test_cpu_hold_with_another_thread() 223 k_sleep(Z_TIMEOUT_TICKS(1)); /* Wait until a tick boundary */ in test_cpu_hold_with_interrupts() 241 k_sleep(Z_TIMEOUT_TICKS(1)); /* Wait until tick boundary */ in test_cpu_hold_with_interrupts() 258 k_sleep(Z_TIMEOUT_TICKS(1)); /* Wait until tick boundary */ in test_cpu_hold_with_interrupts() 274 k_sleep(Z_TIMEOUT_TICKS(1)); /* Wait until tick boundary */ in test_cpu_hold_with_interrupts()
|
/Zephyr-Core-2.7.6/tests/drivers/timer/nrf_rtc_timer/src/ |
D | main.c | 100 Z_TIMEOUT_TICKS(Z_TICK_ABS(sys_clock_tick_get() + K_MSEC(1).ticks)); in test_basic() 115 Z_TIMEOUT_TICKS(Z_TICK_ABS(sys_clock_tick_get() - K_MSEC(1).ticks)); in test_basic() 152 k_sleep(Z_TIMEOUT_TICKS(t + 100)); in test_int_disable_enabled() 175 t = Z_TIMEOUT_TICKS(Z_TICK_ABS(sys_clock_tick_get() - K_MSEC(1).ticks)); in test_get_ticks() 182 t = Z_TIMEOUT_TICKS(Z_TICK_ABS(sys_clock_tick_get() + K_MSEC(10).ticks)); in test_get_ticks() 189 t = Z_TIMEOUT_TICKS(sys_clock_tick_get() + 0x00800001); in test_get_ticks() 199 z_nrf_rtc_timer_get_ticks(Z_TIMEOUT_TICKS(Z_TICK_ABS(now))); in sched_handler() 218 t = Z_TIMEOUT_TICKS(Z_TICK_ABS(K_USEC(target_us).ticks)); in test_absolute_scheduling() 232 t = Z_TIMEOUT_TICKS(Z_TICK_ABS(K_USEC(now_us).ticks)); in test_absolute_scheduling()
|
/Zephyr-Core-2.7.6/samples/kernel/metairq_dispatch/src/ |
D | msgdev.c | 80 z_add_timeout(&timeout, dev_timer_expired, Z_TIMEOUT_TICKS(ticks)); in timeout_reset()
|
/Zephyr-Core-2.7.6/subsys/portability/cmsis_rtos_v2/ |
D | event_flags.c | 180 poll_timeout = Z_TIMEOUT_TICKS((k_ticks_t)( in osEventFlagsWait()
|
/Zephyr-Core-2.7.6/subsys/net/lib/sockets/ |
D | sockets.c | 1244 timeout = Z_TIMEOUT_TICKS(remaining); in zsock_recv_stream() 1508 timeout = Z_TIMEOUT_TICKS(remaining); in zsock_poll_internal() 1579 timeout = Z_TIMEOUT_TICKS(remaining); in zsock_poll_internal()
|
/Zephyr-Core-2.7.6/subsys/net/ip/ |
D | net_pkt.c | 897 timeout = Z_TIMEOUT_TICKS(remaining); 1186 timeout = Z_TIMEOUT_TICKS(remaining); 1435 timeout = Z_TIMEOUT_TICKS(remaining);
|
/Zephyr-Core-2.7.6/subsys/net/ |
D | buf.c | 321 timeout = Z_TIMEOUT_TICKS(remaining); in net_buf_alloc_len_debug() 568 timeout = Z_TIMEOUT_TICKS(remaining); in net_buf_clone()
|
/Zephyr-Core-2.7.6/kernel/ |
D | sched.c | 1281 k_timeout_t timeout = Z_TIMEOUT_TICKS(ticks); in z_tick_sleep()
|
/Zephyr-Core-2.7.6/doc/releases/ |
D | release-notes-2.4.rst | 1392 * :github:`26369` - C++ compilation warning for Z_TIMEOUT_TICKS
|