SPI slave DMA-read program for FRDMKL46Z, verified, working

Dependencies:   SimpleDMA mbed-rtos mbed

Revision:
3:e59d61aac1e1
Parent:
2:16545dbc88ae
--- a/dmaSPIslave.h	Thu Jul 16 05:40:25 2015 +0000
+++ b/dmaSPIslave.h	Fri Apr 22 17:58:23 2016 +0000
@@ -38,7 +38,10 @@
             
 //            attach interrupt function
             read_dma.attach(fun);
-
+        }
+        
+        void bulkRead_restart(){
+            _spi.spi->C2 |= SPI_C2_RXDMAE_MASK;
         }
         
 /*