DMA library for the KL25Z

Dependents:   SimpleDMA_HelloWorld RTOS_SPI spiDMAtest Pinscape_Controller_v1 ... more

Introduction

SimpleDMA is a standard library for different DMA peripherals. Currently the LPC1768, KL46Z and KL25Z are supported. It provided one set of functions for different peripherals. It does not allow for usage of all the advanced functions, partially because the goal was to provide a simple interface, and partially because they are different for different microcontrollers.

Examples

Helloworld: http://mbed.org/users/Sissors/code/SimpleDMA_HelloWorld/

Example in a library (SPI): http://mbed.org/users/Sissors/code/RTOS_SPI/

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];