Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE 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;
