]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/tidep0069.git/blob - evmAM572x/src/audioEQ_demo.cfg
First commit
[apps/tidep0069.git] / evmAM572x / src / audioEQ_demo.cfg
1 /* ========================================================================== */
2 /*                      CFG script for the Audio sample                       */
3 /* ========================================================================== */
5 /* load the required files and packages                                       */
6 var GIO                 = xdc.useModule('ti.sysbios.io.GIO');
7 var Task        = xdc.useModule ("ti.sysbios.knl.Task");
8 var BIOS        = xdc.useModule ("ti.sysbios.BIOS");
9 var ECM         = xdc.useModule ("ti.sysbios.family.c64p.EventCombiner");
10 var System      = xdc.useModule ("xdc.runtime.System");
11 var SysStd      = xdc.useModule('xdc.runtime.SysStd');
12 var cache       = xdc.useModule ("ti.sysbios.hal.Cache");
13 var IntXbar      = xdc.useModule('ti.sysbios.family.shared.vayu.IntXbar');
15 var Hwi         = xdc.useModule ("ti.sysbios.family.c64p.Hwi");
16 var Sem         = xdc.useModule("ti.sysbios.knl.Semaphore");
17 var Log                 = xdc.useModule('xdc.runtime.Log');
18 var LoggerBuf   = xdc.useModule('xdc.runtime.LoggerBuf');
19 var Memory              = xdc.useModule('xdc.runtime.Memory')
20 var SysMin              = xdc.useModule('xdc.runtime.SysMin');
21 var System              = xdc.useModule('xdc.runtime.System');
22 var Defaults    = xdc.useModule('xdc.runtime.Defaults');
23 var Main                = xdc.useModule('xdc.runtime.Main');
24 var Diags               = xdc.useModule('xdc.runtime.Diags');
25 var HeapMem     = xdc.useModule ("ti.sysbios.heaps.HeapMem");
26 var LoggingSetup = xdc.useModule('ti.uia.sysbios.LoggingSetup');
28 var Edma                        = xdc.loadPackage ("ti.sdo.edma3.drv.sample");
29 var drv                 = xdc.loadPackage ("ti.sdo.edma3.drv");
30 var rm                  = xdc.loadPackage ("ti.sdo.edma3.rm");
32 /* Load the packages */
33 var socType           = "am572x";
34 var McASP               = xdc.loadPackage('ti.drv.mcasp');
35 McASP.Settings.socType  = socType;
37 /* Load the i2c package */
38 var I2C               = xdc.loadPackage('ti.drv.i2c');
39 I2C.Settings.socType  = socType;
41 /* Load the uart package */
42 var Uart = xdc.loadPackage('ti.drv.uart');
43 Uart.Settings.socType  = socType;
45 /* Load the OSAL package */ 
46 var osType = "tirtos"
47 var Osal = xdc.useModule('ti.osal.Settings');
48 Osal.osType = osType;
50 /* Load the Board package and set the board name */
51 var Board = xdc.loadPackage('ti.board');
52 Board.Settings.boardName = "evmAM572x";
54 /* 
55  * The BIOS module will create the default heap for the system.
56  * Specify the size of this default heap.
57  */
58 BIOS.heapSize = 0x2000;
60 BIOS.cpuFreq.lo = 600000000;
62 /* System stack size (used by ISRs and Swis) */
63 Program.stack = 0x1000;
65 System.SupportProxy = SysStd;
67 /* allocate a config-params object */  
68 var HeapParam = new HeapMem.Params;  
69   
70 /* optionally assign per-instance configs */  
71 HeapParam.size = 200000;
72 HeapParam.sectionName = "L2SRAM"
73   
74 /* create an instance-object */  
75 Program.global.myHeap = HeapMem.create(HeapParam);  
77 var task0Params = new Task.Params();
78 task0Params.priority = 5;
79 task0Params.instance.name = "task0";
81 Program.global.task0 = Task.create("&Audio_echo_Task", task0Params);
83 var task1Params = new Task.Params();
84 task1Params.priority = 1;
85 task1Params.instance.name = "task1";
87 Program.global.task1 = Task.create("&ReadInputTask", task1Params);
89 ECM.eventGroupHwiNum[0] = 7;
90 ECM.eventGroupHwiNum[1] = 8;
91 ECM.eventGroupHwiNum[2] = 9;
92 ECM.eventGroupHwiNum[3] = 10;
94 Program.sectMap[".text"] = "L2SRAM";
95 // chnaging default tick of timer to 100us from default 1000us
96 var Clock = xdc.useModule('ti.sysbios.knl.Clock'); 
97 Clock.tickPeriod = 100;
99 /* 
100  * Create and install logger for the whole system
101  */
102 var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
103 var loggerBuf0 = LoggerBuf.create();
104 LoggingSetup.sysbiosHwiLogging = true;
105 LoggingSetup.sysbiosSemaphoreLogging = true;
106 LoggingSetup.loadHwiLogging = true;
107 LoggingSetup.loggerType = LoggingSetup.LoggerType_JTAGRUNMODE;
109 var Load = xdc.useModule('ti.sysbios.utils.Load');
110 Load.common$.logger = loggerBuf0;
111 var Diags = xdc.useModule('xdc.runtime.Diags');
112 Load.common$.diags_USER4 = Diags.ALWAYS_ON;
115 /* ================ Memory sections configuration ================ */
116 Program.sectMap["BOARD_IO_DELAY_DATA"] = "OCMC_RAM1";
117 Program.sectMap["BOARD_IO_DELAY_CODE"] = "OCMC_RAM1";