]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcbsp-lld.git/blob - example/k2g/MCBSPDigLpbk/mcbspMasterDigLpbk.cfg
PRSDK-3515 Enable board init for example projects
[keystone-rtos/mcbsp-lld.git] / example / k2g / MCBSPDigLpbk / mcbspMasterDigLpbk.cfg
1 /*
2  *  Copyright 2012-2018 by Texas Instruments Incorporated.
3  *
4  *  All rights reserved. Property of Texas Instruments Incorporated.
5  *  Restricted rights to use, duplicate or disclose this code are
6  *  granted through contract.
7  *
8  */
10 /* THIS FILE WAS GENERATED BY ti.sysbios.genx */
12 /*
13  *  ======== mcbspMasterDigLpbk.cfg ========
14  *
15  */
17 /* Load and use the required BIOS packages */
18 var BIOS    = xdc.useModule('ti.sysbios.BIOS');
19 var Task    = xdc.useModule('ti.sysbios.knl.Task');
20 var cache   = xdc.useModule('ti.sysbios.hal.Cache');
21 var Idle    = xdc.useModule('ti.sysbios.knl.Idle');
22 var Queue   = xdc.useModule('ti.sysbios.knl.Queue');
23 var ECM     = xdc.useModule('ti.sysbios.family.c64p.EventCombiner');
24 var CpIntc  = xdc.useModule('ti.sysbios.family.c66.tci66xx.CpIntc');
25 var Memory  = xdc.useModule('xdc.runtime.Memory');
26 var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
28 /* Load and use the System Package */
29 var System = xdc.useModule('xdc.runtime.System');
30 var SysStd    = xdc.useModule('xdc.runtime.SysStd');
32 /* Create a default system heap using ti.bios.HeapMem. */
33 var heapMemParams1         = new HeapMem.Params;
34 heapMemParams1.size        = 32768;
35 heapMemParams1.sectionName = "systemHeap";
36 Program.global.heap0       = HeapMem.create(heapMemParams1);
38 /* This is the default memory heap. */
39 Memory.defaultHeapInstance = Program.global.heap0;
41 /*
42  * Create and install logger for the whole system.
43  * Enable Event Groups here and registering of ISR for specific GEM INTC is done
44  * using EventCombiner_dispatchPlug() and Hwi_eventMap() APIs
45  */
46 ECM.eventGroupHwiNum[0] = 7;
47 ECM.eventGroupHwiNum[1] = 8;
48 ECM.eventGroupHwiNum[2] = 9;
49 ECM.eventGroupHwiNum[3] = 10;
51 /* Load and use the mcbsp, EDMA, PlatformLib etc. packages */
52 var Edma = xdc.loadPackage('ti.sdo.edma3.drv');
55 var devType = "k2g"
56 var mcbsp = xdc.useModule('ti.drv.mcbsp.Settings');
57 mcbsp.deviceType = devType;
59 /* Load the uart package */
60 var Uart = xdc.loadPackage('ti.drv.uart');
61 Uart.Settings.socType  = devType;
63 var Csl = xdc.useModule('ti.csl.Settings');
64 Csl.deviceType = devType;
65 Csl.libProfile = "release";
67 /* Load the OSAL package */
68 var osType = "tirtos"
69 var Osal = xdc.useModule('ti.osal.Settings');
70 Osal.osType = osType;
71 Osal.socType  = devType;
73 /* Load the Board package and set the board name */
74 var Board = xdc.loadPackage('ti.board');
75 Board.Settings.boardName = "evmK2G";
77 /* Circular buffer size for System_printf() */
78 System.SupportProxy = SysStd;