/* Sends a byte through the SPI interface and return the byte received from the SPI bus.  */
uint8_t sFLASH_SendByte(uint8_t byte)
/* Sends a byte through the SPI interface and return the byte received from the SPI bus.  */
uint8_t sFLASH_SendByte(uint8_t byte)
{
  while (SPI_I2S_GetFlagStatus(sFLASH_SPI, SPI_I2S_FLAG_TXE) == RESET);
  SPI_I2S_SendData(sFLASH_SPI, byte);
  while (SPI_I2S_GetFlagStatus(sFLASH_SPI, SPI_I2S_FLAG_RXNE) == RESET);
  return SPI_I2S_ReceiveData(sFLASH_SPI);
}