]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/edma3_lld.git/blobdiff - packages/ti/sdo/edma3/rm/sample/src/platforms/sample_omapl138_int_reg.c
PRSDK-3391 Wrapper function for handling Interrupt
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / rm / sample / src / platforms / sample_omapl138_int_reg.c
index 8e09a0270361c826605406ed4773380c4ef86f15..9d59ac3cf2c9c965752f1b2630078833764a8744 100755 (executable)
@@ -3,7 +3,7 @@
  *
  * Platform specific interrupt registration and un-registration routines.
  *
- * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2009-2017 Texas Instruments Incorporated - http://www.ti.com/
  *
  *
  *  Redistribution and use in source and binary forms, with or without
@@ -150,3 +150,50 @@ void unregisterEdma3Interrupts (unsigned int edma3Id)
     Hwi_restore(cookie);
     }
 
+/**
+ * \brief   enableXferCompInterrupt
+ *
+ * This function enables the tranfer completion interrupt of EDMA3.
+ *
+ * \return  nil
+ */
+void enableXferCompInterrupt(uint32_t edma3Id)
+{
+    EventCombiner_enableEvent(ccXferCompInt[edma3Id][dsp_num]);
+}
+
+/**
+ * \brief   disableXferCompInterrupt
+ *
+ * This function disables the tranfer completion interrupt of EDMA3.
+ *
+ * \return  nil
+ */
+void disableXferCompInterrupt(uint32_t edma3Id)
+{
+    EventCombiner_disableEvent(ccXferCompInt[edma3Id][dsp_num]);
+}
+
+/**
+ * \brief   enableErrorInterrupt
+ *
+ * This function enables the error interrupt of EDMA3.
+ *
+ * \return  nil
+ */
+void enableErrorInterrupt(uint32_t edma3Id)
+{
+    EventCombiner_enableEvent(ccErrorInt[edma3Id]);
+}
+
+/**
+ * \brief   disableErrorInterrupt
+ *
+ * This function disables the error interrupt of EDMA3.
+ *
+ * \return  nil
+ */
+void disableErrorInterrupt(uint32_t edma3Id)
+{
+    EventCombiner_disableEvent(ccErrorInt[edma3Id]);
+}