/* Configures the data size for the selected SPI.  */
void SPI_DataSizeConfig(SPI_TypeDef *SPIx, uint16_t SPI_DataSize)
/* Configures the data size for the selected SPI.  */
void SPI_DataSizeConfig(SPI_TypeDef *SPIx, uint16_t SPI_DataSize)
{
  assert_param(IS_SPI_ALL_PERIPH(SPIx));
  assert_param(IS_SPI_DATASIZE(SPI_DataSize));
  SPIx->CR1 &= (uint16_t)~SPI_DataSize_16b;
  SPIx->CR1 |= SPI_DataSize;
}