金牌会员
 
- 积分
- 1115
- 金钱
- 1115
- 注册时间
- 2016-8-26
- 在线时间
- 256 小时
|
1金钱
我把ucosii移植到MSP430F5438上,创建邮箱时报错void start_task(void *p_arg)
{
OS_CPU_SR cpu_sr=0;
p_arg=p_arg;
msg_key=OSMboxCreate((void*)0); //在这一句报错
sem_led1=OSSemCreate(0);
OSStatInit();
OS_ENTER_CRITICAL();
OSTaskCreate(Task_STARTVIEW,(void *)0,&task_startview_stk[TASK_STK_SIZE - 1],TASK_STARTVIEW_PRIO);
OSTaskCreate(beep_task,(void *)0,&START_TASK_STK[TASK_STK_SIZE - 1],BEEP_TASK_PRIO);
OSTaskSuspend(START_TASK_PRIO);
OS_EXIT_CRITICAL();
}
错误提示如下:
Error[Pe513]: a value of type "int" cannot be assigned to an entity of type "struct os_event *" C:\Documents and Settings\Administrator\×àÃæ\YT638M\app\app.c 66
我这一句大概是说:“一个“int”类型的值不能被分配到型”os_event实体结构”
请问有人知道这是怎么回事吗???
|
最佳答案
查看完整内容[请看2#楼]
有没有include "ucos_ii.h"? 如果有的话,再检查一下os_cfg.h里面OS_MBOX_EN是不是设成1。
|