DMA issue to be tested
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: dmaSPIslave.h
- Revision:
- 217:5006c998ea50
- Parent:
- 178:5b42117b2ef1
diff -r d2ac4580960d -r 5006c998ea50 dmaSPIslave.h --- a/dmaSPIslave.h Sat Jul 02 14:25:11 2016 +0000 +++ b/dmaSPIslave.h Sun Jul 03 18:50:32 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