CDMS code for testing sbc

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE by shubham c

Revision:
245:da9d1bd999da
Parent:
178:5b42117b2ef1
--- a/dmaSPIslave.h	Sat Jul 09 13:11:25 2016 +0000
+++ b/dmaSPIslave.h	Sun Jul 10 13:47:26 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