Other Parts Discussed in Thread: SYSBIOS
I am running a SYS/BIOS application on the DSP of the 816x. I wanted to use TIMER0 as the source of the SYSBIOS system clock -- that's not TIMER1 on the 816x but rather the first timer on the platform -- but it looks BIOS is already using TIMER0 for one-shot timers. My intention was to have the timer wake up SYS/BIOS every 1ms but what actually happens is my timer handler gets called twice for every ms. Is TIMER0 reserved for SYSBIOS purposes?
Here is my SYS/BIOS timer configuration:
/* Create myTimer as source of Hwi */
var Timer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');
var timerParams = new Timer.Params();
timerParams.startMode = Timer.StartMode_USER;
timerParams.runMode = Timer.RunMode_CONTINUOUS;
//timerParams.extFreq.lo = 27000000;
timerParams.period = 1000; // 1ms
Program.global.myTimer = Timer.create(0, "&myTimerFunc", timerParams);
here is my timer handler:
Void myTimerFunc()
{
Clock_tick();
}