[processor-sdk/pdk.git] / packages / ti / drv / pa / test / PAPktCapTest / k2h / c66 / bios / pcap_test_k2h.cfg
1 /*
2 * ======== cpsw_example.cfg ========
3 *
4 */
6 /* Load all required BIOS/XDC runtime packages */
7 var Memory = xdc.useModule('xdc.runtime.Memory');
8 var BIOS = xdc.useModule('ti.sysbios.BIOS');
9 var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
10 var HeapBuf = xdc.useModule('ti.sysbios.heaps.HeapBuf');
11 var Log = xdc.useModule('xdc.runtime.Log');
12 var Task = xdc.useModule('ti.sysbios.knl.Task');
13 var Hwi = xdc.useModule('ti.sysbios.family.c64p.Hwi');
14 var ECM = xdc.useModule('ti.sysbios.family.c64p.EventCombiner');
16 /* Load and use the CSL, CPPI and QMSS packages */
17 var devType = "k2h"
18 var Csl = xdc.useModule('ti.csl.Settings');
19 Csl.deviceType = devType;
20 /* Load the CPPI package */
21 var Cppi = xdc.loadPackage('ti.drv.cppi');
22 /* Load the QMSS package */
23 var Qmss = xdc.loadPackage('ti.drv.qmss');
25 /* Load the PA package */
26 var Pa = xdc.useModule('ti.drv.pa.Settings');
27 Pa.deviceType = devType;
29 /* Load the RM package */
30 var Rm = xdc.loadPackage('ti.drv.rm');
32 var System = xdc.useModule('xdc.runtime.System');
33 SysStd = xdc.useModule('xdc.runtime.SysStd');
34 System.SupportProxy = SysStd;
36 /* Below configuration is needed if the DSP executable needs to be loaded from MPM client from ARM */
37 /*
38 * The SysMin used here vs StdMin, as trace buffer address is required for
39 * Linux trace debug driver, plus provides better performance.
40 */
41 Program.global.sysMinBufSize = 0x8000;
42 var System = xdc.useModule('xdc.runtime.System');
43 var SysMin = xdc.useModule('xdc.runtime.SysMin');
44 System.SupportProxy = SysMin;
45 SysMin.bufSize = Program.global.sysMinBufSize;
47 /* Configure resource table for trace only.
48 Note that, it traceOnly parameter should not
49 be set if application is using MessageQ based IPC
50 to communicate between cores.
51 */
52 var Resource = xdc.useModule('ti.ipc.remoteproc.Resource');
53 Resource.loadSegment = Program.platform.dataMemory;
54 Resource.traceOnly = true;
56 /* end MPM Client Configurations */
58 /* Create a default system heap using ti.bios.HeapMem. */
59 var heapMemParams1 = new HeapMem.Params;
60 heapMemParams1.size = 8192 * 60;
61 heapMemParams1.sectionName = "systemHeap";
62 Program.global.heap0 = HeapMem.create(heapMemParams1);
64 /* This is the default memory heap. */
65 Memory.defaultHeapInstance = Program.global.heap0;
67 Program.sectMap["systemHeap"] = Program.platform.stackMemory;
69 /* Enable BIOS Task Scheduler */
70 BIOS.taskEnabled = true;
72 /*
73 * Enable Event Groups here and registering of ISR for specific GEM INTC is done
74 * using EventCombiner_dispatchPlug() and Hwi_eventMap() APIs
75 */
77 ECM.eventGroupHwiNum[0] = 7;
78 ECM.eventGroupHwiNum[1] = 8;
79 ECM.eventGroupHwiNum[2] = 9;
80 ECM.eventGroupHwiNum[3] = 10;
82 /* Memory map */
83 Program.sectMap[".text"] = "MSMCSRAM";
84 Program.sectMap[".const"] = "MSMCSRAM";
85 Program.sectMap[".qmss"] = "L2SRAM";
86 Program.sectMap[".cppi"] = "L2SRAM";