Merge pull request #7 in PROCESSOR-SDK/edma3_lld from version_update-02.12.04 to...
[keystone-rtos/edma3_lld.git] / examples / edma3_driver / evmOMAPL138_ARM / rtsc_config / ccs_edma3_drv_bios6_arm_omapl138_st_sample.cfg
1 /*use modules*/\r
2 var Task = xdc.useModule ("ti.sysbios.knl.Task");\r
3 var BIOS      = xdc.useModule ("ti.sysbios.BIOS");\r
4 var Startup   = xdc.useModule ("xdc.runtime.Startup");\r
5 var System    = xdc.useModule ("xdc.runtime.System");\r
6 var Log       = xdc.useModule ("xdc.runtime.Log");\r
7 var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');\r
8 var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');\r
9 var Cache = xdc.useModule('ti.sysbios.hal.Cache');\r
10 var Mmu    = xdc.useModule('ti.sysbios.family.arm.arm9.Mmu');\r
11 \r
12 /* USE EDMA3 Sample App */\r
13 xdc.loadPackage('ti.sdo.edma3.drv.sample');\r
14 \r
15 // Enable the MMU\r
16 Mmu.enableMMU = true;\r
17 \r
18 var attrs = {\r
19         type: Mmu.FirstLevelDesc_SECTION,  // SECTION descriptor\r
20         bufferable: true,                  // bufferable\r
21         cacheable: false,                  // cacheable\r
22         imp: 1,                            // implementation defined\r
23         domain: 0,                         // domain between 0-15\r
24         accPerm: 3,                        // read/write permission\r
25     };\r
26 \r
27 for (var i=0x01E30000; i < 0x01E37FFF; i = i + 0x00000400) {\r
28          Mmu.setFirstLevelDescMeta(i, i, attrs);\r
29     }\r