Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Go to the source code of this file.
Macros | |
#define | SYS_FOREVER_MS (-1) |
System-wide macro to denote "forever" in milliseconds. | |
#define | SYS_FOREVER_US (-1) |
System-wide macro to denote "forever" in microseconds. | |
#define | SYS_TIMEOUT_MS(ms) |
System-wide macro to convert milliseconds to kernel timeouts. | |
#define | TIME_CONSTEXPR |
#define | sys_clock_hw_cycles_per_sec() CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC |
Get the system timer frequency. | |
#define | k_sec_to_cyc_floor32(t) z_tmcvt_32(t, Z_HZ_sec, Z_HZ_cyc, Z_CCYC, false, false) |
Convert seconds to hardware cycles. | |
#define | k_sec_to_cyc_floor64(t) z_tmcvt_64(t, Z_HZ_sec, Z_HZ_cyc, Z_CCYC, false, false) |
Convert seconds to hardware cycles. | |
#define | k_sec_to_cyc_near32(t) z_tmcvt_32(t, Z_HZ_sec, Z_HZ_cyc, Z_CCYC, false, true) |
Convert seconds to hardware cycles. | |
#define | k_sec_to_cyc_near64(t) z_tmcvt_64(t, Z_HZ_sec, Z_HZ_cyc, Z_CCYC, false, true) |
Convert seconds to hardware cycles. | |
#define | k_sec_to_cyc_ceil32(t) z_tmcvt_32(t, Z_HZ_sec, Z_HZ_cyc, Z_CCYC, true, false) |
Convert seconds to hardware cycles. | |
#define | k_sec_to_cyc_ceil64(t) z_tmcvt_64(t, Z_HZ_sec, Z_HZ_cyc, Z_CCYC, true, false) |
Convert seconds to hardware cycles. | |
#define | k_sec_to_ticks_floor32(t) z_tmcvt_32(t, Z_HZ_sec, Z_HZ_ticks, true, false, false) |
Convert seconds to ticks. | |
#define | k_sec_to_ticks_floor64(t) z_tmcvt_64(t, Z_HZ_sec, Z_HZ_ticks, true, false, false) |
Convert seconds to ticks. | |
#define | k_sec_to_ticks_near32(t) z_tmcvt_32(t, Z_HZ_sec, Z_HZ_ticks, true, false, true) |
Convert seconds to ticks. | |
#define | k_sec_to_ticks_near64(t) z_tmcvt_64(t, Z_HZ_sec, Z_HZ_ticks, true, false, true) |
Convert seconds to ticks. | |
#define | k_sec_to_ticks_ceil32(t) z_tmcvt_32(t, Z_HZ_sec, Z_HZ_ticks, true, true, false) |
Convert seconds to ticks. | |
#define | k_sec_to_ticks_ceil64(t) z_tmcvt_64(t, Z_HZ_sec, Z_HZ_ticks, true, true, false) |
Convert seconds to ticks. | |
#define | k_ms_to_cyc_floor32(t) z_tmcvt_32(t, Z_HZ_ms, Z_HZ_cyc, Z_CCYC, false, false) |
Convert milliseconds to hardware cycles. | |
#define | k_ms_to_cyc_floor64(t) z_tmcvt_64(t, Z_HZ_ms, Z_HZ_cyc, Z_CCYC, false, false) |
Convert milliseconds to hardware cycles. | |
#define | k_ms_to_cyc_near32(t) z_tmcvt_32(t, Z_HZ_ms, Z_HZ_cyc, Z_CCYC, false, true) |
Convert milliseconds to hardware cycles. | |
#define | k_ms_to_cyc_near64(t) z_tmcvt_64(t, Z_HZ_ms, Z_HZ_cyc, Z_CCYC, false, true) |
Convert milliseconds to hardware cycles. | |
#define | k_ms_to_cyc_ceil32(t) z_tmcvt_32(t, Z_HZ_ms, Z_HZ_cyc, Z_CCYC, true, false) |
Convert milliseconds to hardware cycles. | |
#define | k_ms_to_cyc_ceil64(t) z_tmcvt_64(t, Z_HZ_ms, Z_HZ_cyc, Z_CCYC, true, false) |
Convert milliseconds to hardware cycles. | |
#define | k_ms_to_ticks_floor32(t) z_tmcvt_32(t, Z_HZ_ms, Z_HZ_ticks, true, false, false) |
Convert milliseconds to ticks. | |
#define | k_ms_to_ticks_floor64(t) z_tmcvt_64(t, Z_HZ_ms, Z_HZ_ticks, true, false, false) |
Convert milliseconds to ticks. | |
#define | k_ms_to_ticks_near32(t) z_tmcvt_32(t, Z_HZ_ms, Z_HZ_ticks, true, false, true) |
Convert milliseconds to ticks. | |
#define | k_ms_to_ticks_near64(t) z_tmcvt_64(t, Z_HZ_ms, Z_HZ_ticks, true, false, true) |
Convert milliseconds to ticks. | |
#define | k_ms_to_ticks_ceil32(t) z_tmcvt_32(t, Z_HZ_ms, Z_HZ_ticks, true, true, false) |
Convert milliseconds to ticks. | |
#define | k_ms_to_ticks_ceil64(t) z_tmcvt_64(t, Z_HZ_ms, Z_HZ_ticks, true, true, false) |
Convert milliseconds to ticks. | |
#define | k_us_to_cyc_floor32(t) z_tmcvt_32(t, Z_HZ_us, Z_HZ_cyc, Z_CCYC, false, false) |
Convert microseconds to hardware cycles. | |
#define | k_us_to_cyc_floor64(t) z_tmcvt_64(t, Z_HZ_us, Z_HZ_cyc, Z_CCYC, false, false) |
Convert microseconds to hardware cycles. | |
#define | k_us_to_cyc_near32(t) z_tmcvt_32(t, Z_HZ_us, Z_HZ_cyc, Z_CCYC, false, true) |
Convert microseconds to hardware cycles. | |
#define | k_us_to_cyc_near64(t) z_tmcvt_64(t, Z_HZ_us, Z_HZ_cyc, Z_CCYC, false, true) |
Convert microseconds to hardware cycles. | |
#define | k_us_to_cyc_ceil32(t) z_tmcvt_32(t, Z_HZ_us, Z_HZ_cyc, Z_CCYC, true, false) |
Convert microseconds to hardware cycles. | |
#define | k_us_to_cyc_ceil64(t) z_tmcvt_64(t, Z_HZ_us, Z_HZ_cyc, Z_CCYC, true, false) |
Convert microseconds to hardware cycles. | |
#define | k_us_to_ticks_floor32(t) z_tmcvt_32(t, Z_HZ_us, Z_HZ_ticks, true, false, false) |
Convert microseconds to ticks. | |
#define | k_us_to_ticks_floor64(t) z_tmcvt_64(t, Z_HZ_us, Z_HZ_ticks, true, false, false) |
Convert microseconds to ticks. | |
#define | k_us_to_ticks_near32(t) z_tmcvt_32(t, Z_HZ_us, Z_HZ_ticks, true, false, true) |
Convert microseconds to ticks. | |
#define | k_us_to_ticks_near64(t) z_tmcvt_64(t, Z_HZ_us, Z_HZ_ticks, true, false, true) |
Convert microseconds to ticks. | |
#define | k_us_to_ticks_ceil32(t) z_tmcvt_32(t, Z_HZ_us, Z_HZ_ticks, true, true, false) |
Convert microseconds to ticks. | |
#define | k_us_to_ticks_ceil64(t) z_tmcvt_64(t, Z_HZ_us, Z_HZ_ticks, true, true, false) |
Convert microseconds to ticks. | |
#define | k_ns_to_cyc_floor32(t) z_tmcvt_32(t, Z_HZ_ns, Z_HZ_cyc, Z_CCYC, false, false) |
Convert nanoseconds to hardware cycles. | |
#define | k_ns_to_cyc_floor64(t) z_tmcvt_64(t, Z_HZ_ns, Z_HZ_cyc, Z_CCYC, false, false) |
Convert nanoseconds to hardware cycles. | |
#define | k_ns_to_cyc_near32(t) z_tmcvt_32(t, Z_HZ_ns, Z_HZ_cyc, Z_CCYC, false, true) |
Convert nanoseconds to hardware cycles. | |
#define | k_ns_to_cyc_near64(t) z_tmcvt_64(t, Z_HZ_ns, Z_HZ_cyc, Z_CCYC, false, true) |
Convert nanoseconds to hardware cycles. | |
#define | k_ns_to_cyc_ceil32(t) z_tmcvt_32(t, Z_HZ_ns, Z_HZ_cyc, Z_CCYC, true, false) |
Convert nanoseconds to hardware cycles. | |
#define | k_ns_to_cyc_ceil64(t) z_tmcvt_64(t, Z_HZ_ns, Z_HZ_cyc, Z_CCYC, true, false) |
Convert nanoseconds to hardware cycles. | |
#define | k_ns_to_ticks_floor32(t) z_tmcvt_32(t, Z_HZ_ns, Z_HZ_ticks, true, false, false) |
Convert nanoseconds to ticks. | |
#define | k_ns_to_ticks_floor64(t) z_tmcvt_64(t, Z_HZ_ns, Z_HZ_ticks, true, false, false) |
Convert nanoseconds to ticks. | |
#define | k_ns_to_ticks_near32(t) z_tmcvt_32(t, Z_HZ_ns, Z_HZ_ticks, true, false, true) |
Convert nanoseconds to ticks. | |
#define | k_ns_to_ticks_near64(t) z_tmcvt_64(t, Z_HZ_ns, Z_HZ_ticks, true, false, true) |
Convert nanoseconds to ticks. | |
#define | k_ns_to_ticks_ceil32(t) z_tmcvt_32(t, Z_HZ_ns, Z_HZ_ticks, true, true, false) |
Convert nanoseconds to ticks. | |
#define | k_ns_to_ticks_ceil64(t) z_tmcvt_64(t, Z_HZ_ns, Z_HZ_ticks, true, true, false) |
Convert nanoseconds to ticks. | |
#define | k_cyc_to_sec_floor32(t) z_tmcvt_32(t, Z_HZ_cyc, Z_HZ_sec, Z_CCYC, false, false) |
Convert hardware cycles to seconds. | |
#define | k_cyc_to_sec_floor64(t) z_tmcvt_64(t, Z_HZ_cyc, Z_HZ_sec, Z_CCYC, false, false) |
Convert hardware cycles to seconds. | |
#define | k_cyc_to_sec_near32(t) z_tmcvt_32(t, Z_HZ_cyc, Z_HZ_sec, Z_CCYC, false, true) |
Convert hardware cycles to seconds. | |
#define | k_cyc_to_sec_near64(t) z_tmcvt_64(t, Z_HZ_cyc, Z_HZ_sec, Z_CCYC, false, true) |
Convert hardware cycles to seconds. | |
#define | k_cyc_to_sec_ceil32(t) z_tmcvt_32(t, Z_HZ_cyc, Z_HZ_sec, Z_CCYC, true, false) |
Convert hardware cycles to seconds. | |
#define | k_cyc_to_sec_ceil64(t) z_tmcvt_64(t, Z_HZ_cyc, Z_HZ_sec, Z_CCYC, true, false) |
Convert hardware cycles to seconds. | |
#define | k_cyc_to_ms_floor32(t) z_tmcvt_32(t, Z_HZ_cyc, Z_HZ_ms, Z_CCYC, false, false) |
Convert hardware cycles to milliseconds. | |
#define | k_cyc_to_ms_floor64(t) z_tmcvt_64(t, Z_HZ_cyc, Z_HZ_ms, Z_CCYC, false, false) |
Convert hardware cycles to milliseconds. | |
#define | k_cyc_to_ms_near32(t) z_tmcvt_32(t, Z_HZ_cyc, Z_HZ_ms, Z_CCYC, false, true) |
Convert hardware cycles to milliseconds. | |
#define | k_cyc_to_ms_near64(t) z_tmcvt_64(t, Z_HZ_cyc, Z_HZ_ms, Z_CCYC, false, true) |
Convert hardware cycles to milliseconds. | |
#define | k_cyc_to_ms_ceil32(t) z_tmcvt_32(t, Z_HZ_cyc, Z_HZ_ms, Z_CCYC, true, false) |
Convert hardware cycles to milliseconds. | |
#define | k_cyc_to_ms_ceil64(t) z_tmcvt_64(t, Z_HZ_cyc, Z_HZ_ms, Z_CCYC, true, false) |
Convert hardware cycles to milliseconds. | |
#define | k_cyc_to_us_floor32(t) z_tmcvt_32(t, Z_HZ_cyc, Z_HZ_us, Z_CCYC, false, false) |
Convert hardware cycles to microseconds. | |
#define | k_cyc_to_us_floor64(t) z_tmcvt_64(t, Z_HZ_cyc, Z_HZ_us, Z_CCYC, false, false) |
Convert hardware cycles to microseconds. | |
#define | k_cyc_to_us_near32(t) z_tmcvt_32(t, Z_HZ_cyc, Z_HZ_us, Z_CCYC, false, true) |
Convert hardware cycles to microseconds. | |
#define | k_cyc_to_us_near64(t) z_tmcvt_64(t, Z_HZ_cyc, Z_HZ_us, Z_CCYC, false, true) |
Convert hardware cycles to microseconds. | |
#define | k_cyc_to_us_ceil32(t) z_tmcvt_32(t, Z_HZ_cyc, Z_HZ_us, Z_CCYC, true, false) |
Convert hardware cycles to microseconds. | |
#define | k_cyc_to_us_ceil64(t) z_tmcvt_64(t, Z_HZ_cyc, Z_HZ_us, Z_CCYC, true, false) |
Convert hardware cycles to microseconds. | |
#define | k_cyc_to_ns_floor32(t) z_tmcvt_32(t, Z_HZ_cyc, Z_HZ_ns, Z_CCYC, false, false) |
Convert hardware cycles to nanoseconds. | |
#define | k_cyc_to_ns_floor64(t) z_tmcvt_64(t, Z_HZ_cyc, Z_HZ_ns, Z_CCYC, false, false) |
Convert hardware cycles to nanoseconds. | |
#define | k_cyc_to_ns_near32(t) z_tmcvt_32(t, Z_HZ_cyc, Z_HZ_ns, Z_CCYC, false, true) |
Convert hardware cycles to nanoseconds. | |
#define | k_cyc_to_ns_near64(t) z_tmcvt_64(t, Z_HZ_cyc, Z_HZ_ns, Z_CCYC, false, true) |
Convert hardware cycles to nanoseconds. | |
#define | k_cyc_to_ns_ceil32(t) z_tmcvt_32(t, Z_HZ_cyc, Z_HZ_ns, Z_CCYC, true, false) |
Convert hardware cycles to nanoseconds. | |
#define | k_cyc_to_ns_ceil64(t) z_tmcvt_64(t, Z_HZ_cyc, Z_HZ_ns, Z_CCYC, true, false) |
Convert hardware cycles to nanoseconds. | |
#define | k_cyc_to_ticks_floor32(t) z_tmcvt_32(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, false, false) |
Convert hardware cycles to ticks. | |
#define | k_cyc_to_ticks_floor64(t) z_tmcvt_64(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, false, false) |
Convert hardware cycles to ticks. | |
#define | k_cyc_to_ticks_near32(t) z_tmcvt_32(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, false, true) |
Convert hardware cycles to ticks. | |
#define | k_cyc_to_ticks_near64(t) z_tmcvt_64(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, false, true) |
Convert hardware cycles to ticks. | |
#define | k_cyc_to_ticks_ceil32(t) z_tmcvt_32(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, true, false) |
Convert hardware cycles to ticks. | |
#define | k_cyc_to_ticks_ceil64(t) z_tmcvt_64(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, true, false) |
Convert hardware cycles to ticks. | |
#define | k_ticks_to_sec_floor32(t) z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_sec, true, false, false) |
Convert ticks to seconds. | |
#define | k_ticks_to_sec_floor64(t) z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_sec, true, false, false) |
Convert ticks to seconds. | |
#define | k_ticks_to_sec_near32(t) z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_sec, true, false, true) |
Convert ticks to seconds. | |
#define | k_ticks_to_sec_near64(t) z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_sec, true, false, true) |
Convert ticks to seconds. | |
#define | k_ticks_to_sec_ceil32(t) z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_sec, true, true, false) |
Convert ticks to seconds. | |
#define | k_ticks_to_sec_ceil64(t) z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_sec, true, true, false) |
Convert ticks to seconds. | |
#define | k_ticks_to_ms_floor32(t) z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_ms, true, false, false) |
Convert ticks to milliseconds. | |
#define | k_ticks_to_ms_floor64(t) z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_ms, true, false, false) |
Convert ticks to milliseconds. | |
#define | k_ticks_to_ms_near32(t) z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_ms, true, false, true) |
Convert ticks to milliseconds. | |
#define | k_ticks_to_ms_near64(t) z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_ms, true, false, true) |
Convert ticks to milliseconds. | |
#define | k_ticks_to_ms_ceil32(t) z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_ms, true, true, false) |
Convert ticks to milliseconds. | |
#define | k_ticks_to_ms_ceil64(t) z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_ms, true, true, false) |
Convert ticks to milliseconds. | |
#define | k_ticks_to_us_floor32(t) z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_us, true, false, false) |
Convert ticks to microseconds. | |
#define | k_ticks_to_us_floor64(t) z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_us, true, false, false) |
Convert ticks to microseconds. | |
#define | k_ticks_to_us_near32(t) z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_us, true, false, true) |
Convert ticks to microseconds. | |
#define | k_ticks_to_us_near64(t) z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_us, true, false, true) |
Convert ticks to microseconds. | |
#define | k_ticks_to_us_ceil32(t) z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_us, true, true, false) |
Convert ticks to microseconds. | |
#define | k_ticks_to_us_ceil64(t) z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_us, true, true, false) |
Convert ticks to microseconds. | |
#define | k_ticks_to_ns_floor32(t) z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_ns, true, false, false) |
Convert ticks to nanoseconds. | |
#define | k_ticks_to_ns_floor64(t) z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_ns, true, false, false) |
Convert ticks to nanoseconds. | |
#define | k_ticks_to_ns_near32(t) z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_ns, true, false, true) |
Convert ticks to nanoseconds. | |
#define | k_ticks_to_ns_near64(t) z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_ns, true, false, true) |
Convert ticks to nanoseconds. | |
#define | k_ticks_to_ns_ceil32(t) z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_ns, true, true, false) |
Convert ticks to nanoseconds. | |
#define | k_ticks_to_ns_ceil64(t) z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_ns, true, true, false) |
Convert ticks to nanoseconds. | |
#define | k_ticks_to_cyc_floor32(t) z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, false, false) |
Convert ticks to hardware cycles. | |
#define | k_ticks_to_cyc_floor64(t) z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, false, false) |
Convert ticks to hardware cycles. | |
#define | k_ticks_to_cyc_near32(t) z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, false, true) |
Convert ticks to hardware cycles. | |
#define | k_ticks_to_cyc_near64(t) z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, false, true) |
Convert ticks to hardware cycles. | |
#define | k_ticks_to_cyc_ceil32(t) z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, true, false) |
Convert ticks to hardware cycles. | |
#define | k_ticks_to_cyc_ceil64(t) z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, true, false) |
Convert ticks to hardware cycles. | |