/* DMA Set FIFO Threshold. 
This is the filled level at which data is transferred out of the FIFO to the destination. */
void dma_set_fifo_threshold(uint32_t dma, uint8_t stream, uint32_t threshold)
/* DMA Set FIFO Threshold. 
This is the filled level at which data is transferred out of the FIFO to the destination. */
void dma_set_fifo_threshold(uint32_t dma, uint8_t stream, uint32_t threshold)
{
	uint32_t reg32 = (DMA_SFCR(dma, stream) & ~DMA_SxFCR_FTH_MASK);
	DMA_SFCR(dma, stream) = (reg32 | threshold);
}