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/TM4C1294NCPDT:TM4C1294NCPDT 计时器 TI-RTOS

Guru**** 2465700 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/662531/rtos-tm4c1294ncpdt-tm4c1294ncpdt-timer-ti-rtos

器件型号:TM4C1294NCPDT

工具/软件:TI-RTOS

您好!

我正在尝试在 TI-RTOS 中为我的 Tiva 板设置一个计时器中断。 我使用以下包含文件和代码来创建计时器:

#include 

。

。

。

var m3Hwi = xdc.useModule('ti.sysbios.family.arm.m3.Hwi');

var m3Hwi0Params = new m3Hwi.Params ();
m3Hwi0Params.instance.name ="IntTimer";
Program.global.IntTimer = m3Hwi.create (39、"&task_clock"、m3Hwi0Params); 

我得到的误差如下所示。 我所附的代码与.cfg GUI 生成的代码看起来相同。 Appropirate #include 文件可以修复它吗? 我的最终目标是使用.StartMode_user 模式和 Timer_start ()函数。

我使用 CCS7.3、2.16.1.14 RTOS、3.32.0.06 XDC。

非常感谢。

 

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

    其中一个错误表示缺少";"。。 如果正确、所有其他错误都可能与此直接相关。 请检查您的代码以尝试查找缺少的';'、然后在修复后重新编译。 (提示:查看代码窗口中红色 x 开始出现的位置...)