RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
|
宏定义 | |
#define | RT_BITS_PER_LONG 32 |
#define | RT_BITS_PER_LONG_LONG 64 |
#define | RT_DIV_ROUND_UP(n, d) |
#define | RT_DIV_ROUND_CLOSEST(x, divisor) |
#define | __KEY_PLACEHOLDER_1 0, |
#define | ____KEY_ENABLED(__ignored, val, ...) |
#define | ___KEY_ENABLED(arg1_or_junk) |
#define | __KEY_ENABLED(value) |
#define | RT_KEY_ENABLED(key) |
#define | RT_FIELD_PREP(mask, val) |
#define | RT_FIELD_GET(mask, val) |
#define | RT_BIT(n) |
#define | RT_BIT_ULL(n) |
#define | RT_BIT_MASK(nr) |
#define | RT_BIT_WORD(nr) |
#define | RT_BITS_PER_BYTE 8 |
#define | RT_BITS_PER_TYPE(type) |
#define | RT_BITS_TO_BYTES(nr) |
#define | RT_BITS_TO_LONGS(nr) |
#define | RT_GENMASK(h, l) |
#define | RT_GENMASK_ULL(h, l) |
#define | RT_ARRAY_SIZE(arr) |
#define | rt_offsetof(s, field) |
#define | rt_err_ptr(err) |
#define | rt_ptr_err(ptr) |
#define | rt_is_err_value(ptr) |
#define | rt_is_err(ptr) |
#define | rt_is_err_or_null(ptr) |
#define | rt_upper_32_bits(n) |
#define | rt_lower_32_bits(n) |
#define | rt_upper_16_bits(n) |
#define | rt_lower_16_bits(n) |
#define | rt_min(x, y) |
#define | rt_max(x, y) |
#define | rt_min_t(type, x, y) |
#define | rt_max_t(type, x, y) |
#define | rt_clamp(val, lo, hi) |
#define | rt_do_div(n, base) |
#define | rt_abs(x) |
函数 | |
rt_inline int | rt_ilog2 (rt_ubase_t v) |
#define RT_DIV_ROUND_CLOSEST | ( | x, | |
divisor ) |
#define ___KEY_ENABLED | ( | arg1_or_junk | ) |
#define __KEY_ENABLED | ( | value | ) |
#define RT_KEY_ENABLED | ( | key | ) |
#define RT_FIELD_PREP | ( | mask, | |
val ) |
#define RT_FIELD_GET | ( | mask, | |
val ) |
#define RT_BIT_MASK | ( | nr | ) |
#define RT_BIT_WORD | ( | nr | ) |
#define RT_BITS_PER_TYPE | ( | type | ) |
#define RT_BITS_TO_BYTES | ( | nr | ) |
#define RT_BITS_TO_LONGS | ( | nr | ) |
#define RT_GENMASK | ( | h, | |
l ) |
#define RT_GENMASK_ULL | ( | h, | |
l ) |
#define rt_offsetof | ( | s, | |
field ) |
#define rt_err_ptr | ( | err | ) |
#define rt_ptr_err | ( | ptr | ) |
#define rt_is_err_value | ( | ptr | ) |
#define rt_is_err | ( | ptr | ) |
#define rt_is_err_or_null | ( | ptr | ) |
#define rt_upper_32_bits | ( | n | ) |
#define rt_lower_32_bits | ( | n | ) |
#define rt_upper_16_bits | ( | n | ) |
#define rt_lower_16_bits | ( | n | ) |
#define rt_min | ( | x, | |
y ) |
#define rt_max | ( | x, | |
y ) |
#define rt_min_t | ( | type, | |
x, | |||
y ) |
#define rt_max_t | ( | type, | |
x, | |||
y ) |
#define rt_clamp | ( | val, | |
lo, | |||
hi ) |
#define rt_do_div | ( | n, | |
base ) |
#define rt_abs | ( | x | ) |
rt_inline int rt_ilog2 | ( | rt_ubase_t | v | ) |