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.

[参考译文] CCS/TMS320C6657:TMS320C6657

Guru**** 2585275 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/633817/ccs-tms320c6657-tms320c6657

器件型号:TMS320C6657
Thread 中讨论的其他器件:SYSBIOS

工具/软件:Code Composer Studio

大家好!

我不能每两秒使用消息输出创建中断。 可能是有人可以查看我的 C 代码。  

提前感谢您!

#include
#include
#include
#include

void timer_init();
void myIsr();

Timer_handle myTimer;


int main()

timer_init();

BIOS_start();

返回0;

void timer_init()

Timer_Params timerParams;

Timer_Params_init (&timerParams);

timerParams.runMode=Timer_RunMode_DYNAMIC;
timerParams.startMode = Timer_StartMode_Auto;
timerParams.period = 20000;
timerParams.periodType = Timer_PeriodType_micros;


myTimer = Timer_create (Timer_any、myIsr、&timerParams、NULL);
if (myTimer == NULL) System_printf ("计时器创建失败");

无效 myIsr()

system_printf ("tick\n");