/* DMA Channel Enable Variable Sized Peripheral Increment after Transfer. 
Ensure that the stream is disabled otherwise the setting will not be changed. */
void dma_enable_peripheral_increment_mode(uint32_t dma, uint8_t stream)
/* DMA Channel Enable Variable Sized Peripheral Increment after Transfer. 
Ensure that the stream is disabled otherwise the setting will not be changed. */
void dma_enable_peripheral_increment_mode(uint32_t dma, uint8_t stream)
{
	uint32_t reg32 = (DMA_SCR(dma, stream) | DMA_SxCR_PINC);
	DMA_SCR(dma, stream) = (reg32 & ~DMA_SxCR_PINCOS);
}