Merge pull request #9 in PROCESSOR-SDK/edma3_lld from version_update-02.12.04 to... DEV_EDMA3_LLD_02_12_04_28A
authorIvan Pang <a0273625@ti.com>
Fri, 23 Jun 2017 17:16:32 +0000 (12:16 -0500)
committerIvan Pang <a0273625@ti.com>
Fri, 23 Jun 2017 17:16:32 +0000 (12:16 -0500)
* commit 'ad4cb7fdeaa76b9c51a6663f93ea77e6a13c20d5':
  docs: updated for 2.12.4.28

examples/edma3_driver/evmOMAPL138_ARM/rtsc_config/ccs_edma3_drv_bios6_arm_omapl138_st_sample.cfg

index ce3c069cd17f8fb9577fa508426bf539f3c0e42b..3e9bb7539ddbe2b9fadb4439c1d47fe3e08c4e66 100644 (file)
@@ -7,7 +7,23 @@ var Log       = xdc.useModule ("xdc.runtime.Log");
 var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');\r
 var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');\r
 var Cache = xdc.useModule('ti.sysbios.hal.Cache');\r
-\r
+var Mmu    = xdc.useModule('ti.sysbios.family.arm.arm9.Mmu');\r
 \r
 /* USE EDMA3 Sample App */\r
 xdc.loadPackage('ti.sdo.edma3.drv.sample');\r
+\r
+// Enable the MMU\r
+Mmu.enableMMU = true;\r
+\r
+var attrs = {\r
+        type: Mmu.FirstLevelDesc_SECTION,  // SECTION descriptor\r
+        bufferable: true,                  // bufferable\r
+        cacheable: false,                  // cacheable\r
+        imp: 1,                            // implementation defined\r
+        domain: 0,                         // domain between 0-15\r
+        accPerm: 3,                        // read/write permission\r
+    };\r
+\r
+for (var i=0x01E30000; i < 0x01E37FFF; i = i + 0x00000400) {\r
+         Mmu.setFirstLevelDescMeta(i, i, attrs);\r
+    }\r