summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 31cd34e)
raw | patch | inline | side by side (parent: 31cd34e)
author | Sinthu Raja M <x0257345@ti.com> | |
Tue, 23 Jan 2018 15:00:07 +0000 (20:30 +0530) | ||
committer | Sinthu Raja M <x0257345@ti.com> | |
Tue, 23 Jan 2018 15:00:07 +0000 (20:30 +0530) |
Added Interrupt handling wrapper function for TDAXX platform.
packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tda2xx_int_reg.c | patch | blob | history | |
packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tda3xx_int_reg.c | patch | blob | history |
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tda2xx_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tda2xx_int_reg.c
index 37c64a7a8a1dfd6f1e2cec333e327954964235c9..8b98629e7b073402cd1bd612e7c2c6802fe41153 100644 (file)
*
* Platform specific interrupt registration and un-registration routines.
*
- * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2009-2018 Texas Instruments Incorporated - http://www.ti.com/
*
*
* Redistribution and use in source and binary forms, with or without
return retVal;
}
+
+/**
+ * \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]);
+}
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tda3xx_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tda3xx_int_reg.c
index b0f27da0b56fc108ec2f48b02a04309f2cff8a6e..e92cc2571725ccc62461b9a14a13d3928b454265 100644 (file)
*
* Platform specific interrupt registration and un-registration routines.
*
- * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2009-2018 Texas Instruments Incorporated - http://www.ti.com/
*
*
* Redistribution and use in source and binary forms, with or without
return retVal;
}
+
+/**
+ * \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]);
+}