/* DMA Channel Set Priority. 
Channel Priority has four levels: low to very high. This has precedence over the hardware priority. */
void dma_set_priority(uint32_t dma, uint8_t channel, uint32_t prio)
/* DMA Channel Set Priority. 
Channel Priority has four levels: low to very high. This has precedence over the hardware priority. */
void dma_set_priority(uint32_t dma, uint8_t channel, uint32_t prio)
{
	DMA_CCR(dma, channel) &= ~(DMA_CCR_PL_MASK);
	DMA_CCR(dma, channel) |= prio;
}