]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcasp-lld.git/commitdiff
Adding configuration override for McASP example
authorStephen Molfetta <sjmolfetta@ti.com>
Thu, 6 Sep 2018 19:54:00 +0000 (14:54 -0500)
committerStephen Molfetta <sjmolfetta@ti.com>
Fri, 1 Feb 2019 18:44:49 +0000 (12:44 -0600)
example/MCASP_DeviceLoopback_TestApp/makefile
example/j7/mcasp_extra_config.xs [new file with mode: 0644]

index 2df91eaa550cb69f18228f52c612a258caa663ab..5443c048701fb2f8759b58cb8e89c95b41069b39 100644 (file)
@@ -49,6 +49,7 @@ ifeq ($(SOC), $(filter $(SOC), j7))
 
   # Enable XDC build for application by providing XDC CFG File per core
   XDC_CFG_FILE_$(CORE) = $(PDK_INSTALL_PATH)/ti/build/$(SOC)/sysbios_$(ISA).cfg
+  XDC_CFG_UPDATE_$(CORE) = ../j7/mcasp_extra_config.xs
 endif
 
 PACKAGE_SRCS_COMMON = .
diff --git a/example/j7/mcasp_extra_config.xs b/example/j7/mcasp_extra_config.xs
new file mode 100644 (file)
index 0000000..e429c19
--- /dev/null
@@ -0,0 +1,7 @@
+/* Create a heap for McASP test */
+var HeapMem = xdc.module('ti.sysbios.heaps.HeapMem');
+
+var heapMemParams     = new HeapMem.Params;
+heapMemParams.size    = 200000;
+Program.global.myHeap = HeapMem.create(heapMemParams);
+