/* DMA Channel Set Memory Word Width. 
Set the memory word width 8 bits, 16 bits, or 32 bits. Refer to datasheet for alignment information if the source and destination widths do not match. */
void dma_set_memory_size(uint32_t dma, uint8_t channel, uint32_t mem_size)
/* DMA Channel Set Memory Word Width. 
Set the memory word width 8 bits, 16 bits, or 32 bits. Refer to datasheet for alignment information if the source and destination widths do not match. */
void dma_set_memory_size(uint32_t dma, uint8_t channel, uint32_t mem_size)
{
	DMA_CCR(dma, channel) &= ~(DMA_CCR_MSIZE_MASK);
	DMA_CCR(dma, channel) |= mem_size;
}