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.
Dependents: MakerBotServer epaper_mbed_130411_KL25Z epaper_mbed_test epaper_mbed_test_copy1 ... more

Add following "BurstSPI_STMF103C8.cpp" and make according changes in "BurstSPI_Unsupported.cpp"
#if defined(TARGET_STM32F103C8) #include "BurstSPI.h" void BurstSPI::fastWrite(int data) { SPI_TypeDef *spi = (SPI_TypeDef *)(_peripheral->spi.spi.handle.Instance); // Check if data is transmitted while ((spi->SR & SPI_SR_TXE) == 0); spi->DR = data; } void BurstSPI::clearRX( void ) { const SPI_TypeDef *spi = (SPI_TypeDef *)(_peripheral->spi.spi.handle.Instance); while (spi->SR & SPI_SR_BSY){ // Check RX buffer readable while ((spi->SR & SPI_SR_RXNE) == 0); int dummy = spi->DR; (void)dummy; // suppress UNUSED warning } } #endif