]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/uart/test/k2l/c66/bios/uart_test_edma.cfg
uart-lld: add to PDK
[processor-sdk/pdk.git] / packages / ti / drv / uart / test / k2l / c66 / bios / uart_test_edma.cfg
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 */
11 var Edma                        = xdc.loadPackage ("ti.sdo.edma3.drv.sample");
12 var drv                 = xdc.loadPackage ("ti.sdo.edma3.drv");
13 var rm                  = xdc.loadPackage ("ti.sdo.edma3.rm");
15 /*
16  *  ======== uart_test.cfg ========
17  *
18  */
20 /* Load all required BIOS/XDC runtime packages */
21 var Memory                      =   xdc.useModule('xdc.runtime.Memory');
22 var BIOS                        =   xdc.useModule('ti.sysbios.BIOS');
23 var HeapMem                     =   xdc.useModule('ti.sysbios.heaps.HeapMem');
24 var HeapBuf                     =   xdc.useModule('ti.sysbios.heaps.HeapBuf');
25 var Log                         =   xdc.useModule('xdc.runtime.Log');
26 var Task                        =   xdc.useModule('ti.sysbios.knl.Task');
27 var Semaphore                   =   xdc.useModule('ti.sysbios.knl.Semaphore');
28 var CpIntc                      = xdc.useModule('ti.sysbios.family.c66.tci66xx.CpIntc');
29 var Hwi                                 =       xdc.useModule('ti.sysbios.family.c64p.Hwi');
30 var ECM                                         =       xdc.useModule('ti.sysbios.family.c64p.EventCombiner');
31 var core      = xdc.useModule('ti.sysbios.hal.Core');
33 var devType = "k2l"
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;
41 /*use CSL package*/
42 var Csl = xdc.loadPackage('ti.csl');
43 Csl.Settings.deviceType = devType;
45 /* Load Profiling package */
46 var Utils = xdc.loadPackage('ti.utils.profiling');
49 /* Load the I2C package */ 
50 var I2c              = xdc.loadPackage('ti.drv.i2c'); 
51 I2c.Settings.socType = devType; 
53 /* Load the uart package */
54 var Uart = xdc.loadPackage('ti.drv.uart');
55 Uart.Settings.enableProfiling = true;
56 Uart.Settings.socType = devType;
57 Uart.Settings.useDma = "true";
59 /* Load the Board package and set the board name */
60 var Board = xdc.loadPackage('ti.board');
61 Board.Settings.boardName = "evmK2L";
63 var System                      =   xdc.useModule('xdc.runtime.System');
64 SysStd                          =   xdc.useModule('xdc.runtime.SysStd');
65 System.SupportProxy             =   SysStd;
67 /* Load and use the CSL packages */
68 var Csl = xdc.useModule('ti.csl.Settings');
69 Csl.deviceType = devType;
71 /* Create a default system heap using ti.bios.HeapMem. */
72 var heapMemParams1              =   new HeapMem.Params;
73 heapMemParams1.size             =   8192 * 25;
74 heapMemParams1.sectionName      =   "systemHeap";
75 Program.global.heap0            =   HeapMem.create(heapMemParams1);
78 /* No runtime stack checking is performed */
79 Task.checkStackFlag = false;
82 /* Reduce the number of task priorities */
83 Task.numPriorities = 4;
85 /* ================ Task configuration ================ */
88 /* This is the default memory heap. */
89 Memory.defaultHeapInstance      =   Program.global.heap0;
91 Program.sectMap["systemHeap"]   =   Program.platform.stackMemory;
92 Program.sectMap[".fardata:benchmarking"] = "DDR3";
94 /****** IPC - Shared Memory Settings ********/
95 /* IPC packages */
97 ECM.eventGroupHwiNum[0] = 7;
98 ECM.eventGroupHwiNum[1] = 8;
99 ECM.eventGroupHwiNum[2] = 9;
100 ECM.eventGroupHwiNum[3] = 10;
102 /*Startup = xdc.useModule('xdc.runtime.Startup');
103 Startup.firstFxns.$add('&myStartupFxn');*/
105 /* Enable BIOS Task Scheduler */
106 BIOS.taskEnabled                        =   true;
108 /*
109  * Enable Event Groups here and registering of ISR for specific GEM INTC is done
110  * using EventCombiner_dispatchPlug() and Hwi_eventMap() APIs
111  */
112 var exception                                   =       xdc.useModule('ti.sysbios.family.c64p.Exception');
113 exception.enablePrint = true;
115 /*
116  *  @(#) ti.sysbios.genx; 2, 0, 0, 0,275; 4-29-2009 15:45:06; /db/vtree/library/trees/avala/avala-k25x/src/
117  */
120 /* Define and add one Task Hook Set */
121 Task.addHookSet({
122         registerFxn: '&TaskRegisterId',
123         switchFxn: '&mySwitch',
124 });