[求助]Small RTOS的局部变量
在Small RTOS1.12.1中,如果任务存在局部变量是不是不必须得加上?CO?OS_CPU~任务函数?
是每一个存在局部变量的任务都得加吗?
假设存在任务函数Task1,Task2:
void Task1(void)
{
int temp1;
............
while(1){
fun1();
.............
}
}
void fun1()
{
int t1;
.................
}
void Task2(void)
{
int temp2;
.............
while(1){
fun2()
...........
}
}
void fun2()
{
int t2;
.............
}
对于这种情况,防止覆盖分析应该怎么写?
不好意思,再问个弱弱的问题:?CO?OS_CPU是什么意识?我没学过汇编,对底层的东西有点不了解?
谢谢!
发表时间:2008年11月3日13:37:45