Home
last modified time | relevance | path

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

12

/Zephyr-Core-2.7.6/tests/posix/common/src/
Dsleep.c69 zassert_equal(0, usleep(USEC_PER_SEC - 1), NULL); in test_usleep()
71 zassert_true(((now - then) * USEC_PER_MSEC) / (USEC_PER_SEC - 1) >= 1, NULL); in test_usleep()
74 zassert_equal(-1, usleep(USEC_PER_SEC), NULL); in test_usleep()
84 zassert_equal(1, k_work_schedule(&ww.dwork, K_USEC(USEC_PER_SEC / 2)), NULL); in test_usleep()
85 zassert_equal(-1, usleep(USEC_PER_SEC - 1), NULL); in test_usleep()
/Zephyr-Core-2.7.6/samples/drivers/counter/alarm/src/
Dmain.c55 now_sec = (int)(now_usec / USEC_PER_SEC); in test_counter_interrupt_fn()
65 config->ticks) / USEC_PER_SEC), in test_counter_interrupt_fn()
98 alarm_cfg.ticks) / USEC_PER_SEC), in main()
/Zephyr-Core-2.7.6/samples/basic/blinky_pwm/src/
Dmain.c30 #define MIN_PERIOD_USEC (USEC_PER_SEC / 64U)
31 #define MAX_PERIOD_USEC USEC_PER_SEC
/Zephyr-Core-2.7.6/drivers/watchdog/
Dwdt_iwdg_stm32.c29 * USEC_PER_SEC / LSI_VALUE)
34 USEC_PER_SEC / LSI_VALUE)
63 uint32_t ticks = (uint64_t)timeout * LSI_VALUE / USEC_PER_SEC; in iwdg_stm32_convert_timeout()
Dwdt_wwdg_stm32.c118 return USEC_PER_SEC * (((counter & 0x3F) + 1) / f_wwdg); in wwdg_stm32_get_timeout()
137 float timeout_s = (float)timeout / USEC_PER_SEC; in wwdg_stm32_convert_timeout()
/Zephyr-Core-2.7.6/samples/boards/nrf/system_off/src/
Dmain.c66 k_busy_wait(BUSY_WAIT_S * USEC_PER_SEC); in main()
70 k_busy_wait(BUSY_WAIT_S * USEC_PER_SEC); in main()
/Zephyr-Core-2.7.6/samples/net/zperf/src/
Dzperf_udp_uploader.c58 ntohl(UNALIGNED_GET(&stat->stop_sec)) * USEC_PER_SEC; in zperf_upload_decode_stat()
60 ntohl(UNALIGNED_GET(&stat->jitter1)) * USEC_PER_SEC; in zperf_upload_decode_stat()
86 uint32_t usecs = k_ticks_to_us_ceil32(end_time) - secs * USEC_PER_SEC; in zperf_upload_fin()
168 uint32_t packet_duration = ((uint32_t)packet_size * 8U * USEC_PER_SEC) / in zperf_udp_upload()
240 usecs = k_ticks_to_us_ceil32(loop_time) - secs * USEC_PER_SEC; in zperf_udp_upload()
Dzperf_udp_receiver.c193 (uint64_t)USEC_PER_SEC) / in udp_received()
204 session->stat.stop_sec = duration / USEC_PER_SEC; in udp_received()
205 session->stat.stop_usec = duration % USEC_PER_SEC; in udp_received()
252 ntohl(hdr->tv_sec) * USEC_PER_SEC + in udp_received()
/Zephyr-Core-2.7.6/samples/boards/nrf/clock_skew/src/
Dmain.c29 return z_tmcvt(local, sync_config.local_Hz, USEC_PER_SEC, false, in local_to_us()
36 return z_tmcvt(ref, sync_config.ref_Hz, USEC_PER_SEC, false, in ref_to_us()
51 us = rem % USEC_PER_SEC; in us_to_text_r()
52 rem /= USEC_PER_SEC; in us_to_text_r()
/Zephyr-Core-2.7.6/lib/posix/
Dsleep.c35 if (useconds >= USEC_PER_SEC) { in usleep()
/Zephyr-Core-2.7.6/drivers/counter/
Dcounter_sam_tc.c80 USEC_PER_SEC,
86 USEC_PER_SEC,
98 USEC_PER_SEC, USEC_PER_SEC, USEC_PER_SEC,
Dcounter_ll_stm32_rtc.c131 ticks = counter_us_to_ticks(dev, ts * USEC_PER_SEC); in rtc_stm32_read()
169 alarm_val = (time_t)(counter_ticks_to_us(dev, ticks) / USEC_PER_SEC) in rtc_stm32_set_alarm()
172 alarm_val = (time_t)(counter_ticks_to_us(dev, ticks) / USEC_PER_SEC); in rtc_stm32_set_alarm()
Dcounter_native_posix.c18 #define COUNTER_PERIOD (USEC_PER_SEC / CONFIG_COUNTER_NATIVE_POSIX_FREQUENCY)
/Zephyr-Core-2.7.6/samples/boards/nrf/battery/src/
Dmain.c85 k_busy_wait(5 * USEC_PER_SEC); in main()
/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/bsim_test_l2cap_stress/src/
Dcommon.h40 #define WAIT_TIME (WAIT_SECONDS * USEC_PER_SEC) /* microseconds*/
/Zephyr-Core-2.7.6/samples/boards/ti/cc13x2_cc26x2/system_off/src/
Dmain.c53 k_busy_wait(BUSY_WAIT_S * USEC_PER_SEC); in main()
/Zephyr-Core-2.7.6/include/drivers/
Dpwm.h384 period_cycles = (period * cycles_per_sec) / USEC_PER_SEC; in pwm_pin_set_usec()
389 pulse_cycles = (pulse * cycles_per_sec) / USEC_PER_SEC; in pwm_pin_set_usec()
456 if (u64_mul_overflow(cycles, (uint64_t)USEC_PER_SEC, &temp)) { in pwm_pin_cycles_to_usec()
Dcounter.h273 uint64_t ticks = (us * config->freq) / USEC_PER_SEC; in z_impl_counter_us_to_ticks()
294 return ((uint64_t)ticks * USEC_PER_SEC) / config->freq; in z_impl_counter_ticks_to_us()
/Zephyr-Core-2.7.6/drivers/sensor/dht/
Ddht.c40 (uint64_t)USEC_PER_SEC in dht_measure_signal_duration()
56 (uint64_t)USEC_PER_SEC / in dht_measure_signal_duration()
/Zephyr-Core-2.7.6/include/
Dsys_clock.h133 #define USEC_PER_SEC ((USEC_PER_MSEC) * (MSEC_PER_SEC)) macro
/Zephyr-Core-2.7.6/samples/boards/bbc_microbit/sound/src/
Dmain.c24 #define US_TO_HZ(_us) (USEC_PER_SEC / (_us))
/Zephyr-Core-2.7.6/drivers/timer/
Darm_arch_timer.c126 uint64_t cycles_to_wait = sys_clock_hw_cycles_per_sec() / USEC_PER_SEC * usec_to_wait; in arch_busy_wait()
/Zephyr-Core-2.7.6/samples/basic/rgb_led/src/
Dmain.c61 #define PERIOD_USEC (USEC_PER_SEC / 50U)
/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/bsim_test_mesh/src/
Dmesh_test.c268 HW_device_time / USEC_PER_SEC); in bt_mesh_test_timeout()
276 bst_ticker_set_next_tick_absolute(wait_time * USEC_PER_SEC); in bt_mesh_test_cfg_set()
/Zephyr-Core-2.7.6/drivers/ieee802154/
Dieee802154_nrf5.c178 .second = rx_frame->time / USEC_PER_SEC, in nrf5_rx_thread()
180 (rx_frame->time % USEC_PER_SEC) * NSEC_PER_USEC in nrf5_rx_thread()
401 .second = nrf5_radio->ack_frame.time / USEC_PER_SEC, in handle_ack()
402 .nanosecond = (nrf5_radio->ack_frame.time % USEC_PER_SEC) * NSEC_PER_USEC in handle_ack()

12