[processor-sdk/pdk.git] / packages / ti / transport / ndk / nimu / example / CCLink / am572x / c66 / bios / cclink_idkAM572x.cfg
1 /**
2 * \file i2c_test_idkAM52x.cfg
3 *
4 * \brief Sysbios config file for i2c C66X test project on AM572X IDK EVM.
5 *
6 */
8 /*
9 * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 *
15 * Redistributions of source code must retain the above copyright
16 * notice, this list of conditions and the following disclaimer.
17 *
18 * Redistributions in binary form must reproduce the above copyright
19 * notice, this list of conditions and the following disclaimer in the
20 * documentation and/or other materials provided with the
21 * distribution.
22 *
23 * Neither the name of Texas Instruments Incorporated nor the names of
24 * its contributors may be used to endorse or promote products derived
25 * from this software without specific prior written permission.
26 *
27 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
29 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
30 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
31 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
32 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
33 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
34 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
35 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
36 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 *
39 */
41 /* ================ General configuration ================ */
42 var enableStaticIP = 1;
43 var mode = Program.build.cfgArgs.MODE;
45 /* ================ General configuration ================ */
46 var Defaults = xdc.useModule('xdc.runtime.Defaults');
47 var Diags = xdc.useModule('xdc.runtime.Diags');
48 var Error = xdc.useModule('xdc.runtime.Error');
49 var Memory = xdc.useModule('xdc.runtime.Memory');
50 var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
51 var HeapBuf = xdc.useModule('ti.sysbios.heaps.HeapBuf');
52 var Log = xdc.useModule('xdc.runtime.Log');
53 var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
54 var Main = xdc.useModule('xdc.runtime.Main');
55 var System = xdc.useModule('xdc.runtime.System');
56 var Text = xdc.useModule('xdc.runtime.Text');
57 var IntXbar = xdc.useModule('ti.sysbios.family.shared.vayu.IntXbar');
58 var Clock = xdc.useModule('ti.sysbios.knl.Clock');
59 var Timer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');
60 var Swi = xdc.useModule('ti.sysbios.knl.Swi');
61 var Task = xdc.useModule('ti.sysbios.knl.Task');
62 var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
63 var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
64 var Ecm = xdc.useModule ('ti.sysbios.family.c64p.EventCombiner');
65 var SysMin = xdc.useModule('xdc.runtime.SysMin');
67 /* NDK modules */
68 var Global = xdc.useModule('ti.ndk.config.Global');
69 var Ip = xdc.useModule('ti.ndk.config.Ip');
70 var Tcp = xdc.useModule('ti.ndk.config.Tcp');
71 var Udp = xdc.useModule('ti.ndk.config.Udp');
72 var Telnet = xdc.useModule('ti.ndk.config.Telnet');
74 /*
75 * Program.argSize sets the size of the .args section.
76 * The examples don't use command line args so argSize is set to 0.
77 */
78 /* Program.argSize = 0x0; */
79 /* System stack size (used by ISRs and Swis) */
80 Program.stack = 0x10000;
82 /*
83 * Uncomment this line to globally disable Asserts.
84 * All modules inherit the default from the 'Defaults' module. You
85 * can override these defaults on a per-module basis using Module.common$.
86 * Disabling Asserts will save code space and improve runtime performance.
87 Defaults.common$.diags_ASSERT = Diags.ALWAYS_OFF;
88 */
90 /*
91 * Uncomment this line to keep module names from being loaded on the target.
92 * The module name strings are placed in the .const section. Setting this
93 * parameter to false will save space in the .const section. Error and
94 * Assert messages will contain an "unknown module" prefix instead
95 * of the actual module name.
96 Defaults.common$.namedModule = false;
97 */
99 /*
100 * Minimize exit handler array in System. The System module includes
101 * an array of functions that are registered with System_atexit() to be
102 * called by System_exit().
103 */
104 System.maxAtexitHandlers = 4;
106 /*
107 * Uncomment this line to disable the Error print function.
108 * We lose error information when this is disabled since the errors are
109 * not printed. Disabling the raiseHook will save some code space if
110 * your app is not using System_printf() since the Error_print() function
111 * calls System_printf().
112 Error.raiseHook = null;
113 */
115 /*
116 * Uncomment this line to keep Error, Assert, and Log strings from being
117 * loaded on the target. These strings are placed in the .const section.
118 * Setting this parameter to false will save space in the .const section.
119 * Error, Assert and Log message will print raw ids and args instead of
120 * a formatted message.
121 Text.isLoaded = false;
122 */
124 /*
125 * Uncomment this line to disable the output of characters by SysMin
126 * when the program exits. SysMin writes characters to a circular buffer.
127 * This buffer can be viewed using the SysMin Output view in ROV.
128 SysMin.flushAtExit = false;
129 */
131 System.SupportProxy = SysMin;
132 /* Circular buffer size for System_printf() */
133 SysMin.bufSize = 0x200;
135 /*
136 * Enable Event Groups here and registering of ISR for specific GEM INTC is done
137 * using EventCombiner_dispatchPlug() and Hwi_eventMap() APIs
138 */
140 Ecm.eventGroupHwiNum[0] = 7;
141 Ecm.eventGroupHwiNum[1] = 8;
142 Ecm.eventGroupHwiNum[2] = 9;
143 Ecm.eventGroupHwiNum[3] = 10;
145 Global.ndkTickPeriod = 100;
146 Global.kernTaskPriLevel = 11;
147 Global.serviceReportHook = null;
148 Global.IPv6 = false;
150 if (enableStaticIP)
151 {
152 /* Settings for static IP configuration */
153 Ip.ResolveIP = false;
154 Ip.CallByIP = false;
155 Ip.autoIp = false;
156 if (mode == "master")
157 {
158 Ip.address = "192.168.3.100";
159 }
160 else
161 {
162 Ip.address = "192.168.3.4";
163 }
164 Ip.mask = "255.255.255.0";
165 Ip.gatewayIpAddr = "192.168.3.1";
166 }
167 else
168 {
169 Ip.dhcpClientMode = Ip.CIS_FLG_IFIDXVALID;
170 }
172 /* ================ BIOS configuration ================ */
174 var BIOS = xdc.useModule('ti.sysbios.BIOS');
175 /*
176 * Build a custom SYS/BIOS library from sources.
177 */
178 BIOS.libType = BIOS.LibType_Custom;
181 /*
182 * The BIOS module will create the default heap for the system.
183 * Specify the size of this default heap.
184 */
185 BIOS.heapSize = 0xA0000;
187 /*
188 * Create and install logger for the whole system
189 */
190 var loggerBufParams = new LoggerBuf.Params();
191 loggerBufParams.numEntries = 16;
192 var logger0 = LoggerBuf.create(loggerBufParams);
193 Defaults.common$.logger = logger0;
194 Main.common$.diags_INFO = Diags.ALWAYS_ON;
196 /* ================ Task configuration ================ */
198 Task.defaultStackSize = 4096;
199 Task.idleTaskStackSize = 4096;
201 /* ================ Driver configuration ================ */
203 /* Load the OSAL package */
204 var osType = "tirtos"
205 var Osal = xdc.useModule('ti.osal.Settings');
206 Osal.osType = osType;
208 /* Load the UART package */
209 var UART = xdc.loadPackage('ti.drv.uart');
211 /* Load the I2C package */
212 var I2C = xdc.loadPackage('ti.drv.i2c');
214 /* Load the Board package and set the board name */
215 var Board = xdc.loadPackage('ti.board');
216 Board.Settings.boardName = "idkAM572x";
218 var socType = "am572x";
220 /* Load the CSL package */
221 var Csl = xdc.loadPackage('ti.csl');
222 Csl.Settings.deviceType = socType;
224 /* Load the EMAC packages */
225 var Emac = xdc.loadPackage('ti.drv.emac');
226 Emac.Settings.socType = socType;
228 var Nimu = xdc.loadPackage('ti.transport.ndk.nimu');
229 Nimu.Settings.socType = socType;
231 /* ================ Memory sections configuration ================ */
232 Program.sectMap[".text"] = "EXT_RAM";
233 Program.sectMap[".const"] = "EXT_RAM";
234 Program.sectMap[".plt"] = "EXT_RAM";
235 Program.sectMap["BOARD_IO_DELAY_DATA"] = "OCMC_RAM1";
236 Program.sectMap["BOARD_IO_DELAY_CODE"] = "OCMC_RAM1";