diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-05-07 09:46:19 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-05-07 09:46:19 +0000 |
commit | 3936e7a7f1923b6ee2cc78de260db47a4045e6bd (patch) | |
tree | 3756e4f63393d6538bc544bdfb67f93acaeb3e7c /os | |
parent | 3c2cfeeab1510062731d5e48516ab4563d317052 (diff) | |
download | ChibiOS-3936e7a7f1923b6ee2cc78de260db47a4045e6bd.tar.gz ChibiOS-3936e7a7f1923b6ee2cc78de260db47a4045e6bd.tar.bz2 ChibiOS-3936e7a7f1923b6ee2cc78de260db47a4045e6bd.zip |
Fixed bug #740
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9444 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-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;
}
/**
|