/* DMA Channel Clear Interrupt Flag. 
The interrupt flag for the channel is cleared. More than one interrupt for the same channel may be cleared by using the logical OR of the interrupt flags. */
void dma_clear_interrupt_flags(uint32_t dma, uint8_t channel, uint32_t interrupts)
/* DMA Channel Clear Interrupt Flag. 
The interrupt flag for the channel is cleared. More than one interrupt for the same channel may be cleared by using the logical OR of the interrupt flags. */
void dma_clear_interrupt_flags(uint32_t dma, uint8_t channel, uint32_t interrupts)
{
	uint32_t flags = (interrupts << DMA_FLAG_OFFSET(channel));
	DMA_IFCR(dma) = flags;
}