]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blob - packages/ti/ipc/tests/IpcCommon_vayu.cfg.xs
Fix Deh/Watchdog packaging issues, move StackDbg to ti/deh
[ipc/ipcdev.git] / packages / ti / ipc / tests / IpcCommon_vayu.cfg.xs
1 /*
2  * Copyright (c) 2012-2014, Texas Instruments Incorporated
3  * All rights reserved.
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 distribution.
15  *
16  * *  Neither the name of Texas Instruments Incorporated nor the names of
17  *    its contributors may be used to endorse or promote products derived
18  *    from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
33 /*
34  *  The SysMin used here vs StdMin, as trace buffer address is required for
35  *  Linux trace debug driver, plus provides better performance.
36  */
37 var System      = xdc.useModule('xdc.runtime.System');
38 var SysMin      = xdc.useModule('ti.trace.SysMin');
39 System.SupportProxy = SysMin;
40 SysMin.bufSize  = 0x8000;
42 /* Define default memory heap properties */
43 var Memory      = xdc.useModule('xdc.runtime.Memory');
44 Memory.defaultHeapSize = 0x20000;
46 /* Modules used in the virtqueue/RPMessage/ServiceMgr libraries: */
47 var Semaphore   = xdc.useModule('ti.sysbios.knl.Semaphore');
48 var BIOS        = xdc.useModule('ti.sysbios.BIOS');
50 /* Reduces code size, by only pulling in modules explicitly referenced: */
51 BIOS.libType    = BIOS.LibType_Custom;
53 xdc.loadPackage('ti.sdo.ipc.family.vayu');
54 xdc.useModule('ti.sdo.ipc.family.vayu.InterruptIpu');
55 xdc.loadPackage('ti.ipc.rpmsg');
56 xdc.loadPackage('ti.ipc.family.vayu');
58 /* TBD:
59 xdc.loadPackage('ti.srvmgr');
60 xdc.useModule('ti.srvmgr.omx.OmxSrvMgr');
61 xdc.loadPackage('ti.resmgr');
62 */
64 /* Enable Memory Translation module that operates on the BIOS Resource Table */
65 var Resource = xdc.useModule('ti.ipc.remoteproc.Resource');
67 var HeapBuf   = xdc.useModule('ti.sysbios.heaps.HeapBuf');
68 var List      = xdc.useModule('ti.sdo.utils.List');
70 /* ti.grcm Configuration */
71 /* TBD:
72 var rcmSettings = xdc.useModule('ti.grcm.Settings');
73 rcmSettings.ipc = rcmSettings.IpcSupport_ti_sdo_ipc;
74 xdc.useModule('ti.grcm.RcmServer');
75 */
76 xdc.useModule('ti.sysbios.xdcruntime.GateThreadSupport');
77 var GateSwi   = xdc.useModule('ti.sysbios.gates.GateSwi');
79 var Task          = xdc.useModule('ti.sysbios.knl.Task');
80 Task.common$.namedInstance = true;
82 var Assert = xdc.useModule('xdc.runtime.Assert');
83 var Defaults = xdc.useModule('xdc.runtime.Defaults');
84 var Diags = xdc.useModule('xdc.runtime.Diags');
85 var LoggerSys = xdc.useModule('xdc.runtime.LoggerSys');
86 var LoggerSysParams = new LoggerSys.Params();
88 /* Enable Logger: */
89 Defaults.common$.logger = LoggerSys.create(LoggerSysParams);
91 /* Enable runtime Diags_setMask() for non-XDC spec'd modules: */
92 var Text = xdc.useModule('xdc.runtime.Text');
93 Text.isLoaded = true;
94 var Registry = xdc.useModule('xdc.runtime.Registry');
95 Registry.common$.diags_ENTRY = Diags.RUNTIME_OFF;
96 Registry.common$.diags_EXIT  = Diags.RUNTIME_OFF;
97 Registry.common$.diags_USER1 = Diags.RUNTIME_OFF;
98 Registry.common$.diags_INFO  = Diags.RUNTIME_OFF;
99 Registry.common$.diags_LIFECYCLE = Diags.RUNTIME_OFF;
100 Registry.common$.diags_STATUS = Diags.RUNTIME_OFF;
101 Diags.setMaskEnabled = true;
103 var Main = xdc.useModule('xdc.runtime.Main');
104 Main.common$.diags_ASSERT = Diags.ALWAYS_ON;
105 Main.common$.diags_INTERNAL = Diags.ALWAYS_ON;
107 var Hwi = xdc.useModule('ti.sysbios.family.arm.m3.Hwi');
108 Hwi.enableException = true;
109 Hwi.nvicCCR.DIV_0_TRP = 1;
111 /* Include stack debug helper */
112 /* TBD:
113 var StackDbg = xdc.useModule('ti.deh.StackDbg');
114 */
116 var dmTimer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');
117 /* dmTimer 0 mapped to GPT1 */
118 dmTimer.timerSettings[0].baseAddr = 0x6AE18000;
119 /* dmTimer 1 mapped to GPT2 */
120 dmTimer.timerSettings[1].baseAddr = 0x68032000;
121 /* dmTimer 2 mapped to GPT3 */
122 dmTimer.timerSettings[2].baseAddr = 0x68034000;
123 /* dmTimer 3 mapped to GPT4 */
124 dmTimer.timerSettings[3].baseAddr = 0x68036000;
125 /* dmTimer 4 mapped to GPT5 */
126 dmTimer.timerSettings[4].baseAddr = 0x68820000;
127 /* dmTimer 5 mapped to GPT6 */
128 dmTimer.timerSettings[5].baseAddr = 0x68822000;
129 /* dmTimer 6 mapped to GPT7 */
130 dmTimer.timerSettings[6].baseAddr = 0x68034000;
131 /* dmTimer 7 mapped to GPT8 */
132 dmTimer.timerSettings[7].baseAddr = 0x68036000;
133 /* dmTimer 8 mapped to GPT9 */
134 dmTimer.timerSettings[8].baseAddr = 0x6803E000;
135 /* dmTimer 9 mapped to GPT10 */
136 dmTimer.timerSettings[9].baseAddr = 0x68086000;
137 /* dmTimer 10 mapped to GPT11 */
138 dmTimer.timerSettings[10].baseAddr = 0x68088000;
139 /* dmTimer 11 mapped to GPT12 */
140 dmTimer.timerSettings[11].baseAddr = 0x6AE20000;
141 /* dmTimer 12 mapped to GPT13 */
142 dmTimer.timerSettings[12].baseAddr = 0x68828000;
143 /* dmTimer 13 mapped to GPT14 */
144 dmTimer.timerSettings[13].baseAddr = 0x6882A000;
145 /* dmTimer 14 mapped to GPT15 */
146 dmTimer.timerSettings[14].baseAddr = 0x6882C000;
147 /* dmTimer 15 mapped to GPT16 */
148 dmTimer.timerSettings[15].baseAddr = 0x6882E000;
150 /* Skip the Timer frequency verification check. Need to remove this later */
151 dmTimer.checkFrequency = false;
153 /* Match this to the SYS_CLK frequency sourcing the dmTimers.
154  * Not needed once the SYS/BIOS family settings is updated. */
155 dmTimer.intFreq.hi = 0;
156 dmTimer.intFreq.lo = 19200000;
158 /* Override the internal sysTick timer with dmTimer for Bios Timer */
159 var halTimer = xdc.useModule('ti.sysbios.hal.Timer');
160 halTimer.TimerProxy = dmTimer;
162 /* Version module */
163 /* ???
164 xdc.useModule('ti.utils.Version');
165 */