diff --git a/cpu/stm32f4/periph/i2c.c b/cpu/stm32f4/periph/i2c.c index 0802685d46a28314cbf86656fe8d3190535bb9fc..cdfea053befea9048df2b4d59e80fc4a6cc1b093 100644 --- a/cpu/stm32f4/periph/i2c.c +++ b/cpu/stm32f4/periph/i2c.c @@ -73,7 +73,13 @@ int i2c_init_master(i2c_t dev, i2c_speed_t speed) /* read speed configuration */ switch (speed) { + case I2C_SPEED_LOW: + /* 10Kbit/s */ + ccr = I2C_APBCLK / 20000; + break; + case I2C_SPEED_NORMAL: + /* 100Kbit/s */ ccr = I2C_APBCLK / 200000; break;