typedef unsigned char
BOOLEAN;
typedef unsigned char
INT8U; /* Unsigned 8 bit
quantity */
typedef
signed char INT8S; /*
Signed 8 bit quantity */
typedef
unsigned int INT16U; /* Unsigned 16 bit
quantity */
typedef
signed int INT16S; /*
Signed 16 bit quantity */
typedef
unsigned long INT32U; /* Unsigned 32 bit
quantity */
typedef
signed long INT32S; /*
Signed 32 bit quantity */
typedef
float
FP32; /* Single precision floating
point */
typedef
double
FP64; /* Double precision
floating point */
typedef unsigned int
OS_STK; /* Each stack entry is 16-bit
wide */
typedef unsigned short
OS_CPU_SR; /* Define size of CPU status register (PSW = 16
bits) */
#define
BYTE
INT8S /* Define data types for
backward compatibility ... */
#define
UBYTE
INT8U /* ... to uC/OS
V1.xx. Not actually needed for ... */
#define
WORD
INT16S /* ...
uC/OS-II. */
#define
UWORD
INT16U
#define
LONG
INT32S
#define
ULONG INT32U
系统总是把最低优先级别号OS_LOWEST_PRIO自动赋给空闲任务;如果程序中使用了统计任务,系统会把优先级别为OS_LOWEST_PRIO-1的级别号自动赋给统计任务。
原文:http://www.cnblogs.com/chasing/p/3514843.html