/* SPI Data Read. 
Data is read from the SPI interface after the incoming transfer has finished. */
uint16_t spi_read(uint32_t spi)
/* SPI Data Read. 
Data is read from the SPI interface after the incoming transfer has finished. */
uint16_t spi_read(uint32_t spi)
{
	while (!(SPI_SR(spi) & SPI_SR_RXNE));
	return SPI_DR(spi);
}