]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/edma3_lld.git/blobdiff - packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tci66ak2g02_int_reg.c
PRSDK-3391 Wrapper function for handling Interrupt
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / drv / sample / src / platforms / sample_tci66ak2g02_int_reg.c
index 22cd800756a2ba76adf3923e303db30f37c1d967..3a900441bf8dcd93fdb1ceac930e4ab3ef89069f 100755 (executable)
@@ -3,7 +3,7 @@
  *
  * Platform specific interrupt registration and un-registration routines.
  *
- * Copyright (C) 2012-2013 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2012-2017 Texas Instruments Incorporated - http://www.ti.com/
  *
  *
  *  Redistribution and use in source and binary forms, with or without
@@ -159,3 +159,59 @@ 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)
+{
+       int32_t eventId = 0;    /* GEM event id */
+    eventId = CpIntc_getEventId(ccXferHostInt[edma3Id][dsp_num]);
+       EventCombiner_enableEvent(eventId);
+}
+
+/**
+ * \brief   disableXferCompInterrupt
+ *
+ * This function disables the tranfer completion interrupt of EDMA3.
+ *
+ * \return  nil
+ */
+void disableXferCompInterrupt(uint32_t edma3Id)
+{
+    int32_t eventId = 0;       /* GEM event id */
+    eventId = CpIntc_getEventId(ccXferHostInt[edma3Id][dsp_num]);
+       EventCombiner_disableEvent(eventId);
+}
+
+/**
+ * \brief   enableErrorInterrupt
+ *
+ * This function enables the error interrupt of EDMA3.
+ *
+ * \return  nil
+ */
+void enableErrorInterrupt(uint32_t edma3Id)
+{
+    int32_t eventId = 0;       /* GEM event id */
+    eventId = CpIntc_getEventId(edma3ErrHostInt[edma3Id][dsp_num]);
+       EventCombiner_enableEvent(eventId);
+}
+
+/**
+ * \brief   disableErrorInterrupt
+ *
+ * This function disables the error interrupt of EDMA3.
+ *
+ * \return  nil
+ */
+void disableErrorInterrupt(uint32_t edma3Id)
+{
+    int32_t eventId = 0;       /* GEM event id */
+    eventId = CpIntc_getEventId(edma3ErrHostInt[edma3Id][dsp_num]);
+       EventCombiner_disableEvent(eventId);
+}
+