
Repository for CDMS code
Dependencies: SimpleDMA mbed-rtos mbed eeprom
Fork of COM_MNG_TMTC_SIMPLE by
Revision 178:5b42117b2ef1, committed 2016-04-22
- Comitter:
- ee12b079
- Date:
- Fri Apr 22 17:55:19 2016 +0000
- Parent:
- 177:2fa8582896e0
- Child:
- 181:834d02830729
- Commit message:
- DMA updated, need to add to send TC to PL
Changed in this revision
dmaSPIslave.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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;