hi all,
i am trying to use timers in a SYS/BIOS program. I created statically a timer using XGconf, i configured it's properties, but i cannot obtain it's handler to use the instruction:
Timer_start( handler); in my source code.
Normally, the handler is the returned object from the function Timer.create(.......) . here is a part of my cfg script:
var instti_sysbios_hal_Timer0Params0 = new ti_sysbios_hal_Timer.Params();
instti_sysbios_hal_Timer0Params0.instance.name = "myTimer";
instti_sysbios_hal_Timer0Params0.startMode = xdc.module("ti.sysbios.interfaces.ITimer").StartMode_USER;
instti_sysbios_hal_Timer0Params0.period = 400000000;
instti_sysbios_hal_Timer0Params0.periodType = xdc.module("ti.sysbios.interfaces.ITimer").PeriodType_COUNTS;
Program.global.myTimer = ti_sysbios_hal_Timer.create(1, "&myTick", instti_sysbios_hal_Timer0Params0);
i tried 'myTimer' as an argument for Timer_start(), but the program does not recognize it.
so what is the handler of a timer created statically?