/Zephyr-Core-2.7.6/tests/kernel/timer/starve/src/ |
D | main.c | 32 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/ |
D | int_ms_to_timeout.cocci | 95 // ** 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/ |
D | sys_clock.h | 130 #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/ |
D | main.c | 75 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/ |
D | main.c | 38 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/ |
D | main.c | 44 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/ |
D | main.c | 16 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/ |
D | ipv4_autoconf.c | 230 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()
|
D | net_timeout.c | 27 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/ |
D | microbit.c | 60 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/ |
D | microbit.c | 78 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/ |
D | microbit.c | 89 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/ |
D | main.c | 16 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/ |
D | main.c | 31 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/ |
D | sleep.c | 42 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/ |
D | clock.c | 155 (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/ |
D | main.c | 16 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/ |
D | settings.c | 105 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/ |
D | sleep.c | 24 return rem / MSEC_PER_SEC; in sleep()
|
D | pthread_common.c | 29 milli_secs = secs * MSEC_PER_SEC + nsecs / NSEC_PER_MSEC; in timespec_to_timeoutms()
|
/Zephyr-Core-2.7.6/samples/sensor/mcp9808/src/ |
D | main.c | 22 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/ |
D | ipso_timer.c | 90 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/ |
D | main.c | 39 time_base = sntp_time.seconds * MSEC_PER_SEC - k_uptime_get(); in do_sntp()
|
/Zephyr-Core-2.7.6/samples/sensor/adt7420/src/ |
D | main.c | 26 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/ |
D | id.h | 8 #define RPA_TIMEOUT_MS (CONFIG_BT_RPA_TIMEOUT * MSEC_PER_SEC)
|