/* * Copyright 2012-2018 by Texas Instruments Incorporated. * * All rights reserved. Property of Texas Instruments Incorporated. * Restricted rights to use, duplicate or disclose this code are * granted through contract. * */ /* THIS FILE WAS GENERATED BY ti.sysbios.genx */ /* * ======== mcbspMasterDigLpbk.cfg ======== * */ /* Load and use the required BIOS packages */ var BIOS = xdc.useModule('ti.sysbios.BIOS'); var Task = xdc.useModule('ti.sysbios.knl.Task'); var cache = xdc.useModule('ti.sysbios.hal.Cache'); var Idle = xdc.useModule('ti.sysbios.knl.Idle'); var Queue = xdc.useModule('ti.sysbios.knl.Queue'); var ECM = xdc.useModule('ti.sysbios.family.c64p.EventCombiner'); var CpIntc = xdc.useModule('ti.sysbios.family.c66.tci66xx.CpIntc'); var Memory = xdc.useModule('xdc.runtime.Memory'); var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem'); /* Load and use the System Package */ var System = xdc.useModule('xdc.runtime.System'); var SysStd = xdc.useModule('xdc.runtime.SysStd'); /* Create a default system heap using ti.bios.HeapMem. */ var heapMemParams1 = new HeapMem.Params; heapMemParams1.size = 32768; heapMemParams1.sectionName = "systemHeap"; Program.global.heap0 = HeapMem.create(heapMemParams1); /* This is the default memory heap. */ Memory.defaultHeapInstance = Program.global.heap0; /* * Create and install logger for the whole system. * Enable Event Groups here and registering of ISR for specific GEM INTC is done * using EventCombiner_dispatchPlug() and Hwi_eventMap() APIs */ ECM.eventGroupHwiNum[0] = 7; ECM.eventGroupHwiNum[1] = 8; ECM.eventGroupHwiNum[2] = 9; ECM.eventGroupHwiNum[3] = 10; /* Load and use the mcbsp, EDMA, PlatformLib etc. packages */ var Edma = xdc.loadPackage('ti.sdo.edma3.drv'); var devType = "k2g" var mcbsp = xdc.useModule('ti.drv.mcbsp.Settings'); mcbsp.deviceType = devType; /* Circular buffer size for System_printf() */ System.SupportProxy = SysStd;