/* ADC Set DMA to Terminate. 
This must be set to allow DMA to terminate after the last conversion in the DMA sequence. This can avoid overrun errors. */
void adc_set_dma_terminate(uint32_t adc)
/* ADC Set DMA to Terminate. 
This must be set to allow DMA to terminate after the last conversion in the DMA sequence. This can avoid overrun errors. */
void adc_set_dma_terminate(uint32_t adc)
{
	ADC_CR2(adc) &= ~ADC_CR2_DDS;
}