#include <rtconfig.h>
#include <stdint.h>
#include <stddef.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/errno.h>
浏览该文件的源代码.
◆ RT_TRUE
◆ RT_FALSE
◆ RT_NULL
◆ RT_SPINLOCK_INIT
#define RT_SPINLOCK_INIT {0} |
◆ _SPIN_LOCK_DEBUG_OWNER
#define _SPIN_LOCK_DEBUG_OWNER |
( |
| lock | ) |
|
◆ _SPIN_UNLOCK_DEBUG_OWNER
#define _SPIN_UNLOCK_DEBUG_OWNER |
( |
| lock | ) |
|
◆ _SPIN_LOCK_DEBUG_CRITICAL
#define _SPIN_LOCK_DEBUG_CRITICAL |
( |
| lock | ) |
|
◆ _SPIN_UNLOCK_DEBUG_CRITICAL
#define _SPIN_UNLOCK_DEBUG_CRITICAL |
( |
| lock, |
|
|
| critical ) |
◆ RT_SPIN_LOCK_DEBUG
#define RT_SPIN_LOCK_DEBUG |
( |
| lock | ) |
|
值: do \
{ \
_SPIN_LOCK_DEBUG_OWNER(lock); \
_SPIN_LOCK_DEBUG_CRITICAL(lock); \
} while (0)
在文件 rttypes.h 第 230 行定义.
230#define RT_SPIN_LOCK_DEBUG(lock) \
231 do \
232 { \
233 _SPIN_LOCK_DEBUG_OWNER(lock); \
234 _SPIN_LOCK_DEBUG_CRITICAL(lock); \
235 } while (0)
◆ RT_SPIN_UNLOCK_DEBUG
#define RT_SPIN_UNLOCK_DEBUG |
( |
| lock, |
|
|
| critical ) |
值: do \
{ \
_SPIN_UNLOCK_DEBUG_OWNER(lock); \
_SPIN_UNLOCK_DEBUG_CRITICAL(lock, critical); \
} while (0)
在文件 rttypes.h 第 237 行定义.
237#define RT_SPIN_UNLOCK_DEBUG(lock, critical) \
238 do \
239 { \
240 _SPIN_UNLOCK_DEBUG_OWNER(lock); \
241 _SPIN_UNLOCK_DEBUG_CRITICAL(lock, critical); \
242 } while (0)
◆ RT_DEFINE_SPINLOCK
#define RT_DEFINE_SPINLOCK |
( |
| x | ) |
|
◆ rt_bool_t
RT-Thread basic data types definition boolean type
在文件 rttypes.h 第 35 行定义.
◆ rt_int8_t
◆ rt_int16_t
◆ rt_int32_t
◆ rt_uint8_t
◆ rt_uint16_t
◆ rt_uint32_t
◆ rt_int64_t
◆ rt_uint64_t
◆ rt_base_t
◆ rt_ubase_t
Nbit unsigned CPU related data type
在文件 rttypes.h 第 69 行定义.
◆ rt_size_t
◆ rt_ssize_t
Used for a count of bytes or an error indication
在文件 rttypes.h 第 79 行定义.
◆ rt_intptr_t
Type for signed pointer length integer
在文件 rttypes.h 第 80 行定义.
◆ rt_uintptr_t
Type for unsigned pointer length integer
在文件 rttypes.h 第 81 行定义.
◆ rt_err_t
◆ rt_time_t
◆ rt_tick_t
◆ rt_flag_t
◆ rt_dev_t
◆ rt_off_t
◆ rt_atomic_t
◆ rt_list_t
◆ rt_slist_t
◆ rt_ll_slist_t
◆ rt_spinlock_t