]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/hyplnk/example/memoryMappedExample/k2h/c66/bios/memoryMappedExampleDevLib.cfg
hypnlk-lld: add to PDK
[processor-sdk/pdk.git] / packages / ti / drv / hyplnk / example / memoryMappedExample / k2h / c66 / bios / memoryMappedExampleDevLib.cfg
1 /*
2  *
3  * Copyright (C) 2010-2014 Texas Instruments Incorporated - http://www.ti.com/ 
4  * 
5  * 
6  *  Redistribution and use in source and binary forms, with or without 
7  *  modification, are permitted provided that the following conditions 
8  *  are met:
9  *
10  *    Redistributions of source code must retain the above copyright 
11  *    notice, this list of conditions and the following disclaimer.
12  *
13  *    Redistributions in binary form must reproduce the above copyright
14  *    notice, this list of conditions and the following disclaimer in the 
15  *    documentation and/or other materials provided with the   
16  *    distribution.
17  *
18  *    Neither the name of Texas Instruments Incorporated nor the names of
19  *    its contributors may be used to endorse or promote products derived
20  *    from this software without specific prior written permission.
21  *
22  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
23  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
24  *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25  *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
26  *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
27  *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
28  *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29  *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30  *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
31  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
32  *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33  *
34  */
36 var Edma                = xdc.loadPackage ("ti.sdo.edma3.drv.sample");
37 var drv                 = xdc.loadPackage ("ti.sdo.edma3.drv");
38 var rm                  = xdc.loadPackage ("ti.sdo.edma3.rm");
39 var Memory      = xdc.useModule('xdc.runtime.Memory');
40 var BIOS        = xdc.useModule('ti.sysbios.BIOS');
41 var HeapMem     = xdc.useModule('ti.sysbios.heaps.HeapMem');
42 var HeapBuf     = xdc.useModule('ti.sysbios.heaps.HeapBuf');
43 var Log         = xdc.useModule('xdc.runtime.Log');
44 var Task        = xdc.useModule('ti.sysbios.knl.Task');
45 var Semaphore   = xdc.useModule('ti.sysbios.knl.Semaphore');
46 var CpIntc      = xdc.useModule('ti.sysbios.family.c66.tci66xx.CpIntc');
47 var Hwi                 = xdc.useModule('ti.sysbios.family.c64p.Hwi');
48 var ECM         = xdc.useModule('ti.sysbios.family.c64p.EventCombiner');
49 var core        = xdc.useModule('ti.sysbios.hal.Core');
50 var halCache    = xdc.useModule('ti.sysbios.hal.Cache');
52 var devType = "k2h";
54 var System = xdc.useModule('xdc.runtime.System');
55 var hlink = xdc.useModule('ti.drv.hyplnk.Settings');
56 hlink.deviceType = devType;
57 /* Use the CSL module and indicate that INTC library will be used. */
58 var Csl = xdc.useModule('ti.csl.Settings');
59 Csl.deviceType = devType;
60 Csl.useCSLIntcLib = true;
62 Program.sectMap[".text"]  = "MSMCSRAM";
63 Program.sectMap[".const"] = "MSMCSRAM";
64 Program.sectMap[".init_array"] = "L2SRAM";
65 Program.sectMap[".csl_vect"] = "L2SRAM";
66 Program.stack = 1024*4 + 0x400;
68 /* Create data sections for specific memory locations */
69 Program.sectMap[".bss:hyplnkData"] = new Program.SectionSpec();
70 Program.sectMap[".bss:hyplnkData"].loadAddress=0x830000;
71 Program.sectMap[".bss:testData"] = "L2SRAM";
72 Program.sectMap[".bss:QMSSData"] = new Program.SectionSpec();
73 Program.sectMap[".bss:QMSSData"].loadAddress=0x850000;
74 Program.sectMap[".bss:packetData"] = new Program.SectionSpec();
75 Program.sectMap[".bss:packetData"].loadAddress=0x870000;
77 /* Load and use the CSL, CPPI and QMSS packages */
78 var Cppi = xdc.loadPackage('ti.drv.cppi'); 
79 var Qmss = xdc.loadPackage('ti.drv.qmss');