工具/软件:TI-RTOS
我在1 MS计时器ISR中发布SWI,以启动低优先级的10毫秒流程。
Wight XGCONF I设置
XGConf在cfg文件中创建了以下行
我已通过编程方式进行设置
但无法生成错误
有什么想法? 正在进行动态配置,但是???
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:TI-RTOS
我在1 MS计时器ISR中发布SWI,以启动低优先级的10毫秒流程。
Wight XGCONF I设置
XGConf在cfg文件中创建了以下行
我已通过编程方式进行设置
但无法生成错误
有什么想法? 正在进行动态配置,但是???
抱歉,我所附的所有图片都被删除了。
正在重试XGConf GUI
cfg文件中的行为
VAR swi0Params =新Swi.Params();
swi0Params.instance.name ="htimer10mSSWI";
swi0Params.priority = 14;
program.global.htimer10mSSWI = swi.create("&timer10mS",swi0Params);
程序中的实例是
/*
* ========= 10ms过程=========
*/
void timer10mS (UArg a0,UArg A1)
{
uiTicks10mS++;
如果(uiTicks10mS < 50)
{
GpioDataRegs.GPASET.bit.GPIO15 = 1;/*绿色LED DS2开*/
GpioDataRegs.GPBCLEAR.bit.GPIO58 = 1; /*红色LED DS1关闭*/
}
否则
{
GpioDataRegs.GPBSET.bit.GPIO58 = 1;/*红色LED DS1开*/
GpioDataRegs.GPACLEAR.bit.GPIO15 = 1; /*绿色LED DS2关闭*/
}
IF (uiTicks10mS >= 100)
{
uiTicks10mS=0;
}
}
我收到的构建错误是
"../Solar_Tracker_Main.c",第76行:错误#20:标识符"htimer10mSSWI"未定义