Home
last modified time | relevance | path

Searched refs:MSEC_PER_SEC (Results 1 – 25 of 97) sorted by relevance

1234

/Zephyr-Core-2.7.6/tests/kernel/timer/starve/src/
Dmain.c32 now / MSEC_PER_SEC, now % MSEC_PER_SEC, iters); in tag()
46 k_ms_to_cyc_ceil32(MSEC_PER_SEC)); in test_starve()
49 k_ms_to_ticks_ceil32(MSEC_PER_SEC)); in test_starve()
54 if ((now / MSEC_PER_SEC) > CONFIG_APP_STOP_S) { in test_starve()
63 stamp += STAMP_INTERVAL_s * MSEC_PER_SEC; in test_starve()
70 tag(), -now_diff, last_now / MSEC_PER_SEC, in test_starve()
71 last_now % MSEC_PER_SEC); in test_starve()
/Zephyr-Core-2.7.6/scripts/coccinelle/
Dint_ms_to_timeout.cocci95 // ** scaled by MSEC_PER_SEC and replace with the corresponding
104 identifier MSEC_PER_SEC =~ "^MSEC_PER_SEC$";
110 - MSEC_PER_SEC
113 - V * MSEC_PER_SEC
116 - K_MSEC(MSEC_PER_SEC)
119 - K_MSEC(V * MSEC_PER_SEC)
128 identifier MSEC_PER_SEC =~ "^MSEC_PER_SEC$";
134 MSEC_PER_SEC
135 | V * MSEC_PER_SEC
143 identifier MSEC_PER_SEC =~ "^MSEC_PER_SEC$";
[all …]
/Zephyr-Core-2.7.6/include/
Dsys_clock.h130 #define MSEC_PER_SEC 1000U macro
133 #define USEC_PER_SEC ((USEC_PER_MSEC) * (MSEC_PER_SEC))
136 #define NSEC_PER_SEC ((NSEC_PER_USEC) * (USEC_PER_MSEC) * (MSEC_PER_SEC))
150 (MSEC_PER_SEC % CONFIG_SYS_CLOCK_TICKS_PER_SEC) || \
/Zephyr-Core-2.7.6/samples/boards/bbc_microbit/display/src/
Dmain.c75 1 * MSEC_PER_SEC, "9876543210"); in main()
90 mb_display_image(disp, MB_DISPLAY_MODE_SINGLE, 2 * MSEC_PER_SEC, in main()
95 mb_display_image(disp, MB_DISPLAY_MODE_SCROLL, 1 * MSEC_PER_SEC, in main()
/Zephyr-Core-2.7.6/tests/unit/net_timeout/
Dmain.c38 zassert_equal(((uint32_t)(INT32_MAX / MSEC_PER_SEC)), in test_basics()
41 zassert_equal((UINT32_MAX / MSEC_PER_SEC), in test_basics()
66 zassert_equal(nto.timer_timeout, lifetime * MSEC_PER_SEC, in test_set()
76 zassert_equal(nto.timer_timeout, lifetime * MSEC_PER_SEC, in test_set()
87 (lifetime * MSEC_PER_SEC) % NET_TIMEOUT_MAX_VALUE, in test_set()
98 (lifetime * (uint64_t)MSEC_PER_SEC) % NET_TIMEOUT_MAX_VALUE, in test_set()
107 zassert_equal(nto.wrap_counter, MSEC_PER_SEC - 1, NULL); in test_set()
120 uint64_t expected = now + lifetime * MSEC_PER_SEC; in test_deadline()
174 zassert_equal(net_timeout_remaining(&nto, now + MSEC_PER_SEC - 1U), in test_remaining()
177 zassert_equal(net_timeout_remaining(&nto, now + MSEC_PER_SEC), in test_remaining()
[all …]
/Zephyr-Core-2.7.6/samples/boards/nrf/battery/src/
Dmain.c44 unsigned int ms = now % MSEC_PER_SEC; in now_str()
49 now /= MSEC_PER_SEC; in now_str()
/Zephyr-Core-2.7.6/samples/sensor/dht/src/
Dmain.c16 unsigned int ms = now % MSEC_PER_SEC; in now_str()
21 now /= MSEC_PER_SEC; in now_str()
/Zephyr-Core-2.7.6/subsys/net/ip/
Dipv4_autoconf.c230 return MSEC_PER_SEC * IPV4_AUTOCONF_RATE_LIMIT_INTERVAL; in ipv4_autoconf_get_timeout()
233 return MSEC_PER_SEC * IPV4_AUTOCONF_ANNOUNCE_INTERVAL; in ipv4_autoconf_get_timeout()
236 return IPV4_AUTOCONF_PROBE_WAIT * MSEC_PER_SEC + in ipv4_autoconf_get_timeout()
237 (sys_rand32_get() % MSEC_PER_SEC); in ipv4_autoconf_get_timeout()
240 return MSEC_PER_SEC * IPV4_AUTOCONF_ANNOUNCE_INTERVAL; in ipv4_autoconf_get_timeout()
325 ipv4auto->timer_timeout = MSEC_PER_SEC * IPV4_AUTOCONF_START_DELAY; in ipv4_autoconf_start_timer()
Dnet_timeout.c27 expire_timeout = (uint64_t)MSEC_PER_SEC * (uint64_t)lifetime; in net_timeout_set()
75 return (uint32_t)((uint64_t)ret / MSEC_PER_SEC); in net_timeout_remaining()
/Zephyr-Core-2.7.6/samples/bluetooth/mesh_demo/src/
Dmicrobit.c60 2 * MSEC_PER_SEC, "A"); in button_pressed()
63 2 * MSEC_PER_SEC, "%X", (target & 0xf)); in button_pressed()
179 mb_display_image(disp, MB_DISPLAY_MODE_SINGLE, 2 * MSEC_PER_SEC, in board_heartbeat()
190 mb_display_print(disp, MB_DISPLAY_MODE_SINGLE, 2 * MSEC_PER_SEC, "%X", in board_other_dev_pressed()
/Zephyr-Core-2.7.6/tests/bluetooth/mesh/src/
Dmicrobit.c78 mb_display_image(disp, MB_DISPLAY_MODE_DEFAULT, 10 * MSEC_PER_SEC, in board_prov_complete()
99 1 * MSEC_PER_SEC, blink, ARRAY_SIZE(blink)); in board_init()
/Zephyr-Core-2.7.6/samples/bluetooth/mesh/src/
Dmicrobit.c89 mb_display_image(disp, MB_DISPLAY_MODE_DEFAULT, 10 * MSEC_PER_SEC, in board_prov_complete()
98 1 * MSEC_PER_SEC, onoff, ARRAY_SIZE(onoff)); in board_init()
/Zephyr-Core-2.7.6/samples/sensor/mpu6050/src/
Dmain.c16 unsigned int ms = now % MSEC_PER_SEC; in now_str()
21 now /= MSEC_PER_SEC; in now_str()
/Zephyr-Core-2.7.6/samples/sensor/isl29035/src/
Dmain.c31 unsigned int ms = now % MSEC_PER_SEC; in now_str()
36 now /= MSEC_PER_SEC; in now_str()
/Zephyr-Core-2.7.6/tests/posix/common/src/
Dsleep.c42 zassert_true((now - then) >= 1 * MSEC_PER_SEC, NULL); in test_sleep()
48 zassert_true((now - then) >= 2 * MSEC_PER_SEC, NULL); in test_sleep()
/Zephyr-Core-2.7.6/tests/kernel/common/src/
Dclock.c155 (sys_clock_hw_cycles_per_sec() / MSEC_PER_SEC), in test_clock_cycle()
159 (NSEC_PER_SEC / MSEC_PER_SEC), NULL); in test_clock_cycle()
/Zephyr-Core-2.7.6/samples/sensor/icm42605/src/
Dmain.c16 unsigned int ms = now % MSEC_PER_SEC; in now_str()
21 now /= MSEC_PER_SEC; in now_str()
/Zephyr-Core-2.7.6/subsys/bluetooth/mesh/
Dsettings.c105 timeout_ms = CONFIG_BT_MESH_RPL_STORE_TIMEOUT * MSEC_PER_SEC; in bt_mesh_settings_store_schedule()
107 timeout_ms = CONFIG_BT_MESH_STORE_TIMEOUT * MSEC_PER_SEC; in bt_mesh_settings_store_schedule()
/Zephyr-Core-2.7.6/lib/posix/
Dsleep.c24 return rem / MSEC_PER_SEC; in sleep()
Dpthread_common.c29 milli_secs = secs * MSEC_PER_SEC + nsecs / NSEC_PER_MSEC; in timespec_to_timeoutms()
/Zephyr-Core-2.7.6/samples/sensor/mcp9808/src/
Dmain.c22 unsigned int ms = now % MSEC_PER_SEC; in now_str()
27 now /= MSEC_PER_SEC; in now_str()
/Zephyr-Core-2.7.6/subsys/net/lib/lwm2m/
Dipso_timer.c90 f->val1 = ms / MSEC_PER_SEC; in ms2float()
91 f->val2 = (ms % MSEC_PER_SEC) * (LWM2M_FLOAT32_DEC_MAX / MSEC_PER_SEC); in ms2float()
98 *ms = f->val1 * MSEC_PER_SEC; in float2ms()
99 *ms += f->val2 / (LWM2M_FLOAT32_DEC_MAX / MSEC_PER_SEC); in float2ms()
/Zephyr-Core-2.7.6/samples/net/cloud/google_iot_mqtt/src/
Dmain.c39 time_base = sntp_time.seconds * MSEC_PER_SEC - k_uptime_get(); in do_sntp()
/Zephyr-Core-2.7.6/samples/sensor/adt7420/src/
Dmain.c26 unsigned int ms = now % MSEC_PER_SEC; in now_str()
31 now /= MSEC_PER_SEC; in now_str()
/Zephyr-Core-2.7.6/subsys/bluetooth/host/
Did.h8 #define RPA_TIMEOUT_MS (CONFIG_BT_RPA_TIMEOUT * MSEC_PER_SEC)

1234