publishing to check changes in cdms code
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE_samp_23SEP_DMA_flag by
Diff: dmaSPIslave.h
- Revision:
- 178:5b42117b2ef1
- Parent:
- 101:bece931236a2
- Child:
- 217:5006c998ea50
- Child:
- 237:12061b714e47
--- a/dmaSPIslave.h Fri Apr 22 15:52:58 2016 +0000 +++ b/dmaSPIslave.h Fri Apr 22 17:55:19 2016 +0000 @@ -52,7 +52,7 @@ } /* -@brief: end dma process and return back to normal spi mode +@brief: end dma process and return back to normal spi mode, there should not be an unfinished 'start' when running end @param: none @return: none */ @@ -61,6 +61,14 @@ _spi.spi->C2 &= ~(SPI_C2_RXDMAE_MASK); } +/* +@brief: restart the dma process after 'end'ing +@param: none +@return: none +*/ + void bulkRead_restart(){ + _spi.spi->C2 |= SPI_C2_RXDMAE_MASK; + } private: int length; SimpleDMA read_dma;