如图使用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);