1 /*
2 * Copyright 2009 by Texas Instruments Incorporated.
3 *
4 * All rights reserved. Property of Texas Instruments Incorporated.
5 * Restricted rights to use, duplicate or disclose this code are
6 * granted through contract.
7 *
8 */
10 /* THIS FILE WAS GENERATED BY ti.sysbios.genx */
12 /*
13 * ======== bcp_test.cfg ========
14 *
15 */
17 /* Load all required BIOS/XDC runtime packages */
18 var Memory = xdc.useModule('xdc.runtime.Memory');
19 var BIOS = xdc.useModule('ti.sysbios.BIOS');
20 var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
21 var HeapBuf = xdc.useModule('ti.sysbios.heaps.HeapBuf');
22 var Log = xdc.useModule('xdc.runtime.Log');
23 var Task = xdc.useModule('ti.sysbios.knl.Task');
24 var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
25 var Hwi = xdc.useModule('ti.sysbios.family.c64p.Hwi');
26 var ECM = xdc.useModule('ti.sysbios.family.c64p.EventCombiner');
27 var CpIntc = xdc.useModule('ti.sysbios.family.c66.tci66xx.CpIntc');
28 var devType = "k2g"
29 var socType = "k2g";
31 /*use CSL package*/
32 var Csl = xdc.loadPackage('ti.csl');
33 Csl.Settings.deviceType = socType;
35 /* Load the OSAL package */
36 var osType = "tirtos"
37 var Osal = xdc.useModule('ti.osal.Settings');
38 Osal.osType = osType;
39 Osal.socType = devType;
42 /* Load Profiling package */
43 var Utils = xdc.loadPackage('ti.utils.profiling');
45 /* Load the MMCSD package */
46 var Mmcsd = xdc.loadPackage('ti.drv.mmcsd');
47 Mmcsd.Settings.enableProfiling = true;
48 var Fatfs = xdc.loadPackage('ti.fs.fatfs');
50 /* Load the GPIO package */
51 var GPIO = xdc.loadPackage('ti.drv.gpio');
53 /* Load the UART package */
54 var UART = xdc.loadPackage('ti.drv.uart');
55 UART.Settings.socType = devType;
57 /* Load the Board package and set the board name */
58 var Board = xdc.loadPackage('ti.board');
59 Board.Settings.boardName = "evmK2G";
61 var System = xdc.useModule('xdc.runtime.System');
62 SysStd = xdc.useModule('xdc.runtime.SysStd');
63 System.SupportProxy = SysStd;
64 System.extendedFormats += "%f";
65 /* Create a default system heap using ti.bios.HeapMem. */
66 var heapMemParams1 = new HeapMem.Params;
67 heapMemParams1.size = 8192 * 25;
68 heapMemParams1.sectionName = "systemHeap";
69 Program.global.heap0 = HeapMem.create(heapMemParams1);
72 /* No runtime stack checking is performed */
73 Task.checkStackFlag = false;
76 /* Reduce the number of task priorities */
77 Task.numPriorities = 4;
80 /* This is the default memory heap. */
81 Memory.defaultHeapInstance = Program.global.heap0;
83 Program.sectMap["systemHeap"] = Program.platform.stackMemory;
85 /****** IPC - Shared Memory Settings ********/
86 /* IPC packages */
87 ///var Ipc = xdc.useModule('ti.sdo.ipc.Ipc');
88 ///var Settings = xdc.module('ti.sdo.ipc.family.Settings');
89 ///var ListMP = xdc.useModule('ti.sdo.ipc.ListMP');
90 ///var GateMP = xdc.useModule('ti.sdo.ipc.GateMP');
91 ///var SharedRegion = xdc.useModule('ti.sdo.ipc.SharedRegion');
92 ///var HeapMemMP = xdc.useModule('ti.sdo.ipc.heaps.HeapMemMP');
93 ///var MultiProc = xdc.useModule('ti.sdo.utils.MultiProc');
95 var memmap = Program.cpu.memoryMap;
97 /*Startup = xdc.useModule('xdc.runtime.Startup');
98 Startup.firstFxns.$add('&myStartupFxn');*/
100 /* Configure the shared memory heap for shared memory allocations required by the
101 * CPPI and QMSS Libraries */
102 ///SharedRegion.translate = false;
104 /* Create a shared memory heap */
106 /*
107 MultiProc.setConfig(null, ["CORE0"]);
110 Ipc.procSync = Ipc.ProcSync_ALL;
113 for (var i = 0; i < MultiProc.numProcessors; i++) {
114 Ipc.setEntryMeta({
115 remoteProcId: i,
116 setupNotify: false,
117 setupMessageQ: false,
118 });
119 }
122 SharedRegion.setEntryMeta(0,
123 { base: 0x0C010000,
124 len: 0x00100000,
125 ownerProcId: 0,
126 isValid: true,
127 name: "sharemem",
128 });
129 */
131 /* Enable BIOS Task Scheduler */
132 BIOS.taskEnabled = true;
134 /*
135 * Enable Event Groups here and registering of ISR for specific GEM INTC is done
136 * using EventCombiner_dispatchPlug() and Hwi_eventMap() APIs
137 */
138 var exception = xdc.useModule('ti.sysbios.family.c64p.Exception');
139 exception.enablePrint = true;
141 Program.sectMap[".text"] = "DDR3";
142 Program.sectMap[".const"] = "DDR3";
143 Program.sectMap[".plt"] = "DDR3";
144 Program.sectMap[".far"] = "DDR3";
145 Program.sectMap[".bss:.tx_buf"] = "DDR3";
146 Program.sectMap[".bss:.rx_buf"] = "DDR3";
147 Program.sectMap[".fardata:benchmarking"] = "DDR3";
148 Program.sectMap["BOARD_IO_DELAY_DATA"] = "MSMCSRAM";
149 Program.sectMap["BOARD_IO_DELAY_CODE"] = "MSMCSRAM";
151 /*
152 * @(#) ti.sysbios.genx; 2, 0, 0, 0,275; 4-29-2009 15:45:06; /db/vtree/library/trees/avala/avala-k25x/src/
153 */
155 /* Define and add one Task Hook Set */
156 Task.addHookSet({
157 registerFxn: '&TaskRegisterId',
158 switchFxn: '&mySwitch',
159 });