]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/mmcsd/example/fatfs_console/am572x/c66/bios/mmcsddma_evm.cfg
sd-mmc: add to PDK
[processor-sdk/pdk.git] / packages / ti / drv / mmcsd / example / fatfs_console / am572x / c66 / bios / mmcsddma_evm.cfg
1 /**
2  *  \file   mmcsddma_evm.cfg
3  *
4  *  \brief  Sysbios config file for mmcsd dma C66X example project on
5  *          AM572X GP EVM.
6  *
7  */
9 /*
10  * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/
11  *
12  * Redistribution and use in source and binary forms, with or without
13  * modification, are permitted provided that the following conditions
14  * are met:
15  *
16  * Redistributions of source code must retain the above copyright
17  * notice, this list of conditions and the following disclaimer.
18  *
19  * Redistributions in binary form must reproduce the above copyright
20  * notice, this list of conditions and the following disclaimer in the
21  * documentation and/or other materials provided with the
22  * distribution.
23  *
24  * Neither the name of Texas Instruments Incorporated nor the names of
25  * its contributors may be used to endorse or promote products derived
26  * from this software without specific prior written permission.
27  *
28  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39  *
40  */
41 /* ================ General configuration ================ */
42 var Memory                      =   xdc.useModule('xdc.runtime.Memory');
43 var HeapMem                     =   xdc.useModule('ti.sysbios.heaps.HeapMem');
44 var HeapBuf                     =   xdc.useModule('ti.sysbios.heaps.HeapBuf');
45 var Log                         =   xdc.useModule('xdc.runtime.Log');
46 var Task                        =   xdc.useModule('ti.sysbios.knl.Task');
47 var Semaphore                   =   xdc.useModule('ti.sysbios.knl.Semaphore');
48 var Hwi                         = xdc.useModule('ti.sysbios.family.c64p.Hwi');
49 var Hwi                                 =       xdc.useModule('ti.sysbios.family.c64p.Hwi');
50 var ECM                   = xdc.useModule('ti.sysbios.family.c64p.EventCombiner');
51 var IntXbar           = xdc.useModule('ti.sysbios.family.shared.vayu.IntXbar');
52 var System                      =   xdc.useModule('xdc.runtime.System');
53 SysStd                          =   xdc.useModule('xdc.runtime.SysStd');
54 System.SupportProxy             =   SysStd;
56 /* Create a default system heap using ti.bios.HeapMem. */
57 var heapMemParams1              =   new HeapMem.Params;
58 heapMemParams1.size             =   8192 * 25;
59 heapMemParams1.sectionName      =   "systemHeap";
60 Program.global.heap0            =   HeapMem.create(heapMemParams1);
62 /* This is the default memory heap. */
63 Memory.defaultHeapInstance      =   Program.global.heap0;
64 Program.sectMap["systemHeap"]   =   Program.platform.stackMemory;
66 ECM.eventGroupHwiNum[0] = 7;
67 ECM.eventGroupHwiNum[1] = 8;
68 ECM.eventGroupHwiNum[2] = 9;
69 /*
70  * Enable Event Groups here and registering of ISR for specific GEM INTC is done
71  * using EventCombiner_dispatchPlug() and Hwi_eventMap() APIs
72  */
73 var exception             =     xdc.useModule('ti.sysbios.family.c64p.Exception');
74 exception.enablePrint = true;
76 /* ================ BIOS configuration ================ */
78 var BIOS                        =   xdc.useModule('ti.sysbios.BIOS'); 
80 /* Enable BIOS Task Scheduler */
81 BIOS.taskEnabled                        =   true;
83 /* No runtime stack checking is performed */
84 Task.checkStackFlag = false;
87 /* Reduce the number of task priorities */
88 Task.numPriorities = 4;
90 /* ================ Driver configuration ================ */
92 var Edma                = xdc.loadPackage ("ti.sdo.edma3.drv.sample");
93 var drv                 = xdc.loadPackage ("ti.sdo.edma3.drv");
94 var rm                  = xdc.loadPackage ("ti.sdo.edma3.rm");
96 var socType           = "am572x";
97 var Csl = xdc.loadPackage('ti.csl');
98 Csl.Settings.deviceType = socType;
100 /* Load the Osal package */
101 var osType           = "tirtos";
102 var Osal             = xdc.loadPackage('ti.osal');
103 Osal.Settings.osType = osType;
104 Osal.Settings.socType = socType;
105 /* Load the mmcsd package */
106 var Mmcsd             = xdc.loadPackage('ti.drv.mmcsd');
107 Mmcsd.Settings.socType = socType;
108 Mmcsd.Settings.useDma = "true";
110 /* Load the fatfs package */
111 var Fatfs = xdc.loadPackage('ti.fs.fatfs');
113 /* Load the GPIO package */
114 var GPIO = xdc.loadPackage('ti.drv.gpio');
116 /* Load the UART package */
117 var UART = xdc.loadPackage('ti.drv.uart');    
119 /* Load the I2C package */
120 var I2C = xdc.loadPackage('ti.drv.i2c');    
121 I2C.Settings.socType = socType;
123 /* Load the Board package and set the board name */
124 var Board = xdc.loadPackage('ti.board');
125 Board.Settings.boardName = "evmAM572x";
127 /* ================ Memory sections configuration ================ */
128 Program.sectMap[".text"] = "EXT_RAM";
129 Program.sectMap[".const"] = "EXT_RAM";
130 Program.sectMap[".plt"] = "EXT_RAM";
131 Program.sectMap["BOARD_IO_DELAY_DATA"] = "OCMC_RAM1";
132 Program.sectMap["BOARD_IO_DELAY_CODE"] = "OCMC_RAM1";