No.95457 作者:leonner 邮件:sdjafkl@12232.com ID:44521 登陆:2次 文章数:1篇 最后登陆IP:61.55.210.154 最后登陆:2006/7/10 7:53:55 注册:2005/12/15 9:13:28 财富:106 发帖时间:2006/7/8 7:43:05 发贴者IP:60.0.226.217 标题:leonner:移植uc/os中OSTimeDly函数的问题,急! 摘要:No.95457移植uc/os中OSTimeDly函数的问题,急! 我在44b0x开发板上移植uc/os时遇到一个问题,测试代码如下:task1调用OSTimeDly后就死了,不能再次进入运行状态了,是不是时间调度出问题了,只要程序中没有OSTimeDly之类的时间调度函数,程序都没有问题,只有在task2中加入OSTimeDlyResume后,task1才能再次运行 #include "../SOURCE/includes.h" // uC/OS interface #include "../inc/44blib.h" #include "../inc/def.h" #include "../inc/44b.h" // allocate memory for tasks' stacks #ifdef SEMIHOSTED #define STACKSIZE (64+SEMIHOSTED_STACK_NEEDS) #else #define STACKSIZE 256 #endif OS_STK Stack1[STACKSIZE]= {0, }; OS_STK Stack2[STACKSIZE]= {0, }; ......
>>返回讨论的主题
|