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.

sysbios的定时器模块Timer_create()函数的应用

Other Parts Discussed in Thread: SYSBIOS

(1)编程内容如下

timerParams1.period = 1000;

timer = Timer_create(8, hwiFxn, &timerParams1, &eb);
if (timer == NULL)
{
System_abort("Timer create failed");
}

timerParams.period = 100;

timer = Timer_create(15, hwiFxn1, &timerParams, &eb);
if (timer == NULL)
{
System_abort("Timer create failed");
}

(2)问题

为什么用Timer_creat()函数不能同时挂两个不同的定时器中断呢?第二个定时器创建的时候,是创建失败的。

我看sysbios文档,说在不对外设timer进行设置的时候,Timer_creat()为系统提供时钟基准,是这个原因吗?只能支持一个定时器设置?求TI员工与广大网友帮一下忙