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.
Fork of BurstSPI by
Revision 14:98658a80a698, committed 2016-10-15
- Comitter:
- EricWieser
- Date:
- Sat Oct 15 16:01:12 2016 +0000
- Parent:
- 13:bc069279eb37
- Commit message:
- Fix compilation errors on the STM32Nucleo
Changed in this revision
BurstSPI_STM32F4.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/BurstSPI_STM32F4.cpp Sat May 16 11:09:59 2015 +0000 +++ b/BurstSPI_STM32F4.cpp Sat Oct 15 16:01:12 2016 +0000 @@ -3,7 +3,7 @@ void BurstSPI::fastWrite(int data) { - SPI_TypeDef *spi = (SPI_TypeDef *)(_spi.spi); + SPI_TypeDef *spi = _spi.spi.handle.Instance; // Check if data is transmitted while ((spi->SR & SPI_SR_TXE) == 0); spi->DR = data; @@ -11,7 +11,7 @@ void BurstSPI::clearRX( void ) { //Check if the RX buffer is busy - SPI_TypeDef *spi = (SPI_TypeDef *)(_spi.spi); + SPI_TypeDef *spi = _spi.spi.handle.Instance; //While busy, keep checking while (spi->SR & SPI_SR_BSY){ // Check RX buffer readable