[processor-sdk/performance-audio-sr.git] / psdk_cust / libarch_k2g_1_0_1_0 / examples / dsponly / k2g / ccs_project / k2g_config.cfg
diff --git a/psdk_cust/libarch_k2g_1_0_1_0/examples/dsponly/k2g/ccs_project/k2g_config.cfg b/psdk_cust/libarch_k2g_1_0_1_0/examples/dsponly/k2g/ccs_project/k2g_config.cfg
--- /dev/null
@@ -0,0 +1,129 @@
+/*
+ * Copyright (c) 2012-2015, Texas Instruments Incorporated
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/* Import configuration for using FC EDMA */
+/*
+var RMAN = xdc.useModule('ti.sdo.fc.rman.RMAN');
+RMAN.useDSKT2 = false;
+RMAN.persistentAllocFxn = "EdmaMgr_heap_alloc";
+RMAN.persistentFreeFxn = "EdmaMgr_heap_free";
+var EdmaMgr = xdc.useModule('ti.sdo.fc.edmamgr.EdmaMgr');
+xdc.useModule('ti.sdo.fc.global.Settings').profile = "release";
+*/
+
+/* application uses the following modules and packages */
+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 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');
+
+var BIOS = xdc.useModule('ti.sysbios.BIOS');
+var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
+var Cache = xdc.useModule('ti.sysbios.hal.Cache');
+var Timer = xdc.useModule('ti.sysbios.hal.Timer');
+var HeapBuf = xdc.useModule('ti.sysbios.heaps.HeapBuf');
+var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
+var Clock = xdc.useModule('ti.sysbios.knl.Clock');
+var Idle = xdc.useModule('ti.sysbios.knl.Idle');
+var Queue = xdc.useModule('ti.sysbios.knl.Queue');
+var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
+var Task = xdc.useModule('ti.sysbios.knl.Task');
+var Load = xdc.useModule('ti.sysbios.utils.Load');
+var CpIntc = xdc.useModule('ti.sysbios.family.c66.tci66xx.CpIntc')
+var ECM = xdc.useModule('ti.sysbios.family.c64p.EventCombiner');
+
+
+/***************************/
+/* SECTION MAPPING */
+/***************************/
+var program = xdc.useModule('xdc.cfg.Program');
+
+program.sectMap[".args"] = new Program.SectionSpec();
+program.sectMap[".bss"] = new Program.SectionSpec();
+program.sectMap[".cinit"] = new Program.SectionSpec();
+program.sectMap[".cio"] = new Program.SectionSpec();
+program.sectMap[".const"] = new Program.SectionSpec();
+program.sectMap[".data"] = new Program.SectionSpec();
+program.sectMap[".far"] = new Program.SectionSpec();
+program.sectMap[".fardata"] = new Program.SectionSpec();
+program.sectMap[".neardata"] = new Program.SectionSpec();
+program.sectMap[".rodata"] = new Program.SectionSpec();
+program.sectMap[".stack"] = new Program.SectionSpec();
+program.sectMap[".switch"] = new Program.SectionSpec();
+program.sectMap[".sysmem"] = new Program.SectionSpec();
+program.sectMap[".text"] = new Program.SectionSpec();
+program.sectMap[".IRAM_DATA"] = new Program.SectionSpec();
+program.sectMap[".DDR_DATA"] = new Program.SectionSpec();
+program.sectMap[".MSMC_DATA"] = new Program.SectionSpec();
+program.sectMap[".tdata"] = new Program.SectionSpec();
+program.sectMap[".tbss"] = new Program.SectionSpec();
+
+// Must place these sections in core local memory
+program.sectMap[".args"].loadSegment = "L2SRAM";
+program.sectMap[".cio"].loadSegment = "L2SRAM";
+
+// Variables in the following data sections can potentially be 'shared' in
+// OpenMP. These sections must be placed in shared memory.
+program.sectMap[".bss"].loadSegment = "DDR3";
+program.sectMap[".cinit"].loadSegment = "DDR3";
+program.sectMap[".const"].loadSegment = "DDR3";
+program.sectMap[".data"].loadSegment = "DDR3";
+program.sectMap[".far"].loadSegment = "DDR3";
+program.sectMap[".fardata"].loadSegment = "DDR3";
+program.sectMap[".neardata"].loadSegment = "DDR3";
+program.sectMap[".rodata"].loadSegment = "DDR3";
+program.sectMap[".sysmem"].loadSegment = "DDR3";
+program.sectMap[".IRAM_DATA"].loadSegment = "L2SRAM";
+program.sectMap[".DDR_DATA"].loadSegment = "DDR3";
+program.sectMap[".MSMC_DATA"].loadSegment = "MSMCSRAM";
+program.sectMap[".tdata"].loadSegment = "DDR3";
+program.sectMap[".tbss"].loadSegment = "DDR3";
+
+// Code sections shared by cores - place in shared memory to avoid duplication
+program.sectMap[".switch"].loadSegment = program.platform.codeMemory;
+program.sectMap[".text"].loadSegment = program.platform.codeMemory;
+
+// Size the default stack and place it in L2SRAM
+var deviceName = String(Program.cpu.deviceName);
+if (deviceName.search("DRA7XX") == -1) { program.stack = 0x20000; }
+else { program.stack = 0x8000; }
+
+program.sectMap[".stack"].loadSegment = "L2SRAM";
+
+// Since there are no arguments passed to main, set .args size to 0
+program.argSize = 0;
+