/* Returns the most recent received data by the SPI peripheral.  */
uint8_t SPI_ReceiveData(SPI_TypeDef *SPIx)
/* Returns the most recent received data by the SPI peripheral.  */
uint8_t SPI_ReceiveData(SPI_TypeDef *SPIx)
{
  return ((uint8_t)SPIx->DR);
}