]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/edma3_lld.git/blobdiff - examples/edma3_driver/src/sample.h
Fix for multi-core execution of examples.
[keystone-rtos/edma3_lld.git] / examples / edma3_driver / src / sample.h
index cc41e59f96464316957fa66d3e3677f17a199a34..da771676bc279c0ffd15f511c67aa42ea9c8e444 100644 (file)
@@ -85,11 +85,23 @@ extern void callback1 (unsigned int tcc, EDMA3_RM_TccStatus status,
 extern void callback2 (unsigned int tcc, EDMA3_RM_TccStatus status,
                         void *appData);
 
+extern signed char*  getGlobalAddr(signed char* addr);
 /* Flag variable to check transfer completion on channel 1 */
 extern volatile short irqRaised1;
 /* Flag variable to check transfer completion on channel 2 */
 extern volatile short irqRaised2;
 
+#define MAX_NUM_EDMA_INSTANCES  3
+
+/* Define to verify the default RM config.
+ * Additional configuration required. Update the 
+ * gblCfgReqdArray[] to reflect the master/slave config.
+ * In the case of multiple instances default configuration
+ * may require more than one cores other than core 0 to be master. 
+ * #define EDMA3_DRV_USE_DEF_RM_CFG 
+ */
+
+#define GLOBAL_ADDR(addr) (getGlobalAddr(addr))
 
 /**
  *  \brief   EDMA3 mem-to-mem data copy test case, using a DMA channel.