/* DMA Channel Enable Memory to Memory Transfers. 
Memory to memory transfers do not require a trigger to activate each transfer. Transfers begin immediately the channel has been enabled, and proceed without intervention. */
void dma_enable_mem2mem_mode(uint32_t dma, uint8_t channel)
/* DMA Channel Enable Memory to Memory Transfers. 
Memory to memory transfers do not require a trigger to activate each transfer. Transfers begin immediately the channel has been enabled, and proceed without intervention. */
void dma_enable_mem2mem_mode(uint32_t dma, uint8_t channel)
{
	DMA_CCR(dma, channel) |= DMA_CCR_MEM2MEM;
	DMA_CCR(dma, channel) &= ~DMA_CCR_CIRC;
}