stm32/adc: Fix VBAT_DIV to be 4 for STM32F411.

Fixes issue #4794.
This commit is contained in:
Damien George 2019-05-20 14:37:28 +10:00
parent 653e1756c0
commit 1f63e9b701
1 changed files with 7 additions and 6 deletions

View File

@ -131,14 +131,15 @@
#if defined(STM32F091xC)
#define VBAT_DIV (2)
#elif defined(STM32F405xx) || defined(STM32F415xx) || \
defined(STM32F407xx) || defined(STM32F417xx) || \
defined(STM32F401xC) || defined(STM32F401xE) || \
defined(STM32F411xE)
defined(STM32F407xx) || defined(STM32F417xx) || \
defined(STM32F401xC) || defined(STM32F401xE)
#define VBAT_DIV (2)
#elif defined(STM32F427xx) || defined(STM32F429xx) || \
#elif defined(STM32F411xE) || defined(STM32F413xx) || \
defined(STM32F427xx) || defined(STM32F429xx) || \
defined(STM32F437xx) || defined(STM32F439xx) || \
defined(STM32F446xx) || defined(STM32F413xx) || \
defined(STM32F722xx) || defined(STM32F723xx) || \
defined(STM32F446xx)
#define VBAT_DIV (4)
#elif defined(STM32F722xx) || defined(STM32F723xx) || \
defined(STM32F732xx) || defined(STM32F733xx) || \
defined(STM32F746xx) || defined(STM32F765xx) || \
defined(STM32F767xx) || defined(STM32F769xx)