/* DMA Stream Read Current Memory Target. 
In double buffer mode, return the current memory target (M0 or M1). It is possible to update the memory pointer in the register that is  */
uint8_t dma_get_target(uint32_t dma, uint8_t stream)
/* DMA Stream Read Current Memory Target. 
In double buffer mode, return the current memory target (M0 or M1). It is possible to update the memory pointer in the register that is  */
uint8_t dma_get_target(uint32_t dma, uint8_t stream)
{
	if (DMA_SCR(dma, stream) & DMA_SxCR_CT) {
		return 1;
	}
	return 0;
}