]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/mmcsd/test/omapl138/c674/bios/mmcsddma_test.cfg
sd-mmc: add to PDK
[processor-sdk/pdk.git] / packages / ti / drv / mmcsd / test / omapl138 / c674 / bios / mmcsddma_test.cfg
1 /**
2  *  \file   mmcsddma_test.cfg
3  *
4  *  \brief  Sysbios config file for MMCSD test project on OMAPL138 LCDK.
5  *
6  */
8 /*
9  * Copyright (C) 2017 - 2019 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 /* Load all required BIOS/XDC runtime packages */
42 var Memory                      =   xdc.useModule('xdc.runtime.Memory');
43 var BIOS                        =   xdc.useModule('ti.sysbios.BIOS');
44 var HeapMem                     =   xdc.useModule('ti.sysbios.heaps.HeapMem');
45 var HeapBuf                     =   xdc.useModule('ti.sysbios.heaps.HeapBuf');
46 var Log                         =   xdc.useModule('xdc.runtime.Log');
47 var Task                        =   xdc.useModule('ti.sysbios.knl.Task');
48 var Semaphore                   =   xdc.useModule('ti.sysbios.knl.Semaphore');
49 var cache                       = xdc.useModule ("ti.sysbios.hal.Cache");
50 var Hwi                         = xdc.useModule('ti.sysbios.hal.Hwi');
51 var ECM                                         =       xdc.useModule('ti.sysbios.family.c64p.EventCombiner');
52 var devType = "omapl138"
53 var socType           = "omapl138";
55 /*use CSL package*/
56 var Csl = xdc.loadPackage('ti.csl');
57 Csl.Settings.deviceType = socType;
59 /* Load the OSAL package */
60 var osType = "tirtos"
61 var Osal = xdc.useModule('ti.osal.Settings');
62 Osal.osType = osType;
63 Osal.socType = devType;
66 /* Load Profiling package */
67 //var Utils = xdc.loadPackage('ti.utils.profiling');
69 var Edma                        = xdc.loadPackage ("ti.sdo.edma3.drv.sample");
70 var drv                 = xdc.loadPackage ("ti.sdo.edma3.drv");
71 var rm                  = xdc.loadPackage ("ti.sdo.edma3.rm");
73 /* Load the MMCSD package */
74 var Mmcsd = xdc.loadPackage('ti.drv.mmcsd');
75 Mmcsd.Settings.enableProfiling = false;
76 Mmcsd.Settings.useDma = "true";
77 Mmcsd.Settings.socType = socType;
78 var Fatfs = xdc.loadPackage('ti.fs.fatfs');
80 /* Load the GPIO package */
81 var GPIO = xdc.loadPackage('ti.drv.gpio');
83 /* Load the UART package */
84 var UART = xdc.loadPackage('ti.drv.uart'); 
85 UART.Settings.socType = devType;  
87 /* Load the I2C package  - required by board */
88 var I2c = xdc.loadPackage('ti.drv.i2c');
89 I2c.Settings.socType = devType;
91 /* Load the Board package and set the board name */
92 var Board = xdc.loadPackage('ti.board');
93 Board.Settings.boardName = "lcdkOMAPL138";
95 /* Create a default system heap using ti.bios.HeapMem. */
96 var heapMemParams1              =   new HeapMem.Params;
97 heapMemParams1.size             =   8192 * 25;
98 heapMemParams1.sectionName      =   "systemHeap";
99 Program.global.heap0            =   HeapMem.create(heapMemParams1);
102 /* No runtime stack checking is performed */
103 Task.checkStackFlag = false;
106 /* Reduce the number of task priorities */
107 Task.numPriorities = 4;
109 /* This is the default memory heap. */
110 Memory.defaultHeapInstance      =   Program.global.heap0;
112 Program.sectMap[".bss:.tx_buf"]      = "APP_CACHED_BIOS_RSVD_MEM";
113 Program.sectMap[".bss:.rx_buf"]      = "APP_CACHED_BIOS_RSVD_MEM";
114 Program.sectMap["systemHeap"]   = "APP_CACHED_DATA_MEM";
116 ECM.eventGroupHwiNum[0] = 7;
117 ECM.eventGroupHwiNum[1] = 8;
118 ECM.eventGroupHwiNum[2] = 9;
119 ECM.eventGroupHwiNum[3] = 10;
121 /* Enable BIOS Task Scheduler */
122 BIOS.taskEnabled                        =   true;
124 /*Entry point Memory alignment*/
125 Program.sectMap[".text:_c_int00"]                 = new Program.SectionSpec();
126 Program.sectMap[".text:_c_int00"].loadSegment     = "APP_CACHED_DATA_BLK1_MEM";