/* DMA Stream Clear Interrupt Flag. 
The interrupt flag for the stream is cleared. More than one interrupt for the same stream may be cleared by using the bitwise OR of the interrupt flags. */
void dma_clear_interrupt_flags(uint32_t dma, uint8_t stream, uint32_t interrupts)
/* DMA Stream Clear Interrupt Flag. 
The interrupt flag for the stream is cleared. More than one interrupt for the same stream may be cleared by using the bitwise OR of the interrupt flags. */
void dma_clear_interrupt_flags(uint32_t dma, uint8_t stream, uint32_t interrupts)
{
	uint32_t flags = (interrupts << DMA_ISR_OFFSET(stream));
	if (stream < 4) {
		DMA_LIFCR(dma) = flags;
	} else {
		DMA_HIFCR(dma) = flags;
	}
}