diff options
Diffstat (limited to 'platforms/chibios/drivers/i2c_master.c')
| -rw-r--r-- | platforms/chibios/drivers/i2c_master.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platforms/chibios/drivers/i2c_master.c b/platforms/chibios/drivers/i2c_master.c index 63e85ae87..43591d56f 100644 --- a/platforms/chibios/drivers/i2c_master.c +++ b/platforms/chibios/drivers/i2c_master.c | |||
| @@ -38,6 +38,9 @@ static const I2CConfig i2cconfig = { | |||
| 38 | I2C1_OPMODE, | 38 | I2C1_OPMODE, |
| 39 | I2C1_CLOCK_SPEED, | 39 | I2C1_CLOCK_SPEED, |
| 40 | I2C1_DUTY_CYCLE, | 40 | I2C1_DUTY_CYCLE, |
| 41 | #elif defined(WB32F3G71xx) | ||
| 42 | I2C1_OPMODE, | ||
| 43 | I2C1_CLOCK_SPEED, | ||
| 41 | #else | 44 | #else |
| 42 | // This configures the I2C clock to 400khz assuming a 72Mhz clock | 45 | // This configures the I2C clock to 400khz assuming a 72Mhz clock |
| 43 | // For more info : https://www.st.com/en/embedded-software/stsw-stm32126.html | 46 | // For more info : https://www.st.com/en/embedded-software/stsw-stm32126.html |
