File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -136,11 +136,17 @@ const pyb_i2c_obj_t pyb_i2c_obj[] = {
136
136
137
137
// The value 0x40912732 was obtained from the DISCOVERY_I2Cx_TIMING constant
138
138
// defined in the STM32F7Cube file Drivers/BSP/STM32F746G-Discovery/stm32f7456g_discovery.h
139
- #define MICROPY_HW_I2C_BAUDRATE_TIMING {{100000, 0x40912732}}
140
- #define MICROPY_HW_I2C_BAUDRATE_DEFAULT (100000)
141
- #define MICROPY_HW_I2C_BAUDRATE_MAX (100000)
139
+ #define MICROPY_HW_I2C_BAUDRATE_TIMING { \
140
+ {100000, 0x40912732}, \
141
+ {400000, 0x10911823}, \
142
+ {1000000, 0x00611116}, \
143
+ }
144
+ #define MICROPY_HW_I2C_BAUDRATE_DEFAULT (400000)
145
+ #define MICROPY_HW_I2C_BAUDRATE_MAX (1000000)
142
146
143
- #elif defined(STM32F767xx ) || defined(STM32F769xx )
147
+ #elif defined(STM32F722xx ) || defined(STM32F723xx ) \
148
+ || defined(STM32F732xx ) || defined(STM32F733xx ) \
149
+ || defined(STM32F767xx ) || defined(STM32F769xx )
144
150
145
151
// These timing values are for f_I2CCLK=54MHz and are only approximate
146
152
#define MICROPY_HW_I2C_BAUDRATE_TIMING { \
You can’t perform that action at this time.
0 commit comments