git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13785 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2020-07-24 09:00:38 +00:00
parent eb3cf6a1f6
commit bdb77e4328
1 changed files with 8 additions and 8 deletions

View File

@ -572,12 +572,12 @@ void adc_lld_start_conversion(ADCDriver *adcp) {
cfgr = grpp->cfgr | ADC_CFGR_DMNGT_CIRCULAR;
if (adcp->depth > 1) {
/* If circular buffer depth > 1, then the half transfer interrupt
is enabled in order to allow streaming processing.*/
is enabled in order to allow streaming processing.*/
dmamode |= STM32_DMA_CR_HTIE;
}
else {
cfgr = grpp->cfgr | ADC_CFGR_DMNGT_ONESHOT;
}
}
else {
cfgr = grpp->cfgr | ADC_CFGR_DMNGT_ONESHOT;
}
/* DMA setup.*/
@ -603,12 +603,12 @@ void adc_lld_start_conversion(ADCDriver *adcp) {
cfgr = grpp->cfgr | ADC_CFGR_DMNGT_CIRCULAR;
if (adcp->depth > 1) {
/* If circular buffer depth > 1, then the half transfer interrupt
is enabled in order to allow streaming processing.*/
is enabled in order to allow streaming processing.*/
dmamode |= STM32_BDMA_CR_HTIE;
}
else {
cfgr = grpp->cfgr | ADC_CFGR_DMNGT_ONESHOT;
}
}
else {
cfgr = grpp->cfgr | ADC_CFGR_DMNGT_ONESHOT;
}
/* DMA setup.*/