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.

cc26x2r1,sdk:simplelink_cc13x2_26x2_sdk_3_30_00_03. TI-RTOS Timer module Period参数设置为period in microsecs不能工作

Other Parts Discussed in Thread: SYSBIOS

如图使用period in microsecs定时1000ms作为periodtype,debug时定时器不能进入中断服务函数。而使用period in counts计数1000000可以正常进入中断服务函数。这是TI-RTOS的问题吗还是我设置的问题。

/* ================ Types configuration ================ */
var Types = xdc.useModule('xdc.runtime.Types');
var timer0Params = new Timer.Params();
timer0Params.instance.name = "timer0";
timer0Params.period = 1000;
timer0Params.periodType = xdc.module("ti.sysbios.interfaces.ITimer").PeriodType_COUNTS;
Program.global.timer0 = Timer.create(0, "&hwi_ledController", timer0Params);