[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / drv / sample / src / platforms / sample_tci66ak2g02_int_reg.c
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tci66ak2g02_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tci66ak2g02_int_reg.c
index 22cd800756a2ba76adf3923e303db30f37c1d967..3a900441bf8dcd93fdb1ceac930e4ab3ef89069f 100755 (executable)
*
* 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
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);
+}
+