var Defaults = xdc.useModule('xdc.runtime.Defaults'); var Diags = xdc.useModule('xdc.runtime.Diags'); var Error = xdc.useModule('xdc.runtime.Error'); var Log = xdc.useModule('xdc.runtime.Log'); var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf'); var Main = xdc.useModule('xdc.runtime.Main'); var Memory = xdc.useModule('xdc.runtime.Memory') var SysMin = xdc.useModule('xdc.runtime.SysMin'); var System = xdc.useModule('xdc.runtime.System'); var Text = xdc.useModule('xdc.runtime.Text'); BIOS = xdc.useModule('ti.sysbios.BIOS'); Timer = xdc.useModule('ti.sysbios.hal.Timer'); HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem'); Program.argSize = 0x0; System.maxAtexitHandlers = 4; BIOS.heapSize = 0x2000; Program.stack = 0x1000; SysMin.bufSize = 0x400; System.SupportProxy = SysMin; // Configure a Timer to interrupt every 1s var timerParams = new Timer.Params(); timerParams.startMode = Timer.StartMode_AUTO; timerParams.period = 1000000; /* 1000000 uSecs = 1s */ var timer0 = Timer.create(Timer.ANY, '&timerFunc', timerParams);