初级会员

- 积分
- 50
- 金钱
- 50
- 注册时间
- 2015-1-5
- 在线时间
- 16 小时
|

楼主 |
发表于 2017-8-21 16:59:27
|
显示全部楼层
void AppStartTask (void *p_arg)
{
static UINT8 i = 0;
p_arg = p_arg;
OSTaskCreate(youtask, (void *)0, (OS_STK *)&YOUTASK_STK[YOUTASK_SIZE-1], YOUTASK_PRIO);
while(1)
{
if(i > 50)
{
printf("\n");
i = 0;
}
i++;
printf("M");
OSTimeDlyHMSM(0, 0, 0, 500);
if(i == 30)
{
while(OSTaskDelReq(YOUTASK_PRIO) != OS_TASK_NOT_EXIST)
{
printf("MyTask:我要求YouTask自己删除自己\n");
OSTimeDly(1);
break;
}
printf("M");
}
else
continue;
}
}
您看看,是不是那个出问题了 |
|