-
初始化任务堆栈 - uCOS-II程序设计基
资源介绍
任务堆栈初始化
-函数
TaskEntry
task
0
0
0
0
0
0
0
0
0
0
0
0
0x1f
pdata
0
PC
LR
R12
R11
R10
R9
R8
R7
R6
R5
R4
R3
R2
OsEnterSum
CPSR
R0
R1
stk = &OSTaskIdleStk
[(OS_TASK_IDLE_STK_SIZE-1)-17]
OS_STK *OSTaskStkInit(void (*task)(void *pd),
void *pdata, OS_STK *ptos, INT16U opt)
{
OS_STK *stk;
extern void TaskEntry(void);
opt = opt;
stk = ptos;
*stk = (OS_STK) TaskEntry;
*--stk = (OS_STK) task;
*--stk = 0;
*--stk = 0;
*--stk = 0;
*--stk = 0;
*--stk = 0;
*--stk = 0;
*--stk = 0;
*--stk = 0;
*--stk = 0;
*--stk = 0;
*--stk = 0;
*--stk = 0;
*--stk = (unsigned int) pdata;
*--stk = 0x1f;
*--stk = 0;
return (stk);
}
ptos = &OSTaskIdleStk
[OS_TASK_IDLE_STK_SIZE-1]
内存高端
内存低端
堆栈增长方向
stk
ptos
- 上一篇: GRAPHPAD PRISM FOR MAC
- 下一篇: Office官方卸载工具