]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/tcp3d-lld.git/blob - test/k2k/c66/bios/tcp3d_drv_test.cfg
NOTICE OF RELOCATION
[keystone-rtos/tcp3d-lld.git] / test / k2k / c66 / bios / tcp3d_drv_test.cfg
1 /*
2  * ======== tcp3d_drv_test.cfg ========
3  */
5 /* IPC packages */
6 var ListMP = xdc.useModule('ti.sdo.ipc.ListMP');
7 var GateMP = xdc.useModule('ti.sdo.ipc.GateMP');
8 var SharedRegion = xdc.useModule('ti.sdo.ipc.SharedRegion');
9 var HeapMemMP = xdc.useModule('ti.sdo.ipc.heaps.HeapMemMP');
10 var MultiProc = xdc.useModule('ti.sdo.utils.MultiProc');
11 var Ipc         = xdc.useModule('ti.sdo.ipc.Ipc');
13 /*
14  * Configure System to use SysMin
15  */
16 System = xdc.useModule('xdc.runtime.System');
17 SysStd  = xdc.useModule('xdc.runtime.SysStd');
18 System.SupportProxy = xdc.useModule('xdc.runtime.SysMin')
19 System.SupportProxy = SysStd;
20 System.extendedFormats = "%$S%f";
22 /* Set the system stack - 0x2000 */
23 Program.stack = 0x4000;
25 /*
26  * Pull in BIOS modules
27  */
28 xdc.useModule('ti.sysbios.BIOS');
29 xdc.useModule('ti.sysbios.hal.Timer');
30 xdc.useModule('ti.sysbios.knl.Semaphore');
31 xdc.useModule('ti.sysbios.knl.Swi');
32 xdc.useModule('ti.sysbios.knl.Task');
33 xdc.useModule('ti.sysbios.hal.Cache');
34 xdc.useModule('xdc.runtime.Log');
35 xdc.useModule('xdc.runtime.Error');
37 /*
38  * Memory related modules and then allocate as needed
39  */
40 var Memory = xdc.useModule('xdc.runtime.Memory');
41 var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
43 /* Use HeapMem for default heap manager and give it 49152 (0xC000)
44  * bytes to work with.
45  */
46 Program.sectMap["systemHeap"] = Program.platform.dataMemory;
47 var heapMemParams = new HeapMem.Params;
48 heapMemParams.size = 0x18000;
49 heapMemParams.sectionName = "systemHeap";
50 Memory.defaultHeapInstance = HeapMem.create(heapMemParams);
52 /*
53  * Creating Heap Memories for using with test application
54  */
55 /* Create a heap for TCP3D input/output data using ti.bios.HeapMem. */
56 /* Program.sectMap["tcp3DataSection"] = {loadSegment: "MSMCSRAM"};
57 var heapMemParams1 = new HeapMem.Params;
58 heapMemParams1.size = 0x180000;
59 heapMemParams1.sectionName = "tcp3DataSection";
60 Program.global.tcp3dDataHeap = HeapMem.create(heapMemParams1); */
62 /* Create a heap for TCP3D driver using ti.bios.HeapMem. */
63 Program.sectMap["tcp3DriverSection"] = Program.platform.dataMemory;
64 var heapMemParams2 = new HeapMem.Params;
65 heapMemParams2.size = 0x4000;
66 heapMemParams2.sectionName = "tcp3DriverSection";
67 Program.global.tcp3dDrvHeap = HeapMem.create(heapMemParams2);
69 /* To avoid wasting shared memory for Notify and MessageQ transports */
70 for (var i = 0; i < MultiProc.numProcessors; i++) {
71     Ipc.setEntryMeta({
72         remoteProcId: i,
73         setupNotify: false,
74         setupMessageQ: false,
75     });
76 }
79 SharedRegion.setEntryMeta(0,
80     { base: 0x0C000000,
81       len: 0x200000,
82       ownerProcId: 0,
83       cacheLineSize: 64,
84       isValid: true,
85       name: "sharemem",
86     });
88 /*
89  * Setup the Logger for Driver
90  */
91 var LoggerSys = xdc.useModule('xdc.runtime.LoggerSys');
92 var LoggerSys0Params0 = new LoggerSys.Params;
93 LoggerSys0Params0.instance.name = 'tcp3dDrvLog';
94 Program.global.tcp3dDrvLog = LoggerSys.create(LoggerSys0Params0);
96 /*
97  * Pull in modules for EDMA3 LLD use
98  */
99 xdc.useModule('ti.sysbios.family.c64p.Hwi');
100 xdc.useModule('ti.sysbios.family.c66.tci66xx.CpIntc');
101 var ECM = xdc.useModule('ti.sysbios.family.c64p.EventCombiner');
103 /*
104  * Enable Event Groups here and registering of ISR for specific GEM INTC is done
105  * using EventCombiner_dispatchPlug() and Hwi_eventMap() APIs
106  */
107 ECM.eventGroupHwiNum[0] = 7;
108 ECM.eventGroupHwiNum[1] = 8;
109 ECM.eventGroupHwiNum[2] = 9;
110 ECM.eventGroupHwiNum[3] = 10;
112 /*******************************************************************
113  * Other Dependent packages
114  *******************************************************************/
115 /*xdc.loadPackage('ti.wbi.common.api');*/
116 xdc.loadPackage('ti.sdo.edma3.drv');
118 /* Load the CSL package */
119 var Csl = xdc.useModule('ti.csl.Settings');
121 /* Device specific configuration */
122 var devName = "k2k";
123 Csl.deviceType = devName;
125 /* end of file */