AnsweredAssumed Answered

Problem found in STM32Cube STM32L1 HAL ADC Driver

Question asked by smith.chuck on Sep 17, 2015
Latest reply on Sep 21, 2015 by 68516
In stm32l1xx_hal_ad.c in version 1.30 of the STM32Cube library, at line 538, there is a comparison of ScanConvMode to ADC_SCAN_ENABLE.....that works as long as the caller set ScanConvMode to ADC_SCAN_ENABLE rather than the legacy ENABLE, which is defined as a different value. Elsewhere in the library (stm32l1xx_hal_adc.h), there is a check for ADC_SCAN_ENABLE or ENABLE, to support backwards compatibility. I suggest adding a similar check here.