summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f017938)
raw | patch | inline | side by side (parent: f017938)
author | Sinthu Raja M <x0257345@ti.com> | |
Mon, 15 Jan 2018 12:11:00 +0000 (17:41 +0530) | ||
committer | Sinthu Raja M <x0257345@ti.com> | |
Mon, 15 Jan 2018 12:26:03 +0000 (17:56 +0530) |
Added wrapper function for enabling and disabling interrupt event
in DSP based on core specific
in DSP based on core specific
42 files changed:
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_c6472_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_c6472_int_reg.c
index d2fdbcffe2c0b6e660b93b3d0e8d146d57eb0703..de0de6426dea4047dd9bcab5615e564ccbf6c80f 100644 (file)
*
* Platform specific interrupt registration and un-registration routines.
*
- * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2010-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)
+{
+ 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_c6657_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_c6657_int_reg.c
index a727019c7d7d85cc72f13c4d3461e7f7b1b6b81d..6140b6ae46eeba36eb121bfe83e877c307aa3a4d 100644 (file)
*
* Platform specific interrupt registration and un-registration routines.
*
- * Copyright (C) 2011-2012 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2011-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);
+}
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_c6670_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_c6670_int_reg.c
index 51c4a6c318ed39c1087a16060fbca9eac00e3003..93b5a1a19d509790f01f81ac8e73f0483b727ad0 100644 (file)
*
* 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
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);
+}
+
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_c6678_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_c6678_int_reg.c
index 71f8a43346f72e2d2eb8934af012ec373fb56cbe..2e5f35407bbf4b82d25329119777dcf674fbc38e 100644 (file)
*
* Platform specific interrupt registration and un-registration routines.
*
- * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2010-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);
+}
+
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_c66ak2e_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_c66ak2e_int_reg.c
index 1d8ae0434ebc7e0b007729522d08b39a448163ef..425423c7ff463c3b0d82ffd5db547a5c92d02c89 100644 (file)
*
* 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);
+}
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_c6748_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_c6748_int_reg.c
index cf7fdaabaa33d13f2fd3c573ad93412dd258cee0..b7f637122b518bd689b162050297770cee12aff0 100755 (executable)
*
* 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
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]);
+}
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_c6a811x_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_c6a811x_int_reg.c
index f5874ce3f4ab749d59ca99fe59645c29dc29b2c1..6c500f81951f35345f57e17139516b8f4ef31a9b 100644 (file)
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_da830_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_da830_int_reg.c
index 523acd5f968f7e8fd6cb7c61ba51207d87b24328..e903ebc3752b5fec855efdc8d1b0e06210179614 100755 (executable)
*
* 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
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]);
+}
+
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_omapl137_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_omapl137_int_reg.c
index 4598042b7884be412dd417359f482b9cb0bec251..26bdaf0a0c8521cd331f3542786d8af853509189 100644 (file)
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]);
+}
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_omapl138_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_omapl138_int_reg.c
index e82c9392bab3fce235a0c75c85e5ce24229e5ce0..2f2464c93a25de65c431dbfc1dc05f0b242cf37e 100755 (executable)
*
* 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
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]);
+}
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tci6486_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tci6486_int_reg.c
index 54220649254249d89fd1c9353b678692bb943985..fadd391797f41a5ecfaba29f91fa6451738d750d 100644 (file)
*
* Platform specific interrupt registration and un-registration routines.
*
- * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2010-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)
+{
+ 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_tci6608_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tci6608_int_reg.c
index 0bb92e44b62541d2e9a180696201aae0f74fa7e6..bfed834b026f800c4af33a79c19230c798d06849 100644 (file)
*
* Platform specific interrupt registration and un-registration routines.
*
- * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2010-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);
+}
+
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tci6614_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tci6614_int_reg.c
index a00cb918dc683cd422207b17b0eb88bfa6f32af8..098064d121a5009bd2911fd06c61c9fdec0d13cf 100644 (file)
*
* Platform specific interrupt registration and un-registration routines.
*
- * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2011-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);
+}
+
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tci6616_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tci6616_int_reg.c
index 12913c35a324a295cd4840612a98339f52ec1728..91ec00468dd031942360582808348f04709e7f61 100644 (file)
*
* 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
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);
+}
+
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tci6630k2l_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tci6630k2l_int_reg.c
index 1d4aeacc8b9c61f5c1071cad9c7b839ae99cb912..6e7de4e6cd19df5370c640cc61021e8c9433d3d4 100644 (file)
*
* 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);
+}
+
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tci6636k2h_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tci6636k2h_int_reg.c
index 4989c664ab3b1697a55afb61b5bf026080d60d1a..72eec4d4f9329c00dcdd8ea38a508ba46aa117cc 100644 (file)
*
* 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);
+}
+
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tci6638k2k_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tci6638k2k_int_reg.c
index 5caae3e20f9b0cf0d2bfba5ab04207c86b791f0a..a5394cf44e4bf336d3885aff38600c0beaa6f386 100644 (file)
*
* 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);
+}
+
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);
+}
+
diff --git a/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_ti814x_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_ti814x_int_reg.c
index f32b0207b31e11d12d7828acd3f9e17028c42f57..8cbeca891d87089a96e3bab391a8c38352c72ff7 100755 (executable)
*
* 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
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_ti816x_int_reg.c b/packages/ti/sdo/edma3/drv/sample/src/platforms/sample_ti816x_int_reg.c
index f5891ca40570db3251067a669079a5404bf78e2a..1cb7b75174fdd072f1d91e3d257977035364de12 100644 (file)
*
* Platform specific interrupt registration and un-registration routines.
*
- * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2010-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)
+{
+ 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/sample_cs.c b/packages/ti/sdo/edma3/drv/sample/src/sample_cs.c
index 2cfcc4ca851843ca1f4ee58d092e17b524545fed..0a12b6a4191f2c29586a20034bd61646b43517bc 100755 (executable)
* These implementations MUST be provided by the user / application, using the
* EDMA3 driver, for its correct functioning.
*
- * 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
#include <ti/sdo/edma3/drv/sample/bios6_edma3_drv_sample.h>
-extern uint32_t ccXferCompInt[EDMA3_MAX_EDMA3_INSTANCES][EDMA3_MAX_REGIONS];
-extern uint32_t ccErrorInt[EDMA3_MAX_EDMA3_INSTANCES];
extern uint32_t tcErrorInt[EDMA3_MAX_EDMA3_INSTANCES][EDMA3_MAX_TC];
+extern void enableXferCompInterrupt(uint32_t edma3Id);
+extern void disableXferCompInterrupt(uint32_t edma3Id);
+extern void enableErrorInterrupt(uint32_t edma3Id);
+extern void disableErrorInterrupt(uint32_t edma3Id);
/**
* Shadow Region on which the executable is running. Its value is
/* Disable EDMA3 transfer completion interrupt only */
case EDMA3_OS_PROTECT_INTERRUPT_XFER_COMPLETION :
- EventCombiner_disableEvent(ccXferCompInt[edma3InstanceId][region_id]);
+ disableXferCompInterrupt(edma3InstanceId);
+ //EventCombiner_disableEvent(ccXferCompInt[edma3InstanceId][region_id]);
break;
/* Disable EDMA3 CC error interrupt only */
case EDMA3_OS_PROTECT_INTERRUPT_CC_ERROR :
- EventCombiner_disableEvent(ccErrorInt[edma3InstanceId]);
+ disableErrorInterrupt(edma3InstanceId);
+ //EventCombiner_disableEvent(ccErrorInt[edma3InstanceId]);
break;
/* Disable EDMA3 TC error interrupt only */
/* Enable EDMA3 transfer completion interrupt only */
case EDMA3_OS_PROTECT_INTERRUPT_XFER_COMPLETION :
- EventCombiner_enableEvent(ccXferCompInt[edma3InstanceId][region_id]);
+ enableXferCompInterrupt(edma3InstanceId);
+ //EventCombiner_enableEvent(ccXferCompInt[edma3InstanceId][region_id]);
break;
/* Enable EDMA3 CC error interrupt only */
case EDMA3_OS_PROTECT_INTERRUPT_CC_ERROR :
- EventCombiner_enableEvent(ccErrorInt[edma3InstanceId]);
+ enableErrorInterrupt(edma3InstanceId);
+ //EventCombiner_enableEvent(ccErrorInt[edma3InstanceId]);
break;
/* Enable EDMA3 TC error interrupt only */
diff --git a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_c6472_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_c6472_int_reg.c
index 9234487c54682bae45491b44befc45f358a21a76..d74b73ddb030e82a5856112dcea3945ce399bae4 100644 (file)
*
* Platform specific interrupt registration and un-registration routines.
*
- * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2010-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)
+{
+ 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/rm/sample/src/platforms/sample_c6657_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_c6657_int_reg.c
index a727019c7d7d85cc72f13c4d3461e7f7b1b6b81d..6140b6ae46eeba36eb121bfe83e877c307aa3a4d 100644 (file)
*
* Platform specific interrupt registration and un-registration routines.
*
- * Copyright (C) 2011-2012 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2011-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);
+}
diff --git a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_c6670_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_c6670_int_reg.c
index 51c4a6c318ed39c1087a16060fbca9eac00e3003..93b5a1a19d509790f01f81ac8e73f0483b727ad0 100644 (file)
*
* 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
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);
+}
+
diff --git a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_c6678_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_c6678_int_reg.c
index 71f8a43346f72e2d2eb8934af012ec373fb56cbe..2e5f35407bbf4b82d25329119777dcf674fbc38e 100644 (file)
*
* Platform specific interrupt registration and un-registration routines.
*
- * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2010-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);
+}
+
diff --git a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_c66ak2e_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_c66ak2e_int_reg.c
index 1d8ae0434ebc7e0b007729522d08b39a448163ef..425423c7ff463c3b0d82ffd5db547a5c92d02c89 100644 (file)
*
* 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);
+}
diff --git a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_c6748_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_c6748_int_reg.c
index 86920d652c2b8442da3450444a1088383667cfa0..34cfeedc0b4ff7ba8c7799fe368687d9d13bcf2e 100755 (executable)
*
* 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
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]);
+}
diff --git a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_c6a811x_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_c6a811x_int_reg.c
index 7f7a5be0a21e398ebe216dd7dcde94b41f98f008..1539ac647aa478d37f770e5a75fa5437023881e8 100644 (file)
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/rm/sample/src/platforms/sample_da830_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_da830_int_reg.c
index c5b37e8a8627909bc8a7862396e7debfe421dec8..90a875ea788cc42891c35840021c1ccfc4e527f5 100755 (executable)
*
* 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
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]);
+}
+
diff --git a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_omapl137_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_omapl137_int_reg.c
index 320959d72e8e768b498f6a382ff73294fd0ccab9..29fd4b753d6bee7e8ca658e2570cfa720be3b48a 100644 (file)
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]);
+}
diff --git a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_omapl138_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_omapl138_int_reg.c
index 8e09a0270361c826605406ed4773380c4ef86f15..9d59ac3cf2c9c965752f1b2630078833764a8744 100755 (executable)
*
* 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
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]);
+}
diff --git a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_tci6486_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_tci6486_int_reg.c
index f0174983f546e84480da6cf217351a4c66e5d731..e129d775f38b98bcb6d098c9dac955efdda7b76d 100644 (file)
*
* Platform specific interrupt registration and un-registration routines.
*
- * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2010-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)
+{
+ 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/rm/sample/src/platforms/sample_tci6608_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_tci6608_int_reg.c
index 0bb92e44b62541d2e9a180696201aae0f74fa7e6..bfed834b026f800c4af33a79c19230c798d06849 100644 (file)
*
* Platform specific interrupt registration and un-registration routines.
*
- * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2010-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);
+}
+
diff --git a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_tci6614_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_tci6614_int_reg.c
index a00cb918dc683cd422207b17b0eb88bfa6f32af8..098064d121a5009bd2911fd06c61c9fdec0d13cf 100644 (file)
*
* Platform specific interrupt registration and un-registration routines.
*
- * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2011-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);
+}
+
diff --git a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_tci6616_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_tci6616_int_reg.c
index 12913c35a324a295cd4840612a98339f52ec1728..91ec00468dd031942360582808348f04709e7f61 100644 (file)
*
* 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
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);
+}
+
diff --git a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_tci6630k2l_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_tci6630k2l_int_reg.c
index 7c14110db512019770bc82a66bb8e90bb292de5f..94ea2007ba67c5eedb3d875f8f7bf2e2e2ebe578 100644 (file)
*
* 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);
+}
+
diff --git a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_tci6636k2h_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_tci6636k2h_int_reg.c
index 4989c664ab3b1697a55afb61b5bf026080d60d1a..72eec4d4f9329c00dcdd8ea38a508ba46aa117cc 100644 (file)
*
* 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);
+}
+
diff --git a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_tci6638k2k_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_tci6638k2k_int_reg.c
index 5caae3e20f9b0cf0d2bfba5ab04207c86b791f0a..a5394cf44e4bf336d3885aff38600c0beaa6f386 100644 (file)
*
* 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);
+}
+
diff --git a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_tci66ak2g02_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_tci66ak2g02_int_reg.c
index 22cd800756a2ba76adf3923e303db30f37c1d967..3a900441bf8dcd93fdb1ceac930e4ab3ef89069f 100644 (file)
*
* 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);
+}
+
diff --git a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_ti814x_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_ti814x_int_reg.c
index fa7e120b0daef2527069507da4756642339ffa0b..7e9cb31b30d53a2bf4c9d25a0fe873b5c443b206 100755 (executable)
*
* 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
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/rm/sample/src/platforms/sample_ti816x_int_reg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_ti816x_int_reg.c
index 2a63a93e24c0f90df25befe4da79c650ad1fe4de..1e50fa41a35370ff21ae84ce1992d3a96eb3cf94 100644 (file)
*
* Platform specific interrupt registration and un-registration routines.
*
- * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2010-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)
+{
+ 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/rm/sample/src/sample_cs.c b/packages/ti/sdo/edma3/rm/sample/src/sample_cs.c
index dcf4db4f9c64964a086ab76ac7594e834c2fd62c..fb45e75b432123a12e472d3a0e4edd7160bb356a 100755 (executable)
* implementations MUST be provided by the user / application, using the EDMA3\r
* Resource Manager, for its correct functioning.\r
*\r
- * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/\r
+ * Copyright (C) 2009-2017 Texas Instruments Incorporated - http://www.ti.com/\r
*\r
*\r
* Redistribution and use in source and binary forms, with or without\r
\r
#include <ti/sdo/edma3/rm/sample/bios6_edma3_rm_sample.h>\r
\r
-extern uint32_t ccXferCompInt[EDMA3_MAX_EDMA3_INSTANCES][EDMA3_MAX_REGIONS];\r
-extern uint32_t ccErrorInt[EDMA3_MAX_EDMA3_INSTANCES];\r
extern uint32_t tcErrorInt[EDMA3_MAX_EDMA3_INSTANCES][EDMA3_MAX_TC];\r
+extern void enableXferCompInterrupt(uint32_t edma3Id);\r
+extern void disableXferCompInterrupt(uint32_t edma3Id);\r
+extern void enableErrorInterrupt(uint32_t edma3Id);\r
+extern void disableErrorInterrupt(uint32_t edma3Id);\r
\r
/**\r
* Shadow Region on which the executable is running. Its value is\r
\r
/* Disable EDMA3 transfer completion interrupt only */\r
case EDMA3_OS_PROTECT_INTERRUPT_XFER_COMPLETION :\r
- EventCombiner_disableEvent(ccXferCompInt[edma3InstanceId][region_id]);\r
+ disableXferCompInterrupt(edma3InstanceId);\r
+ //EventCombiner_disableEvent(ccXferCompInt[edma3InstanceId][region_id]);\r
break;\r
\r
/* Disable EDMA3 CC error interrupt only */\r
case EDMA3_OS_PROTECT_INTERRUPT_CC_ERROR :\r
- EventCombiner_disableEvent(ccErrorInt[edma3InstanceId]);\r
+ disableErrorInterrupt(edma3InstanceId);\r
+ //EventCombiner_disableEvent(ccErrorInt[edma3InstanceId]);\r
break;\r
\r
/* Disable EDMA3 TC error interrupt only */\r
\r
/* Enable EDMA3 transfer completion interrupt only */\r
case EDMA3_OS_PROTECT_INTERRUPT_XFER_COMPLETION :\r
- EventCombiner_enableEvent(ccXferCompInt[edma3InstanceId][region_id]);\r
+ enableXferCompInterrupt(edma3InstanceId);\r
+ //EventCombiner_enableEvent(ccXferCompInt[edma3InstanceId][region_id]);\r
break;\r
\r
/* Enable EDMA3 CC error interrupt only */\r
case EDMA3_OS_PROTECT_INTERRUPT_CC_ERROR :\r
- EventCombiner_enableEvent(ccErrorInt[edma3InstanceId]);\r
+ enableErrorInterrupt(edma3InstanceId);\r
+ //EventCombiner_enableEvent(ccErrorInt[edma3InstanceId]);\r
break;\r
\r
/* Enable EDMA3 TC error interrupt only */\r
case 7:\r
/* Fall through... */\r
/* Enable the corresponding interrupt */\r
+ //enableTCErrorInterrupt(edma3InstanceId);\r
EventCombiner_enableEvent(tcErrorInt[edma3InstanceId][intState]);\r
break;\r
\r