/Zephyr-Core-2.7.6/tests/posix/common/src/ |
D | sleep.c | 69 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/ |
D | main.c | 55 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/ |
D | main.c | 30 #define MIN_PERIOD_USEC (USEC_PER_SEC / 64U) 31 #define MAX_PERIOD_USEC USEC_PER_SEC
|
/Zephyr-Core-2.7.6/drivers/watchdog/ |
D | wdt_iwdg_stm32.c | 29 * 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()
|
D | wdt_wwdg_stm32.c | 118 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/ |
D | main.c | 66 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/ |
D | zperf_udp_uploader.c | 58 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()
|
D | zperf_udp_receiver.c | 193 (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/ |
D | main.c | 29 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/ |
D | sleep.c | 35 if (useconds >= USEC_PER_SEC) { in usleep()
|
/Zephyr-Core-2.7.6/drivers/counter/ |
D | counter_sam_tc.c | 80 USEC_PER_SEC, 86 USEC_PER_SEC, 98 USEC_PER_SEC, USEC_PER_SEC, USEC_PER_SEC,
|
D | counter_ll_stm32_rtc.c | 131 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()
|
D | counter_native_posix.c | 18 #define COUNTER_PERIOD (USEC_PER_SEC / CONFIG_COUNTER_NATIVE_POSIX_FREQUENCY)
|
/Zephyr-Core-2.7.6/samples/boards/nrf/battery/src/ |
D | main.c | 85 k_busy_wait(5 * USEC_PER_SEC); in main()
|
/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/bsim_test_l2cap_stress/src/ |
D | common.h | 40 #define WAIT_TIME (WAIT_SECONDS * USEC_PER_SEC) /* microseconds*/
|
/Zephyr-Core-2.7.6/samples/boards/ti/cc13x2_cc26x2/system_off/src/ |
D | main.c | 53 k_busy_wait(BUSY_WAIT_S * USEC_PER_SEC); in main()
|
/Zephyr-Core-2.7.6/include/drivers/ |
D | pwm.h | 384 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()
|
D | counter.h | 273 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/ |
D | dht.c | 40 (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/ |
D | sys_clock.h | 133 #define USEC_PER_SEC ((USEC_PER_MSEC) * (MSEC_PER_SEC)) macro
|
/Zephyr-Core-2.7.6/samples/boards/bbc_microbit/sound/src/ |
D | main.c | 24 #define US_TO_HZ(_us) (USEC_PER_SEC / (_us))
|
/Zephyr-Core-2.7.6/drivers/timer/ |
D | arm_arch_timer.c | 126 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/ |
D | main.c | 61 #define PERIOD_USEC (USEC_PER_SEC / 50U)
|
/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/bsim_test_mesh/src/ |
D | mesh_test.c | 268 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/ |
D | ieee802154_nrf5.c | 178 .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()
|