]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/uart/example/sample/omapl138/c674/bios/uart_test.cfg
uart-lld: add to PDK
[processor-sdk/pdk.git] / packages / ti / drv / uart / example / sample / omapl138 / c674 / bios / uart_test.cfg
1 /* THIS FILE WAS GENERATED BY ti.sysbios.genx */
3 /*
4  *  ======== uart_test.cfg ========
5  *
6  */
7 /*
8  * Copyright (C) 2016-2018 Texas Instruments Incorporated - http://www.ti.com/
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions
12  * are met:
13  *
14  * Redistributions of source code must retain the above copyright
15  * notice, this list of conditions and the following disclaimer.
16  *
17  * Redistributions in binary form must reproduce the above copyright
18  * notice, this list of conditions and the following disclaimer in the
19  * documentation and/or other materials provided with the
20  * distribution.
21  *
22  * Neither the name of Texas Instruments Incorporated nor the names of
23  * its contributors may be used to endorse or promote products derived
24  * from this software without specific prior written permission.
25  *
26  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
29  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
30  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
31  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
32  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
33  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37  *
38  */
40 /* Load all required BIOS/XDC runtime packages */
41 var Memory                      =   xdc.useModule('xdc.runtime.Memory');
42 var BIOS                        =   xdc.useModule('ti.sysbios.BIOS');
43 var HeapMem                     =   xdc.useModule('ti.sysbios.heaps.HeapMem');
44 var HeapBuf                     =   xdc.useModule('ti.sysbios.heaps.HeapBuf');
45 var Log                         =   xdc.useModule('xdc.runtime.Log');
46 var Task                        =   xdc.useModule('ti.sysbios.knl.Task');
47 var Semaphore                   =   xdc.useModule('ti.sysbios.knl.Semaphore');
48 //var CpIntc                      =   xdc.useModule('ti.sysbios.family.c66.tci66xx.CpIntc');
49 var Hwi                         =   xdc.useModule('ti.sysbios.family.c64p.Hwi');
50 var ECM                         =   xdc.useModule('ti.sysbios.family.c64p.EventCombiner');
51 var core                        =   xdc.useModule('ti.sysbios.hal.Core');
53 var devType = "omapl138"
55 /* Load the OSAL package */ 
56 var osType = "tirtos"
57 var Osal = xdc.useModule('ti.osal.Settings');
58 Osal.osType = osType;
59 Osal.socType = devType;
61 /*use CSL package*/
62 var Csl = xdc.loadPackage('ti.csl');
63 Csl.Settings.deviceType = devType;
65 /* Load the Board package and set the board name */
66 var Board = xdc.loadPackage('ti.board');
67 Board.Settings.boardName = "lcdkOMAPL138";
69 /* Load Profiling package */
70 /*var Utils = xdc.loadPackage('ti.utils.profiling');*/
72 /* Load the uart package */
73 var Uart = xdc.loadPackage('ti.drv.uart');
74 Uart.Settings.enableProfiling = false;
75 Uart.Settings.socType = devType;
77 var System                      =   xdc.useModule('xdc.runtime.System');
78 SysStd                          =   xdc.useModule('xdc.runtime.SysStd');
79 System.SupportProxy             =   SysStd;
81 /* Load and use the CSL packages */
82 var Csl = xdc.useModule('ti.csl.Settings');
83 Csl.deviceType = devType;
85 /* Create a default system heap using ti.bios.HeapMem. */
86 var heapMemParams1              =   new HeapMem.Params;
87 heapMemParams1.size             =   8192 * 25;
88 heapMemParams1.sectionName      =   "systemHeap";
89 Program.global.heap0            =   HeapMem.create(heapMemParams1);
92 /* No runtime stack checking is performed */
93 Task.checkStackFlag = false;
96 /* Reduce the number of task priorities */
97 Task.numPriorities = 4;
99 /* ================ Task configuration ================ */
102 /* This is the default memory heap. */
103 Memory.defaultHeapInstance      =   Program.global.heap0;
105 Program.sectMap["systemHeap"]   =   Program.platform.stackMemory;
106 Program.sectMap[".fardata:benchmarking"] = "APP_CACHED_DATA_MEM";
108 /*Entry point Memory alignment*/
109 Program.sectMap[".text:_c_int00"]                 = new Program.SectionSpec();
110 Program.sectMap[".text:_c_int00"].loadSegment     = "APP_CACHED_DATA_BLK1_MEM";
112 /****** IPC - Shared Memory Settings ********/
113 /* IPC packages */
115 var memmap = Program.cpu.memoryMap;
117 /*Startup = xdc.useModule('xdc.runtime.Startup');
118 Startup.firstFxns.$add('&myStartupFxn');*/
120 /* Enable BIOS Task Scheduler */
121 BIOS.taskEnabled                        =   true;
123 /*
124  * Enable Event Groups here and registering of ISR for specific GEM INTC is done
125  * using EventCombiner_dispatchPlug() and Hwi_eventMap() APIs
126  */
127 var exception                                   =       xdc.useModule('ti.sysbios.family.c64p.Exception');
128 exception.enablePrint = true;
130 /*
131  *  @(#) ti.sysbios.genx; 2, 0, 0, 0,275; 4-29-2009 15:45:06; /db/vtree/library/trees/avala/avala-k25x/src/
132  */
134 /* Define and add one Task Hook Set */
135 /*Task.addHookSet({
136         registerFxn: '&TaskRegisterId',
137         switchFxn: '&mySwitch',
138 });*/