Home
last modified time | relevance | path

Searched refs:USEC_PER_SEC (Results 1 – 25 of 79) sorted by relevance

1234

/Zephyr-latest/subsys/net/lib/sntp/
Dsntp.c50 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/
Dsleep.c70 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/
Dwdt_iwdg_stm32.c36 * 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/
Dmain.c87 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/
Dmain.c27 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/
Dmain.c30 alarm_cfg.ticks = counter_us_to_ticks(dev, 10 * USEC_PER_SEC); in main()
/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_udp_uploader.c44 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/
Dcommon.h28 #define WAIT_TIME (WAIT_SECONDS * USEC_PER_SEC) /*microseconds*/
/Zephyr-latest/tests/bsim/bluetooth/host/adv/periodic/src/
Dcommon.h31 #define WAIT_TIME (WAIT_SECONDS * USEC_PER_SEC) /* microseconds*/
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/sc_indicate/src/
Dmain.c10 #define BS_SECONDS_TO_US(dur_sec) ((bs_time_t)dur_sec * USEC_PER_SEC)
/Zephyr-latest/samples/boards/nordic/battery/src/
Dmain.c79 k_busy_wait(5 * USEC_PER_SEC); in main()
/Zephyr-latest/tests/bsim/bluetooth/host/adv/extended/src/
Dcommon.h18 #define WAIT_TIME (WAIT_SECONDS * USEC_PER_SEC) /* microseconds*/
/Zephyr-latest/samples/boards/ti/cc13x2_cc26x2/system_off/src/
Dmain.c48 k_busy_wait(BUSY_WAIT_S * USEC_PER_SEC); in main()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/many_conns/src/
Dcommon.h40 #define WAIT_TIME (WAIT_SECONDS * USEC_PER_SEC) /* microseconds*/
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/credits/src/
Dcommon.h40 #define WAIT_TIME (WAIT_SECONDS * USEC_PER_SEC) /* microseconds*/
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/stress/src/
Dcommon.h40 #define WAIT_TIME (WAIT_SECONDS * USEC_PER_SEC) /* microseconds*/
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/credits_seg_recv/src/
Dcommon.h40 #define WAIT_TIME (WAIT_SECONDS * USEC_PER_SEC) /* microseconds*/
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/split/common/
Dutils.h11 #define BS_SECONDS(dur_sec) ((bs_time_t)dur_sec * USEC_PER_SEC)
/Zephyr-latest/drivers/counter/
Dcounter_sam_tc.c78 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/
Dutils.h11 #define BS_SECONDS(dur_sec) ((bs_time_t)dur_sec * USEC_PER_SEC)
/Zephyr-latest/drivers/timer/
Dcortex_m_systick.c241 ((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/
Dutils.h11 #define BS_SECONDS(dur_sec) ((bs_time_t)dur_sec * USEC_PER_SEC)
/Zephyr-latest/samples/bluetooth/bap_unicast_client/src/
Dstream_lc3.c31 #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/
Dutils.h11 #define BS_SECONDS(dur_sec) ((bs_time_t)dur_sec * USEC_PER_SEC)
/Zephyr-latest/tests/lib/sys_util/src/
Dmain.c34 expected = 1000*(sys_clock_hw_cycles_per_sec()/USEC_PER_SEC); in ZTEST()

1234