Zephyr API 3.6.99
|
Functions | |
void | arch_busy_wait (uint32_t usec_to_wait) |
Architecture-specific implementation of busy-waiting. | |
static uint32_t | arch_k_cycle_get_32 (void) |
Obtain the current cycle count, in units specified by CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC. | |
static uint64_t | arch_k_cycle_get_64 (void) |
As for arch_k_cycle_get_32(), but with a 64 bit return value. | |
void arch_busy_wait | ( | uint32_t | usec_to_wait | ) |
#include </home/runner/work/sdk-nrf/sdk-nrf/ncs/zephyr/kernel/include/kernel_arch_interface.h>
Architecture-specific implementation of busy-waiting.
usec_to_wait | Wait period, in microseconds |
|
inlinestatic |
#include <zephyr/arch/arch_interface.h>
Obtain the current cycle count, in units specified by CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC.
While this is historically specified as part of the architecture API, in practice virtually all platforms forward it to the sys_clock_cycle_get_32() API provided by the timer driver.
|
inlinestatic |
#include <zephyr/arch/arch_interface.h>
As for arch_k_cycle_get_32(), but with a 64 bit return value.
Not all timer hardware has a 64 bit timer, this needs to be implemented only if CONFIG_TIMER_HAS_64BIT_CYCLE_COUNTER is set.