Class to be able to send SPI data with almost no overhead, useful at very high speeds.

Dependents:   MakerBotServer epaper_mbed_130411_KL25Z epaper_mbed_test epaper_mbed_test_copy1 ... more

Issue: Error: No suitable conversion function from "spi_s" to "SPI_TypeDef *" exists

When compiling for the STM32NucleoF401, I get the following error:

Error: No suitable conversion function from "spi_s" to "SPI_TypeDef *" exists in "BurstSPI/BurstSPI_STM32F4.cpp", Line: 14, Col: 40

1 comment:

15 Oct 2016

Either of the following fix this:

SPI_TypeDef *spi = reinterpret_cast<SPI_TypeDef*&>(_spi.spi);
SPI_TypeDef *spi = _spi.spi.handle.Instance;