#include "ucos_ii.h"
unsigned int stack1[256];
//unsigned int stack2[256];
void Task1(void);
//void task2(void);
void Main(void)
{
OSInit();
OSTaskCreate(Task1, (void*)0,(OS_STK *)&stack1[256-1], 14);
//OSTaskCreate(task2,(void*)0,(OS_STK *)& stack2[256-1], 15);
OSStart();
while(1);
}
void Task1(void)
{
while(1)
{UartPrintf("\r\n task1 running");
OSTimeDly(200);}
}
为什么一直提示我OSTaskCreate的第一个参数implicit cast of pointer to non-equal pointer 我强制转换了 很多类型都失败了
急啊!!!!