From 61fda37031e648dcf9650ccec07d01f27b889102 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 2 Feb 2013 10:28:41 +0000 Subject: [PATCH] Fixed bug 3602950. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5100 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32F4xx/adc_lld.c | 2 ++ readme.txt | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/os/hal/platforms/STM32F4xx/adc_lld.c b/os/hal/platforms/STM32F4xx/adc_lld.c index fef357c3b..1398ea4f3 100644 --- a/os/hal/platforms/STM32F4xx/adc_lld.c +++ b/os/hal/platforms/STM32F4xx/adc_lld.c @@ -399,6 +399,7 @@ void adcSTM32DisableTSVREFE(void) { * @brief Enables the VBATE bit. * @details The VBATE bit is required in order to sample the VBAT channel. * @note This is an STM32-only functionality. + * @note This function is meant to be called after @p adcStart(). */ void adcSTM32EnableVBATE(void) { @@ -409,6 +410,7 @@ void adcSTM32EnableVBATE(void) { * @brief Disables the VBATE bit. * @details The VBATE bit is required in order to sample the VBAT channel. * @note This is an STM32-only functionality. + * @note This function is meant to be called after @p adcStart(). */ void adcSTM32DisableVBATE(void) { diff --git a/readme.txt b/readme.txt index fc5e8d493..a1d689092 100644 --- a/readme.txt +++ b/readme.txt @@ -82,7 +82,10 @@ ***************************************************************************** *** 2.5.2 *** -- FIX: Fixed duplicated code in hal_lld.h (STM32F4xx) (bug 3602544). +- FIX: Fixed adcSTM32EnableTSVREFE must be called AFTER adcStart (bug + 3602950). +- FIX: Fixed duplicated code in hal_lld.h (STM32F4xx) (bug 3602544) + (backported to 2.4.4). - FIX: Fixed #define typo in usb_lld.h (OTGv1) (bug 3602306). - FIX: Fixed STM32F0 RCC enable/disable/reset functions for CRC and WWDG (bug 3602150).