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 | |
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
-rw-r--r-- | os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.c | 4 | ||||
-rw-r--r-- | readme.txt | 2 |
2 files changed, 4 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;
}
/**
diff --git a/readme.txt b/readme.txt index 285ca7988..838f8ca71 100644 --- a/readme.txt +++ b/readme.txt @@ -111,6 +111,8 @@ - RT: Merged RT4.
- NIL: Merged NIL2.
- NIL: Added STM32F7 demo.
+- HAL: Fixed bug in VREF enable/disable functions in ADCv3 driver
+ (bug #740)(backported to 16.1.5).
- HAL: Fixed DAC driver not enabled for STM32F4x7 and STM32F4x9 devices
(bug #739)(backported to 3.0.6 and 16.1.5).
- HAL: Fixed bug in interrupt handlers in STM32F4xx EXT driver (bug #738)
|