]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/audio-preprocessing.git/blob - file_demo_bios/am572x/app.cfg
PRSDK-3748: Fix for Yocto build error
[processor-sdk/audio-preprocessing.git] / file_demo_bios / am572x / app.cfg
1 var Defaults = xdc.useModule('xdc.runtime.Defaults');
2 var Diags = xdc.useModule('xdc.runtime.Diags');
3 var Error = xdc.useModule('xdc.runtime.Error');
4 var Log = xdc.useModule('xdc.runtime.Log');
5 var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
6 var Main = xdc.useModule('xdc.runtime.Main');
7 var Memory = xdc.useModule('xdc.runtime.Memory')
8 var SysMin = xdc.useModule('xdc.runtime.SysMin');
9 var System = xdc.useModule('xdc.runtime.System');
10 var Text = xdc.useModule('xdc.runtime.Text');
12 var BIOS = xdc.useModule('ti.sysbios.BIOS');
13 var Clock = xdc.useModule('ti.sysbios.knl.Clock');
14 var Swi = xdc.useModule('ti.sysbios.knl.Swi');
15 var Task = xdc.useModule('ti.sysbios.knl.Task');
16 var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
17 var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
18 var LoggingSetup = xdc.useModule('ti.uia.sysbios.LoggingSetup');
19 var Timer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');
20 var Load = xdc.useModule('ti.sysbios.utils.Load');
22 /*
23  * Uncomment this line to globally disable Asserts.
24  * All modules inherit the default from the 'Defaults' module.  You
25  * can override these defaults on a per-module basis using Module.common$. 
26  * Disabling Asserts will save code space and improve runtime performance.
27 Defaults.common$.diags_ASSERT = Diags.ALWAYS_OFF;
28  */
30 /*
31  * Uncomment this line to keep module names from being loaded on the target.
32  * The module name strings are placed in the .const section. Setting this
33  * parameter to false will save space in the .const section.  Error and
34  * Assert messages will contain an "unknown module" prefix instead
35  * of the actual module name.
36 Defaults.common$.namedModule = false;
37  */
39 /*
40  * Minimize exit handler array in System.  The System module includes
41  * an array of functions that are registered with System_atexit() to be
42  * called by System_exit().
43  */
44 System.maxAtexitHandlers = 4;       
46 /* 
47  * Uncomment this line to disable the Error print function.  
48  * We lose error information when this is disabled since the errors are
49  * not printed.  Disabling the raiseHook will save some code space if
50  * your app is not using System_printf() since the Error_print() function
51  * calls System_printf().
52 Error.raiseHook = null;
53  */
55 /* 
56  * Uncomment this line to keep Error, Assert, and Log strings from being
57  * loaded on the target.  These strings are placed in the .const section.
58  * Setting this parameter to false will save space in the .const section.
59  * Error, Assert and Log message will print raw ids and args instead of
60  * a formatted message.
61 Text.isLoaded = false;
62  */
64 /*
65  * Uncomment this line to disable the output of characters by SysMin
66  * when the program exits.  SysMin writes characters to a circular buffer.
67  * This buffer can be viewed using the SysMin Output view in ROV.
68 SysMin.flushAtExit = false;
69  */
71 /*
72  * The BIOS module will create the default heap for the system.
73  * Specify the size of this default heap.
74  */
75 BIOS.heapSize = 0x1000;
77 /*
78  * Build a custom SYS/BIOS library from sources.
79  */
80 BIOS.libType = BIOS.LibType_Custom;
82 /* System stack size (used by ISRs and Swis) */
83 Program.stack = 0x2000;
85 /* Circular buffer size for System_printf() */
86 SysMin.bufSize = 0x200;
88 /* 
89  * Create and install logger for the whole system
90  */
91 var loggerBufParams = new LoggerBuf.Params();
92 loggerBufParams.numEntries = 16;
93 var logger0 = LoggerBuf.create(loggerBufParams);
94 Defaults.common$.logger = logger0;
95 Main.common$.diags_INFO = Diags.ALWAYS_ON;
97 System.SupportProxy = SysMin;
99 Program.memoryExclude = false;
100 var clock0Params = new Clock.Params();
101 clock0Params.instance.name = "clkhandle";
102 clock0Params.period = 10;
103 clock0Params.startFlag = true;
104 Program.global.clkhandle = Clock.create("&clkDataIn", 10, clock0Params);
105 LoggingSetup.sysbiosSwiLogging = true;
106 LoggingSetup.loadLoggerSize = 8192;
107 LoggingSetup.sysbiosLoggerSize = 16384;
108 LoggingSetup.mainLoggerSize = 16384;
109 var swi0Params = new Swi.Params();
110 swi0Params.instance.name = "swidatainhandle";
111 swi0Params.priority = 8;
112 Program.global.swidatainhandle = Swi.create("&swiDataIn", swi0Params);
113 var task0Params = new Task.Params();
114 task0Params.instance.name = "tasktxhandle";
115 task0Params.priority = 5;
116 Program.global.tasktxhandle = Task.create("&taskTx", task0Params);
117 var semaphore0Params = new Semaphore.Params();
118 semaphore0Params.instance.name = "semTxWakeUp";
119 Program.global.semTxWakeUp = Semaphore.create(0, semaphore0Params);
120 LoggingSetup.sysbiosSemaphoreLogging = false;
121 LoggingSetup.loggerType = LoggingSetup.LoggerType_STOPMODE;
122 LoggingSetup.loadTaskLogging = false;
123 LoggingSetup.enableTaskProfiler = false;
124 LoggingSetup.sysbiosHwiLogging = true;
125 BIOS.cpuFreq.lo = 750000000;
126 Timer.intFreq.lo = 20000000;
127 Timer.intFreqs[4].lo = 20000000;
128 Timer.intFreqs[4].hi = 0;
129 LoggingSetup.countingAndGraphingLogging = true;
130 LoggingSetup.memorySectionName = "OCMC_RAM2";
131 Load.hwiEnabled = true;
132 Load.swiEnabled = true;
133 Load.taskEnabled = true;