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.

[参考译文] RTOS/CC3220S-LAUNCHXL:SWI 未定义

Guru**** 2563250 points
Other Parts Discussed in Thread: CC3220S-LAUNCHXL

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/727995/rtos-cc3220s-launchxl-swi-not-defined

器件型号:CC3220S-LAUNCHXL

工具/软件:TI-RTOS

您好!

我正在尝试在 CC3220S-LAUNCHXL 平台上完成 TI-RTOS 教程。  
一切正常、但现在我尝试添加一个 SWI、而软件不再编译。  
我在以下代码中遇到错误: swi_post (sw0);
错误提示 swi0未定义。  

但是、在我的 hello.cfg (我调制了 hello world 演示)中、所有设置都与示例解决方案文件中一样显示:

/*========================= 应用程序特定实例========================= *
var halHwi0Params = new halHwi.Params ();
halHwi0Params.instance.name ="timerHandle";
program.global.timerHandle = halHwi.create (21、"&timerInterrupt"、halHwi0Params);
var swi0Params = new swi.Params();
swi0Params.instance.name ="swi0";
sw0Params.priority = 1;
program.global.sw0 = swi.create ("&ledTogle"、swi0Params);

编译器声称未定义的问题可能是什么?

此致、

RemCo de Wit

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您在何处定义 swi0?
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我已经使用 XCONF 设置定义了 swi。  

    我通过将 global.h 包含在以下内容中来解决了我的问题:

    #include