/Zephyr-latest/subsys/net/lib/sntp/ |
D | sntp.c | 50 return (int64_t)(t >> 16) * (int64_t)USEC_PER_SEC + in q16_16_s_to_ll_us() 51 (((int64_t)(t & 0xFFFF) * (int64_t)USEC_PER_SEC) >> 16); in q16_16_s_to_ll_us() 56 return (uint64_t)t_s * USEC_PER_SEC + (((uint64_t)t_f * (uint64_t)USEC_PER_SEC) >> 32); in q32_32_s_to_ll_us() 116 precision_us = (uint32_t)(USEC_PER_SEC + USEC_PER_SEC / 2) >> -pkt->precision; in parse_response() 118 precision_us = (uint32_t)(USEC_PER_SEC + USEC_PER_SEC / 2) << pkt->precision; in parse_response() 125 res->seconds = (res->uptime_us + clk_offset_us) / USEC_PER_SEC; in parse_response() 126 res->fraction = (res->uptime_us + clk_offset_us) % USEC_PER_SEC; in parse_response() 199 ctx->expected_orig_ts.seconds = ts_us / USEC_PER_SEC; in sntp_query() 200 ctx->expected_orig_ts.fraction = (ts_us % USEC_PER_SEC) * (UINT32_MAX / USEC_PER_SEC); in sntp_query()
|
/Zephyr-latest/tests/posix/common/src/ |
D | sleep.c | 70 zassert_equal(0, usleep(USEC_PER_SEC - 1)); in ZTEST() 72 zassert_true(((now - then) * USEC_PER_MSEC) / (USEC_PER_SEC - 1) >= 1); in ZTEST() 75 zassert_equal(-1, usleep(USEC_PER_SEC)); in ZTEST() 85 zassert_equal(1, k_work_schedule(&wake_work.dwork, K_USEC(USEC_PER_SEC / 2))); in ZTEST() 86 zassert_equal(-1, usleep(USEC_PER_SEC - 1)); in ZTEST()
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_iwdg_stm32.c | 36 * USEC_PER_SEC / LSI_VALUE) 41 USEC_PER_SEC / LSI_VALUE) 70 uint32_t ticks = (uint64_t)timeout * LSI_VALUE / USEC_PER_SEC; in iwdg_stm32_convert_timeout()
|
/Zephyr-latest/samples/drivers/counter/alarm/src/ |
D | main.c | 87 now_sec = (int)(now_usec / USEC_PER_SEC); in test_counter_interrupt_fn() 97 config->ticks) / USEC_PER_SEC), in test_counter_interrupt_fn() 130 alarm_cfg.ticks) / USEC_PER_SEC), in main()
|
/Zephyr-latest/samples/boards/nordic/clock_skew/src/ |
D | main.c | 27 return z_tmcvt(local, sync_config.local_Hz, USEC_PER_SEC, false, in local_to_us() 34 return z_tmcvt(ref, sync_config.ref_Hz, USEC_PER_SEC, false, in ref_to_us() 49 us = rem % USEC_PER_SEC; in us_to_text_r() 50 rem /= USEC_PER_SEC; in us_to_text_r()
|
/Zephyr-latest/samples/boards/nxp/mimxrt595_evk/system_off/src/ |
D | main.c | 30 alarm_cfg.ticks = counter_us_to_ticks(dev, 10 * USEC_PER_SEC); in main()
|
/Zephyr-latest/subsys/net/lib/zperf/ |
D | zperf_udp_uploader.c | 44 ntohl(UNALIGNED_GET(&stat->stop_sec)) * USEC_PER_SEC; in zperf_upload_decode_stat() 46 ntohl(UNALIGNED_GET(&stat->jitter1)) * USEC_PER_SEC; in zperf_upload_decode_stat() 61 uint32_t usecs = k_ticks_to_us_ceil32(end_time) - secs * USEC_PER_SEC; in zperf_upload_fin() 209 secs = usecs64 / USEC_PER_SEC; in udp_upload() 210 usecs = usecs64 - (uint64_t)secs * USEC_PER_SEC; in udp_upload()
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/unregister_conn_cb/src/ |
D | common.h | 28 #define WAIT_TIME (WAIT_SECONDS * USEC_PER_SEC) /*microseconds*/
|
/Zephyr-latest/tests/bsim/bluetooth/host/adv/periodic/src/ |
D | common.h | 31 #define WAIT_TIME (WAIT_SECONDS * USEC_PER_SEC) /* microseconds*/
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/sc_indicate/src/ |
D | main.c | 10 #define BS_SECONDS_TO_US(dur_sec) ((bs_time_t)dur_sec * USEC_PER_SEC)
|
/Zephyr-latest/samples/boards/nordic/battery/src/ |
D | main.c | 79 k_busy_wait(5 * USEC_PER_SEC); in main()
|
/Zephyr-latest/tests/bsim/bluetooth/host/adv/extended/src/ |
D | common.h | 18 #define WAIT_TIME (WAIT_SECONDS * USEC_PER_SEC) /* microseconds*/
|
/Zephyr-latest/samples/boards/ti/cc13x2_cc26x2/system_off/src/ |
D | main.c | 48 k_busy_wait(BUSY_WAIT_S * USEC_PER_SEC); in main()
|
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/many_conns/src/ |
D | common.h | 40 #define WAIT_TIME (WAIT_SECONDS * USEC_PER_SEC) /* microseconds*/
|
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/credits/src/ |
D | common.h | 40 #define WAIT_TIME (WAIT_SECONDS * USEC_PER_SEC) /* microseconds*/
|
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/stress/src/ |
D | common.h | 40 #define WAIT_TIME (WAIT_SECONDS * USEC_PER_SEC) /* microseconds*/
|
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/credits_seg_recv/src/ |
D | common.h | 40 #define WAIT_TIME (WAIT_SECONDS * USEC_PER_SEC) /* microseconds*/
|
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/split/common/ |
D | utils.h | 11 #define BS_SECONDS(dur_sec) ((bs_time_t)dur_sec * USEC_PER_SEC)
|
/Zephyr-latest/drivers/counter/ |
D | counter_sam_tc.c | 78 USEC_PER_SEC, 84 USEC_PER_SEC, 96 USEC_PER_SEC, USEC_PER_SEC, USEC_PER_SEC,
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/hfc/src/ |
D | utils.h | 11 #define BS_SECONDS(dur_sec) ((bs_time_t)dur_sec * USEC_PER_SEC)
|
/Zephyr-latest/drivers/timer/ |
D | cortex_m_systick.c | 241 ((uint64_t)ticks * USEC_PER_SEC) / CONFIG_SYS_CLOCK_TICKS_PER_SEC; in sys_clock_set_timeout() 394 ((uint64_t)systick_diff * USEC_PER_SEC) / sys_clock_hw_cycles_per_sec(); in sys_clock_idle_exit() 411 USEC_PER_SEC; in sys_clock_idle_exit()
|
/Zephyr-latest/tests/bsim/bluetooth/host/att/sequential/common/ |
D | utils.h | 11 #define BS_SECONDS(dur_sec) ((bs_time_t)dur_sec * USEC_PER_SEC)
|
/Zephyr-latest/samples/bluetooth/bap_unicast_client/src/ |
D | stream_lc3.c | 31 #define LC3_MAX_NUM_SAMPLES ((LC3_MAX_FRAME_DURATION_US * LC3_MAX_SAMPLE_RATE) / USEC_PER_SEC) 45 (stream->lc3_tx.frame_duration_us * stream->lc3_tx.freq_hz) / USEC_PER_SEC; in fill_audio_buf_sin()
|
/Zephyr-latest/tests/bsim/bluetooth/host/att/pipeline/common/ |
D | utils.h | 11 #define BS_SECONDS(dur_sec) ((bs_time_t)dur_sec * USEC_PER_SEC)
|
/Zephyr-latest/tests/lib/sys_util/src/ |
D | main.c | 34 expected = 1000*(sys_clock_hw_cycles_per_sec()/USEC_PER_SEC); in ZTEST()
|