|
#define | ENABLED 1 |
|
#define | DISABLED 0 |
|
#define | __FSM_RT_TYPE__ |
|
#define | VSF_ASSERT(__EXPR) |
| system macros
|
|
#define | __VSF_STR(__STRING) #__STRING |
|
#define | VSF_STR(__STRING) __VSF_STR(__STRING) |
|
#define | vsf_max(__a, __b) (((__a) > (__b)) ? (__a) : (__b)) |
|
#define | vsf_min(__a, __b) (((__a) < (__b)) ? (__a) : (__b)) |
|
#define | dimof(__arr) (sizeof(__arr) / sizeof((__arr)[0])) |
|
#define | vsf_offset_of(__type, __member) (uintptr_t)(&(((__type *)0)->__member)) |
|
#define | vsf_container_of(__ptr, __type, __member) ((__type *)((uintptr_t)(__ptr) - vsf_offset_of(__type, __member))) |
|
#define | vsf_safe_container_of(__ptr, __type, __member) (__ptr ? vsf_container_of(__ptr, __type, __member) : NULL) |
|
#define | VSF_COMPATIBILITY ENABLED |
|
#define | container_of vsf_container_of |
|
#define | safe_container_of vsf_safe_container_of |
|
#define | vsf_abs(__num) (((__num) < 0) ? (-(__num)) : (__num)) |
|
#define | VSF_BIT(__N) (1UL << (__N)) |
|
#define | VSF_BITMASK(__N) (VSF_BIT(__N) - 1) |
|
#define | VSF_UNUSED_PARAM(__VAL) (void)(__VAL) |
|
#define | VSF_STATIC_ASSERT(__COND) typedef int VSF_MACRO_SAFE_NAME(STATIC_ASSERT)[(__COND) * 2 - 1] |
|
#define | __REG_TYPE__ |
|
#define | __REG_CONNECT(__A, __B) __A##__B |
|
#define | __REG_RSVD_NAME(__NAME) __REG_CONNECT(__unused_, __NAME) |
|
#define | ____REG_RSVD(__NAME, __BIT) reg##__BIT##_t __NAME : __BIT; |
|
#define | ____REG_RSVD_N(__NAME, __BIT, __N) reg##__BIT##_t __NAME[__N]; |
|
#define | __REG_RSVD(__BIT) ____REG_RSVD(REG_RSVD_NAME, __BIT) |
|
#define | __REG_RSVD_N(__BIT, __N) ____REG_RSVD_N(REG_RSVD_NAME, __BIT, (__N)) |
|
#define | REG_RSVD_NAME __REG_RSVD_NAME(__LINE__) |
|
#define | REG_RSVD(__BIT) __REG_RSVD(__BIT) |
|
#define | REG_RSVD_N(__BIT, __N) __REG_RSVD_N(__BIT, (__N)) |
|
#define | REG_RSVD_U8 REG_RSVD(8) |
|
#define | REG_RSVD_U16 REG_RSVD(16) |
|
#define | REG_RSVD_U32 REG_RSVD(32) |
|
#define | REG_RSVD_U8N(__N) REG_RSVD_N(8, (__N)) |
|
#define | REG_RSVD_U16N(__N) REG_RSVD_N(16, (__N)) |
|
#define | REG_RSVD_U32N(__N) REG_RSVD_N(32, (__N)) |
|
#define | REG8_RSVD_N(__N) REG_RSVD_U8N(__N) |
|
#define | REG8_RSVD_B(__BYTE_CNT) REG8_RSVD_N(__BYTE_CNT) |
|
#define | REG8_RSVD_8B REG8_RSVD_B(8) |
|
#define | REG8_RSVD_16B REG8_RSVD_B(16) |
|
#define | REG8_RSVD_32B REG8_RSVD_B(32) |
|
#define | REG8_RSVD_64B REG8_RSVD_B(64) |
|
#define | REG8_RSVD_128B REG8_RSVD_B(128) |
|
#define | REG8_RSVD_256B REG8_RSVD_B(256) |
|
#define | REG8_RSVD_512B REG8_RSVD_B(512) |
|
#define | REG8_RSVD_1K REG8_RSVD_B(1024) |
|
#define | REG8_RSVD_2K REG8_RSVD_B(2048) |
|
#define | REG8_RSVD_4K REG8_RSVD_B(4096) |
|
#define | REG8_RSVD_8K REG8_RSVD_B(8192) |
|
#define | REG8_RSVD_16K REG8_RSVD_B(16 * 1024) |
|
#define | REG8_RSVD_32K REG8_RSVD_B(32 * 1024) |
|
#define | REG8_RSVD_64K REG8_RSVD_B(64 * 1024) |
|
#define | REG8_RSVD_128K REG8_RSVD_B(128 * 1024) |
|
#define | REG8_RSVD_256K REG8_RSVD_B(256 * 1024) |
|
#define | REG8_RSVD_512K REG8_RSVD_B(512 * 1024) |
|
#define | REG8_RSVD_1M REG8_RSVD_B(1024 * 1024) |
|
#define | REG16_RSVD_N(__N) REG_RSVD_U16N(__N) |
|
#define | REG16_RSVD_B(__BYTE_CNT) REG16_RSVD_N(__BYTE_CNT >> 1) |
|
#define | REG16_RSVD_8B REG16_RSVD_B(8) |
|
#define | REG16_RSVD_16B REG16_RSVD_B(16) |
|
#define | REG16_RSVD_32B REG16_RSVD_B(32) |
|
#define | REG16_RSVD_64B REG16_RSVD_B(64) |
|
#define | REG16_RSVD_128B REG16_RSVD_B(128) |
|
#define | REG16_RSVD_256B REG16_RSVD_B(256) |
|
#define | REG16_RSVD_512B REG16_RSVD_B(512) |
|
#define | REG16_RSVD_1K REG16_RSVD_B(1024) |
|
#define | REG16_RSVD_2K REG16_RSVD_B(2048) |
|
#define | REG16_RSVD_4K REG16_RSVD_B(4096) |
|
#define | REG16_RSVD_8K REG16_RSVD_B(8192) |
|
#define | REG16_RSVD_16K REG16_RSVD_B(16 * 1024) |
|
#define | REG16_RSVD_32K REG16_RSVD_B(32 * 1024) |
|
#define | REG16_RSVD_64K REG16_RSVD_B(64 * 1024) |
|
#define | REG16_RSVD_128K REG16_RSVD_B(128 * 1024) |
|
#define | REG16_RSVD_256K REG16_RSVD_B(256 * 1024) |
|
#define | REG16_RSVD_512K REG16_RSVD_B(512 * 1024) |
|
#define | REG16_RSVD_1M REG16_RSVD_B(1024 * 1024) |
|
#define | REG32_RSVD_N(__N) REG_RSVD_U32N(__N) |
|
#define | REG32_RSVD_B(__BYTE_CNT) REG_RSVD_U32N(__BYTE_CNT >> 2) |
|
#define | REG32_RSVD_8B REG32_RSVD_B(8) |
|
#define | REG32_RSVD_16B REG32_RSVD_B(16) |
|
#define | REG32_RSVD_32B REG32_RSVD_B(32) |
|
#define | REG32_RSVD_64B REG32_RSVD_B(64) |
|
#define | REG32_RSVD_128B REG32_RSVD_B(128) |
|
#define | REG32_RSVD_256B REG32_RSVD_B(256) |
|
#define | REG32_RSVD_512B REG32_RSVD_B(512) |
|
#define | REG32_RSVD_1K REG32_RSVD_B(1024) |
|
#define | REG32_RSVD_2K REG32_RSVD_B(2048) |
|
#define | REG32_RSVD_4K REG32_RSVD_B(4096) |
|
#define | REG32_RSVD_8K REG32_RSVD_B(8192) |
|
#define | REG32_RSVD_16K REG32_RSVD_B(16 * 1024) |
|
#define | REG32_RSVD_32K REG32_RSVD_B(32 * 1024) |
|
#define | REG32_RSVD_64K REG32_RSVD_B(64 * 1024) |
|
#define | REG32_RSVD_128K REG32_RSVD_B(128 * 1024) |
|
#define | REG32_RSVD_256K REG32_RSVD_B(256 * 1024) |
|
#define | REG32_RSVD_512K REG32_RSVD_B(512 * 1024) |
|
#define | REG32_RSVD_1M REG32_RSVD_B(1024 * 1024) |
|