CDMS_CODE_samp_23SEP_DMA_flag

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE_samp_23SEP_DMA by iitm sat

Revision:
237:12061b714e47
Parent:
178:5b42117b2ef1
--- a/dmaSPIslave.h	Wed Jul 06 08:09:22 2016 +0000
+++ b/dmaSPIslave.h	Thu Jul 07 16:45:05 2016 +0000
@@ -41,6 +41,13 @@
 
         }
         
+        void bulkRead_pause(){
+            read_dma.attach(NULL);
+            }
+            
+        void bulkRead_resume(void (*fun)(void)){
+            read_dma.attach(fun);
+            }
 /*
 @brief:     start the dma read process : has to be done everytime the buffer gets filled, can be used repeatedly
 @param:     none
@@ -73,4 +80,4 @@
         int length;
         SimpleDMA read_dma;
 };
-#endif
\ No newline at end of file
+#endif