From 3936e7a7f1923b6ee2cc78de260db47a4045e6bd Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Sat, 7 May 2016 09:46:19 +0000 Subject: Fixed bug #740 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9444 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.c | 4 ++-- 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) -- cgit v1.2.3