diff options
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.c b/os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.c index ba987adc9..5a01134ef 100644 --- a/os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.c +++ b/os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.c @@ -869,7 +869,7 @@ void adc_lld_stop_conversion(ADCDriver *adcp) { */
void adcSTM32EnableVREF(ADCDriver *adcp) {
- adcp->adcc->CCR |= ADC_CCR_VBATEN;
+ adcp->adcc->CCR |= ADC_CCR_VREFEN;
}
/**
@@ -884,7 +884,7 @@ void adcSTM32EnableVREF(ADCDriver *adcp) { */
void adcSTM32DisableVREF(ADCDriver *adcp) {
- adcp->adcc->CCR &= ~ADC_CCR_VBATEN;
+ adcp->adcc->CCR &= ~ADC_CCR_VREFEN;
}
/**
|