stm32: Support building for STM32F745.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2022-03-22 16:01:09 +11:00
parent bb0ca00b77
commit 66fe3d5cb5
2 changed files with 2 additions and 1 deletions

View File

@ -146,6 +146,7 @@
#define VBAT_DIV (4)
#elif defined(STM32F722xx) || defined(STM32F723xx) || \
defined(STM32F732xx) || defined(STM32F733xx) || \
defined(STM32F745xx) || \
defined(STM32F746xx) || defined(STM32F765xx) || \
defined(STM32F767xx) || defined(STM32F769xx)
#define VBAT_DIV (4)

View File

@ -137,7 +137,7 @@ const pyb_i2c_obj_t pyb_i2c_obj[] = {
#define PYB_I2C_TIMINGR (1)
#if defined(STM32F746xx)
#if defined(STM32F745xx) || defined(STM32F746xx)
// The value 0x40912732 was obtained from the DISCOVERY_I2Cx_TIMING constant
// defined in the STM32F7Cube file Drivers/BSP/STM32F746G-Discovery/stm32f7456g_discovery.h