/* DMA Channel Set the Peripheral Address. 
Set the address of the peripheral register to or from which data is to be transferred. Refer to the documentation for the specific peripheral. */
void dma_set_peripheral_address(uint32_t dma, uint8_t channel, uint32_t address)
/* DMA Channel Set the Peripheral Address. 
Set the address of the peripheral register to or from which data is to be transferred. Refer to the documentation for the specific peripheral. */
void dma_set_peripheral_address(uint32_t dma, uint8_t channel, uint32_t address)
{
	if (!(DMA_CCR(dma, channel) & DMA_CCR_EN)) {
		DMA_CPAR(dma, channel) = (uint32_t) address;
	}
}