diff options
| author | Damien George <damien@micropython.org> | 2022-03-22 16:01:09 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-03-22 16:01:09 +1100 |
| commit | 66fe3d5cb5b42a48c0b72480bc1fc54994a91af1 (patch) | |
| tree | c9ea35852130bc5ca41b289a0cefa84e4b494f20 | |
| parent | bb0ca00b77b3ccb77bad857373df39556612444a (diff) | |
stm32: Support building for STM32F745.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | ports/stm32/adc.c | 1 | ||||
| -rw-r--r-- | ports/stm32/pyb_i2c.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ports/stm32/adc.c b/ports/stm32/adc.c index 1d4beafa4..c5ca6306e 100644 --- a/ports/stm32/adc.c +++ b/ports/stm32/adc.c @@ -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) diff --git a/ports/stm32/pyb_i2c.c b/ports/stm32/pyb_i2c.c index 70a8e9f09..5cd7c0c8b 100644 --- a/ports/stm32/pyb_i2c.c +++ b/ports/stm32/pyb_i2c.c @@ -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 |
