/* DMA Stream Set Peripheral Word Width. 
Ensure that the stream is disabled otherwise the setting will not be changed. */
void dma_set_peripheral_size(uint32_t dma, uint8_t stream, uint32_t peripheral_size)
/* DMA Stream Set Peripheral Word Width. 
Ensure that the stream is disabled otherwise the setting will not be changed. */
void dma_set_peripheral_size(uint32_t dma, uint8_t stream, uint32_t peripheral_size)
{
	DMA_SCR(dma, stream) &= ~(DMA_SxCR_PSIZE_MASK);
	DMA_SCR(dma, stream) |= peripheral_size;
}