Home
last modified time | relevance | path

Searched full:now (Results 1 – 25 of 1070) sorted by relevance

12345678910>>...43

/Zephyr-latest/tests/unit/net_timeout/
Dmain.c49 uint32_t now = 4; in ZTEST() local
54 net_timeout_set(&nto, 0, now); in ZTEST()
55 zassert_equal(nto.timer_start, now); in ZTEST()
61 ++now; in ZTEST()
63 net_timeout_set(&nto, lifetime, now); in ZTEST()
64 zassert_equal(nto.timer_start, now); in ZTEST()
71 ++now; in ZTEST()
73 net_timeout_set(&nto, lifetime, now); in ZTEST()
74 zassert_equal(nto.timer_start, now); in ZTEST()
81 ++now; in ZTEST()
[all …]
/Zephyr-latest/doc/develop/west/
Drelease-notes.rst48 - The manifest file format now supports a ``description`` field in each
51 - ``west list --format`` now accepts ``{description}`` in the format
54 - ``west compare`` now always prints information about
64 ``check_output()`` now take any kwargs that can be passed on
72 ``wrn()``, and ``err()`` now all take an ``end`` kwarg, which
75 - ``west.manifest.Project`` now has a ``description`` attribute,
94 - Project names which contain comma (``,``) or whitespace now generate
101 - ``west forall`` now takese a ``--group`` argument that can be used
105 - All west commands will now output log messages from west API modules at
116 - ``west.manifest.Manifest.is_active()`` now respects the
[all …]
/Zephyr-latest/scripts/dts/
DREADME.txt5 The libraries and tests have now been moved to the 'python-devicetree'
8 We are now in the process of extracting edtlib and dtlib into a
22 For now, the 'main' copy will continue to be hosted here in the zephyr
24 needed; you can just ignore it for now.
27 devicetree.edtlib from now on, but the code will continue to be found
28 by manipulating sys.path for now.
/Zephyr-latest/subsys/net/ip/
Dnet_timeout.c12 uint32_t now) in net_timeout_set() argument
16 timeout->timer_start = now; in net_timeout_set()
45 int64_t now) in net_timeout_deadline() argument
53 start = (uint64_t)now; in net_timeout_deadline()
54 start -= (uint32_t)now - timeout->timer_start; in net_timeout_deadline()
65 uint32_t now) in net_timeout_remaining() argument
70 ret -= (int64_t)(int32_t)(now - timeout->timer_start); in net_timeout_remaining()
79 uint32_t now) in net_timeout_evaluate() argument
87 elapsed = now - timeout->timer_start; in net_timeout_evaluate()
114 * now, then reduce the remaining time by the elapsed time. We know in net_timeout_evaluate()
[all …]
/Zephyr-latest/samples/boards/nordic/battery/src/
Dmain.c37 uint32_t now = k_uptime_get_32(); in now_str() local
38 unsigned int ms = now % MSEC_PER_SEC; in now_str()
43 now /= MSEC_PER_SEC; in now_str()
44 s = now % 60U; in now_str()
45 now /= 60U; in now_str()
46 min = now % 60U; in now_str()
47 now /= 60U; in now_str()
48 h = now; in now_str()
/Zephyr-latest/tests/kernel/timer/starve/src/
Dmain.c25 static uint32_t now; variable
32 now / MSEC_PER_SEC, now % MSEC_PER_SEC, iters); in tag()
53 now = k_uptime_get_32(); in ZTEST()
54 if ((now / MSEC_PER_SEC) > CONFIG_APP_STOP_S) { in ZTEST()
60 if (now > stamp) { in ZTEST()
66 int32_t now_diff = now - last_now; in ZTEST()
72 last_now = now; in ZTEST()
/Zephyr-latest/tests/drivers/timer/nrf_rtc_timer/src/
Dmain.c74 uint64_t now = z_nrf_rtc_timer_read(); in timeout_handler() local
75 uint64_t diff = (now - expire_time); in timeout_handler()
80 now, data->target_time, expire_time); in timeout_handler()
129 /* value in the past should expire immediately (2 ticks from now)*/ in ZTEST()
149 uint64_t now = z_nrf_rtc_timer_read(); in ZTEST() local
152 .target_time = now + t, in ZTEST()
185 /* Relative 1ms from now timeout converted to RTC */ in ZTEST()
213 int64_t now = sys_clock_tick_get(); in sched_handler() local
215 z_nrf_rtc_timer_get_ticks(Z_TIMEOUT_TICKS(Z_TICK_ABS(now))); in sched_handler()
219 k_ticks_to_us_floor64(now - (rtc_ticks_now - expire_time)); in sched_handler()
[all …]
/Zephyr-latest/tests/benchmarks/cmsis_dsp/common/
Dbenchmark_common.h49 volatile uint32_t now; in benchmark_begin() local
55 now = k_cycle_get_32(); in benchmark_begin()
58 *timestamp = now; in benchmark_begin()
63 volatile uint32_t now; in benchmark_end() local
66 now = k_cycle_get_32(); in benchmark_end()
72 return now - timestamp; in benchmark_end()
/Zephyr-latest/samples/sensor/isl29035/src/
Dmain.c30 uint32_t now = k_uptime_get_32(); in now_str() local
31 unsigned int ms = now % MSEC_PER_SEC; in now_str()
36 now /= MSEC_PER_SEC; in now_str()
37 s = now % 60U; in now_str()
38 now /= 60U; in now_str()
39 min = now % 60U; in now_str()
40 now /= 60U; in now_str()
41 h = now; in now_str()
/Zephyr-latest/samples/sensor/mpu6050/src/
Dmain.c15 uint32_t now = k_uptime_get_32(); in now_str() local
16 unsigned int ms = now % MSEC_PER_SEC; in now_str()
21 now /= MSEC_PER_SEC; in now_str()
22 s = now % 60U; in now_str()
23 now /= 60U; in now_str()
24 min = now % 60U; in now_str()
25 now /= 60U; in now_str()
26 h = now; in now_str()
/Zephyr-latest/tests/posix/common/src/
Dsleep.c30 uint32_t now; in ZTEST() local
42 now = k_uptime_get(); in ZTEST()
43 zassert_true((now - then) >= 1 * MSEC_PER_SEC); in ZTEST()
48 now = k_uptime_get(); in ZTEST()
49 zassert_true((now - then) >= 2 * MSEC_PER_SEC); in ZTEST()
61 uint32_t now; in ZTEST() local
71 now = k_uptime_get(); in ZTEST()
72 zassert_true(((now - then) * USEC_PER_MSEC) / (USEC_PER_SEC - 1) >= 1); in ZTEST()
/Zephyr-latest/samples/kernel/condition_variables/simple/
DREADME.rst141 [thread 0] done is now 1. Signalling cond.
144 [thread 1] done is now 2. Signalling cond.
147 [thread 2] done is now 3. Signalling cond.
150 [thread 3] done is now 4. Signalling cond.
153 [thread 4] done is now 5. Signalling cond.
156 [thread 5] done is now 6. Signalling cond.
159 [thread 6] done is now 7. Signalling cond.
162 [thread 7] done is now 8. Signalling cond.
165 [thread 8] done is now 9. Signalling cond.
168 [thread 9] done is now 10. Signalling cond.
[all …]
/Zephyr-latest/tests/kernel/threads/no-multithreading/src/
Dmain.c13 int64_t now = k_uptime_get(); in ZTEST() local
16 while (k_uptime_get() != now) { in ZTEST()
24 now = k_uptime_get(); in ZTEST()
28 int64_t diff = k_uptime_get() - now; in ZTEST()
62 int64_t now, diff; in ZTEST() local
65 now = k_uptime_get(); in ZTEST()
73 diff = k_uptime_get() - now; in ZTEST()
/Zephyr-latest/samples/sensor/6dof_motion_drdy/src/
Dmain.c40 uint32_t now = k_uptime_get_32(); in now_str() local
41 unsigned int ms = now % MSEC_PER_SEC; in now_str()
46 now /= MSEC_PER_SEC; in now_str()
47 s = now % 60U; in now_str()
48 now /= 60U; in now_str()
49 min = now % 60U; in now_str()
50 now /= 60U; in now_str()
51 h = now; in now_str()
/Zephyr-latest/drivers/timer/
Dambiq_stimer.c64 uint32_t now = am_hal_stimer_counter_get(); in update_tick_counter() local
70 uint64_t now_64 = (g_last_time_stamp <= now) ? (uint64_t)now : (uint64_t)now + COUNTER_MAX; in update_tick_counter()
108 uint32_t now = am_hal_stimer_counter_get(); in stimer_isr() local
114 uint64_t now_64 = (g_last_time_stamp <= now) ? (uint64_t)now in stimer_isr()
115 : (uint64_t)now + COUNTER_MAX; in stimer_isr()
148 uint32_t now = am_hal_stimer_counter_get(); in sys_clock_set_timeout() local
157 uint64_t now_64 = (g_last_time_stamp <= now) ? (uint64_t)now : (uint64_t)now + COUNTER_MAX; in sys_clock_set_timeout()
Dmcux_gpt_timer.c56 uint32_t now; in gpt_set_safe() local
60 now = GPT_GetCurrentTimerCount(base); in gpt_set_safe()
64 * between now and compare point. in gpt_set_safe()
70 if (unlikely(((int32_t)(next - now)) <= 1)) { in gpt_set_safe()
74 next = now + bump; in gpt_set_safe()
79 now = GPT_GetCurrentTimerCount(base); in gpt_set_safe()
80 } while ((((int32_t)(next - now)) <= 1) && (next < MAX_CYCLES)); in gpt_set_safe()
89 uint32_t tick_delta = 0, now, status; in mcux_imx_gpt_isr() local
94 now = GPT_GetCurrentTimerCount(base); in mcux_imx_gpt_isr()
114 tick_delta += (now - announced_cycles) / CYC_PER_TICK; in mcux_imx_gpt_isr()
[all …]
/Zephyr-latest/doc/releases/
Dmigration-guide-4.0.rst41 * STM32WBA: The command used for fetching blobs required to build ble applications is now
49 * The :c:macro:`DT_REG_ADDR` macro and its variants are now expanding into an
72 * ``CONFIG_MBEDTLS_ENTROPY_ENABLED`` is now :kconfig:option:`CONFIG_MBEDTLS_ENTROPY_C`,
73 * ``CONFIG_MBEDTLS_ZEPHYR_ENTROPY`` is now :kconfig:option:`CONFIG_MBEDTLS_ENTROPY_POLL_ZEPHYR`.
76 corresponding build symbol was removed in Mbed TLS 3.1.0 and is now assumed to
88 * The security counter used for the hardware rollback protection now comes explicitly from
112 * More C keywords are now capitalized to avoid naming collision.
130 Chip variants with open-drain outputs (``mcp23x09``, ``mcp23x18``) now correctly reflect this in
144 it is now mandatory to also explicitly define a domain clock source using the ``clock`` property.
150 now be configured using devicetree. The Kconfig options
[all …]
Dmigration-guide-3.6.rst24 * Until now ``_POSIX_C_SOURCE``, ``_XOPEN_SOURCE``, and ``_XOPEN_SOURCE_EXTENDED`` were defined
34 * Build type by setting ``CONF_FILE`` to ``prj_<build>.conf`` is now deprecated, users should
40 * The system heap size and its availability is now determined by a ``K_HEAP_MEM_POOL_SIZE``
49 * STM32H7 and STM32F7 should now activate the cache (Icache and Dcache) by setting explicitly
80 erase is needed when flashing MCUboot, this should now be provided directly to the ``west``
93 * All enum (choice) names have now gained a ``_c`` suffix, so the enum name no longer matches
106 * Printing has been changed significantly, e.g. :c:func:`zcbor_print` is now called
166 of the Devicetree macros now return the as-seen value in the devicetree instead of the Zephyr
244 * The native Linux SocketCAN driver, which can now be used in both :ref:`native_posix<native_posix>`
262 * The CAN transceiver API function :c:func:`can_transceiver_enable` now takes a :c:type:`can_mode_t`
[all …]
/Zephyr-latest/samples/sensor/icm42605/src/
Dmain.c15 uint32_t now = k_uptime_get_32(); in now_str() local
16 unsigned int ms = now % MSEC_PER_SEC; in now_str()
21 now /= MSEC_PER_SEC; in now_str()
22 s = now % 60U; in now_str()
23 now /= 60U; in now_str()
24 min = now % 60U; in now_str()
25 now /= 60U; in now_str()
26 h = now; in now_str()
/Zephyr-latest/include/zephyr/net/
Dnet_timeout.h40 * after they occur, which requires comparing "deadline" to "now" with enough
41 * "slop" to handle any observable latency due to "now" advancing past
95 * @param now the time at which the timeout started counting down, in
100 uint32_t now);
110 * @param now the full-precision value of k_uptime_get() relative to which the
116 int64_t now);
128 * @param now the time relative to which the estimate of remaining time should
136 uint32_t now);
148 * @param now the time relative to which the estimate of remaining time should
157 uint32_t now);
/Zephyr-latest/samples/sensor/jc42/src/
Dmain.c21 uint32_t now = k_uptime_get_32(); in now_str() local
22 unsigned int ms = now % MSEC_PER_SEC; in now_str()
27 now /= MSEC_PER_SEC; in now_str()
28 s = now % 60U; in now_str()
29 now /= 60U; in now_str()
30 min = now % 60U; in now_str()
31 now /= 60U; in now_str()
32 h = now; in now_str()
/Zephyr-latest/tests/posix/eventfd/src/
Dstress.c57 uint64_t now; in th_fun() local
65 for (now = k_uptime_get(), end = now + end_ms, report = now + report_ms; now < end; in th_fun()
66 now = k_uptime_get()) { in th_fun()
76 if (now >= report) { in th_fun()
/Zephyr-latest/samples/boards/nordic/nrf53_sync_rtc/src/
Dmain.c29 uint32_t now = sys_clock_tick_get_32(); in timeout_handler() local
31 *(volatile uint32_t *)shared_cell = now; in timeout_handler()
34 LOG_INF("IPC send at %d ticks", now); in timeout_handler()
37 if (now > sys_clock_hw_cycles_per_sec()) { in timeout_handler()
/Zephyr-latest/tests/kernel/timer/cycle64/src/
Dmain.c33 uint32_t timeout(uint64_t prev, uint64_t now) in timeout() argument
35 uint64_t next = prev + BIT64(32) - now; in timeout()
53 uint64_t now; in ZTEST() local
67 now = k_cycle_get_64(); in ZTEST()
69 c64[CURR] = now; in ZTEST()
/Zephyr-latest/samples/drivers/counter/alarm/
DREADME.rst46 Now: 2
49 Now: 6
52 Now: 14
55 Now: 30

12345678910>>...43