/* Configures the number of data to transfer type(Even/Odd) for the DMA last transfers and for the selected SPI.  */
void SPI_LastDMATransferCmd(SPI_TypeDef *SPIx, uint16_t SPI_LastDMATransfer)
/* Configures the number of data to transfer type(Even/Odd) for the DMA last transfers and for the selected SPI.  */
void SPI_LastDMATransferCmd(SPI_TypeDef *SPIx, uint16_t SPI_LastDMATransfer)
{
  assert_param(IS_SPI_ALL_PERIPH(SPIx));
  assert_param(IS_SPI_LAST_DMA_TRANSFER(SPI_LastDMATransfer));
  SPIx->CR2 &= CR2_LDMA_MASK;
  SPIx->CR2 |= SPI_LastDMATransfer; 
}