git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@16143 27425a3e-05d8-49a3-a47f-9c15f0e5edd8

This commit is contained in:
Giovanni Di Sirio 2023-03-08 12:12:59 +00:00
parent 6c946072fb
commit 2d5e9bce4c
1 changed files with 1 additions and 4 deletions

View File

@ -251,9 +251,7 @@ void adc_lld_stop(ADCDriver *adcp) {
}
/* Regulator off.*/
#if defined(ADC_CR_ADVREGEN)
adcp->adc->CR &= ~ADC_CR_ADVREGEN;
#endif
adcp->adc->CR = 0;
#if STM32_ADC_USE_ADC1
if (&ADCD1 == adcp) {
@ -271,7 +269,6 @@ void adc_lld_stop(ADCDriver *adcp) {
* @notapi
*/
void adc_lld_start_conversion(ADCDriver *adcp) {
uint32_t mode, cfgr1;
const ADCConversionGroup *grpp = adcp->grpp;