学习UCOSII碰到一些C语言的疑问
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;
externOS_TCB *OSTCBCur; //指向当前运行TCB的指针
初始化调用语句:
OSTCBCur = (OS_TCB *)0;
就这句调用的语句我不是很清楚, 指向当前运行TCB的指针清0,还是强制从0地址处,望大侠给小弟解释一下执行调用后,会发生什么变化,谢谢
运行了下TCB的指针清0
具体不知道
自己试一下吧 我只是路过打酱油的{:5_97:}
页:
[1]