]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/uart/test/j7200/uartUnitTest_r5.cfg
Merge pull request #46 in PROCESSOR-SDK/pdk from review_PRSDK-7418 to master
[processor-sdk/pdk.git] / packages / ti / drv / uart / test / j7200 / uartUnitTest_r5.cfg
2 /* =============================================================================
3  *   Copyright (c) Texas Instruments Incorporated 2019
4  *
5  *  Redistribution and use in source and binary forms, with or without
6  *  modification, are permitted provided that the following conditions
7  *  are met:
8  *
9  *    Redistributions of source code must retain the above copyright
10  *    notice, this list of conditions and the following disclaimer.
11  *
12  *    Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the
15  *    distribution.
16  *
17  *    Neither the name of Texas Instruments Incorporated nor the names of
18  *    its contributors may be used to endorse or promote products derived
19  *    from this software without specific prior written permission.
20  *
21  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24  *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25  *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26  *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27  *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28  *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29  *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31  *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  */
33 var Defaults = xdc.useModule('xdc.runtime.Defaults');
34 var Diags = xdc.useModule('xdc.runtime.Diags');
35 var Error = xdc.useModule('xdc.runtime.Error');
36 var Log = xdc.useModule('xdc.runtime.Log');
37 var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
38 var Main = xdc.useModule('xdc.runtime.Main');
39 var Memory = xdc.useModule('xdc.runtime.Memory')
40 var System = xdc.useModule('xdc.runtime.System');
41 var Text = xdc.useModule('xdc.runtime.Text');
42 var Clock = xdc.useModule('ti.sysbios.knl.Clock');
43 var Task = xdc.useModule('ti.sysbios.knl.Task');
44 var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
46 var BIOS = xdc.useModule('ti.sysbios.BIOS');
47 var Hwi = xdc.useModule('ti.sysbios.family.arm.v7r.keystone3.Hwi');
48 var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
49 var SysMin = xdc.useModule('xdc.runtime.SysMin');
51 Clock.timerId = 1;
53 BIOS.cpuFreq.lo = 400000000;
54 BIOS.cpuFreq.hi = 0;
56 var dmtimer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');
57 for (var i = 0; i < 4; i++) {
58     dmtimer.intFreqs[i].lo = 25000000;
59     dmtimer.intFreqs[i].hi = 0;
60 }
62 /* Enable cache */
63 var Cache = xdc.useModule('ti.sysbios.family.arm.v7r.Cache');
64 Cache.enableCache = true;
66 /*
67  * Direct CIO to UART
68  */
69 /* System.SupportProxy = SysUart; */
70 System.SupportProxy = SysMin;
72 /*
73  * Program.argSize sets the size of the .args section.
74  * The examples don't use command line args so argSize is set to 0.
75  */
76 Program.argSize = 0x0;
78 /*
79  * Uncomment this line to globally disable Asserts.
80  * All modules inherit the default from the 'Defaults' module.  You
81  * can override these defaults on a per-module basis using Module.common$.
82  * Disabling Asserts will save code space and improve runtime performance.
83 Defaults.common$.diags_ASSERT = Diags.ALWAYS_OFF;
84  */
86 /*
87  * Uncomment this line to keep module names from being loaded on the target.
88  * The module name strings are placed in the .const section. Setting this
89  * parameter to false will save space in the .const section.  Error and
90  * Assert messages will contain an "unknown module" prefix instead
91  * of the actual module name.
92 Defaults.common$.namedModule = false;
93  */
95 /* Create default heap and hook it into Memory */
96 var heapMemParams = new HeapMem.Params;
97 heapMemParams.size = 16384*3;
98 var heap0 = HeapMem.create(heapMemParams);
100 Memory.defaultHeapInstance = heap0;
102 /*
103  * Minimize exit handler array in System.  The System module includes
104  * an array of functions that are registered with System_atexit() to be
105  * called by System_exit().
106  */
107 System.maxAtexitHandlers = 4;
109 /*
110  * Uncomment this line to disable the Error print function.
111  * We lose error information when this is disabled since the errors are
112  * not printed.  Disabling the raiseHook will save some code space if
113  * your app is not using System_printf() since the Error_print() function
114  * calls System_printf().
115 Error.raiseHook = null;
116  */
118 /*
119  * Uncomment this line to keep Error, Assert, and Log strings from being
120  * loaded on the target.  These strings are placed in the .const section.
121  * Setting this parameter to false will save space in the .const section.
122  * Error, Assert and Log message will print raw ids and args instead of
123  * a formatted message.
124 Text.isLoaded = false;
125  */
127 /*
128  * Uncomment this line to disable the output of characters by SysMin
129  * when the program exits.  SysMin writes characters to a circular buffer.
130  * This buffer can be viewed using the SysMin Output view in ROV.
131 SysMin.flushAtExit = false;
132  */
134 /*
135  * The BIOS module will create the default heap for the system.
136  * Specify the size of this default heap.
137  *
138  * BIOS.heapSize = 0x2000; */
140 /* System stack size (used by ISRs and Swis) */
141 Program.stack = 0x4000;
143 Task.defaultStackSize = 0x4000;
145 /*
146  * Create and install logger for the whole system
147  */
148 var loggerBufParams = new LoggerBuf.Params();
149 loggerBufParams.numEntries = 32;
150 var logger0 = LoggerBuf.create(loggerBufParams);
151 Defaults.common$.logger = logger0;
152 Main.common$.diags_INFO = Diags.ALWAYS_ON;
154 BIOS.libType = BIOS.LibType_Custom;
156 /*
157  * Initialize MPU and enable it
158  *
159  * Note: MPU must be enabled and properly configured for caching to work.
160  */
161 xdc.loadCapsule("mpu.xs");