/* Enables or disables SPIx TDMA and RDMA .  */
void SSI_SetDmaEnable(SPI_TypeDef *spi_dev, u32 newState, u32 Mask)
/* Enables or disables SPIx TDMA and RDMA .  */
void SSI_SetDmaEnable(SPI_TypeDef *spi_dev, u32 newState, u32 Mask)
{
	if (newState == DISABLE)
		spi_dev->DMACR &= ~Mask;
	else
		spi_dev->DMACR |= Mask;
}