[processor-sdk/pdk.git] / packages / ti / drv / i2c / test / eeprom_read / am65xx / i2cEepromTest_a53.cfg
2 /* =============================================================================
3 * Copyright (c) Texas Instruments Incorporated 2018-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');
48 /* Enable SMP mode in BIOS if SMP is enabled from makefile */
49 var smp = java.lang.System.getenv("SMP")
50 if(smp == 'enable')
51 {
52 xdc.print("Enabling BIOS SMP mode");
53 BIOS.smpEnabled = true;
54 }
56 var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
57 var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
58 var SysMin = xdc.useModule('xdc.runtime.SysMin');
60 var Cache = xdc.module("ti.sysbios.hal.Cache");
61 if(smp == null || smp == '')
62 {
63 Cache.CacheProxy = xdc.useModule("ti.sysbios.family.arm.v8a.Cache");
64 }
66 var Mmu = xdc.useModule('ti.sysbios.family.arm.v8a.Mmu');
67 Mmu.initFunc = "&InitMmu";
68 Mmu.tableArrayLen = 24;
70 BIOS.cpuFreq.lo = 800000000;
71 BIOS.cpuFreq.hi = 0;
73 var Timer = xdc.useModule('ti.sysbios.family.arm.v8a.Timer');
74 Timer.intFreq.lo = 200000000;
75 Timer.intFreq.hi = 0;
77 var dmTimer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');
78 for (var i = 0; i < 12; i++) {
79 dmTimer.intFreqs[i].lo = 25000000;
80 dmTimer.intFreqs[i].hi = 0;
81 }
83 /*
84 * Direct CIO to UART
85 */
86 /* System.SupportProxy = SysUart; */
87 System.SupportProxy = SysMin;
89 /*
90 * Program.argSize sets the size of the .args section.
91 * The examples don't use command line args so argSize is set to 0.
92 */
93 Program.argSize = 0x0;
95 /*
96 * Uncomment this line to globally disable Asserts.
97 * All modules inherit the default from the 'Defaults' module. You
98 * can override these defaults on a per-module basis using Module.common$.
99 * Disabling Asserts will save code space and improve runtime performance.
100 Defaults.common$.diags_ASSERT = Diags.ALWAYS_OFF;
101 */
103 /*
104 * Uncomment this line to keep module names from being loaded on the target.
105 * The module name strings are placed in the .const section. Setting this
106 * parameter to false will save space in the .const section. Error and
107 * Assert messages will contain an "unknown module" prefix instead
108 * of the actual module name.
109 Defaults.common$.namedModule = false;
110 */
112 /* Create default heap and hook it into Memory */
113 var heapMemParams = new HeapMem.Params;
114 heapMemParams.size = 16384*3;
115 var heap0 = HeapMem.create(heapMemParams);
117 Memory.defaultHeapInstance = heap0;
119 /*
120 * Minimize exit handler array in System. The System module includes
121 * an array of functions that are registered with System_atexit() to be
122 * called by System_exit().
123 */
124 System.maxAtexitHandlers = 4;
126 /*
127 * Uncomment this line to disable the Error print function.
128 * We lose error information when this is disabled since the errors are
129 * not printed. Disabling the raiseHook will save some code space if
130 * your app is not using System_printf() since the Error_print() function
131 * calls System_printf().
132 Error.raiseHook = null;
133 */
135 /*
136 * Uncomment this line to keep Error, Assert, and Log strings from being
137 * loaded on the target. These strings are placed in the .const section.
138 * Setting this parameter to false will save space in the .const section.
139 * Error, Assert and Log message will print raw ids and args instead of
140 * a formatted message.
141 Text.isLoaded = false;
142 */
144 /*
145 * Uncomment this line to disable the output of characters by SysMin
146 * when the program exits. SysMin writes characters to a circular buffer.
147 * This buffer can be viewed using the SysMin Output view in ROV.
148 SysMin.flushAtExit = false;
149 */
151 /*
152 * The BIOS module will create the default heap for the system.
153 * Specify the size of this default heap.
154 *
155 * BIOS.heapSize = 0x2000; */
157 /* System stack size (used by ISRs and Swis) */
158 Program.stack = 0x4000;
160 Task.defaultStackSize = 0x4000;
162 /* ================ Task configuration ================ */
163 var task0Params = new Task.Params();
164 task0Params.instance.name = "echo";
165 task0Params.stackSize = 0x1000;
166 Program.global.echo = Task.create("&i2c_test", task0Params);
167 /*
168 * Create and install logger for the whole system
169 */
170 var loggerBufParams = new LoggerBuf.Params();
171 loggerBufParams.numEntries = 32;
172 var logger0 = LoggerBuf.create(loggerBufParams);
173 Defaults.common$.logger = logger0;
174 Main.common$.diags_INFO = Diags.ALWAYS_ON;
176 BIOS.libType = BIOS.LibType_Custom;