/* DMA Channel Enable Transfers from a Peripheral. 
The data direction is set to read from a peripheral. */
void dma_set_read_from_peripheral(uint32_t dma, uint8_t channel)
/* DMA Channel Enable Transfers from a Peripheral. 
The data direction is set to read from a peripheral. */
void dma_set_read_from_peripheral(uint32_t dma, uint8_t channel)
{
	DMA_CCR(dma, channel) &= ~DMA_CCR_DIR;
}