|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
typedef struct os_tcb
{
unsigned char *OSTCBStkPtr; /* Pointer to current top of stack */
struct os_tcb *OSTCBNext; //指向后一个任务控制块的指针
struct os_tcb *OSTCBPrev; //指向前一个任务控制块的指针
unsigned int OSTCBDly; /* Nbr ticks to delay task or, timeout waiting for event */
unsigned char OSTCBStat; /* Task status */
unsigned char OSTCBPrio; // 任务优先级 (0 == highest, 63 == lowest)
unsigned char OSTCBX; //用于快速访问就绪表的数据
unsigned char OSTCBY; /* Index into ready table corresponding to task priority */
unsigned char OSTCBBitX; /* Bit mask to access bit position in ready table */
unsigned char OSTCBBitY; /* Bit mask to access bit position in ready group */
} OS_TCB;
extern OS_TCB *OSTCBCur; //指向当前运行TCB的指针
初始化调用语句:
OSTCBCur = (OS_TCB *)0;
就这句调用的语句我不是很清楚, 指向当前运行TCB的指针清0,还是强制从0地址处,望大侠给小弟解释一下执行调用后,会发生什么变化,谢谢
|
|