FM
Dependencies: SimpleDMA eeprom mbed-rtos mbed FreescaleIAP
Fork of CDMS_CODE by
Diff: dmaSPIslave.h
- Revision:
- 237:12061b714e47
- Parent:
- 178:5b42117b2ef1
- Child:
- 338:d63eb331a67d
diff -r c127b15409b2 -r 12061b714e47 dmaSPIslave.h --- 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