/* Sends a Half Word through the SPI interface and return the Half Word received from the SPI bus.  */
uint16_t sFLASH_SendHalfWord(uint16_t HalfWord)
/* Sends a Half Word through the SPI interface and return the Half Word received from the SPI bus.  */
uint16_t sFLASH_SendHalfWord(uint16_t HalfWord)
{
  while (SPI_I2S_GetFlagStatus(sFLASH_SPI, SPI_I2S_FLAG_TXE) == RESET);
  SPI_I2S_SendData(sFLASH_SPI, HalfWord);
  while (SPI_I2S_GetFlagStatus(sFLASH_SPI, SPI_I2S_FLAG_RXNE) == RESET);
  return SPI_I2S_ReceiveData(sFLASH_SPI);
}