A simple library to access the DMA functionality.

Fork of SimpleDMA by Erik -

Revision:
4:c3a84c6c432c
Parent:
3:34f5bf8adfa0
Child:
5:d9f46ef80e20
--- a/SimpleDMA.h	Thu Dec 26 12:19:29 2013 +0000
+++ b/SimpleDMA.h	Thu Dec 26 16:31:54 2013 +0000
@@ -110,13 +110,11 @@
 * @param function - function to call upon completion (may be a member function)
 */
 void attach(void (*function)(void)) {
-    irq_en = function;
     _callback.attach(function);
     }
     
 template<typename T>
     void attach(T *object, void (T::*member)(void)) {
-        irq_en = object;
         _callback.attach(object, member);
     }
 
@@ -152,7 +150,6 @@
 
 //IRQ handlers
 FunctionPointer _callback;
-bool irq_en;
 void irq_handler(void);
 
 static SimpleDMA *irq_owner[4];