Skip to content

Commit 87bb3fe

Browse files
theticrcloran
andauthored
stm32: Add support for additional i2c bus (#647)
Signed-off-by: Russell Cloran <rcloran@gmail.com> Co-authored-by: Russell Cloran <rcloran@gmail.com>
1 parent fd1b5b4 commit 87bb3fe

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/stm32/i2c.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ DECL_ENUMERATION("i2c_bus", "i2c2a", 4);
3232
DECL_CONSTANT_STR("BUS_PINS_i2c2a", "PH4,PH5");
3333
DECL_ENUMERATION("i2c_bus", "i2c3a", 5);
3434
DECL_CONSTANT_STR("BUS_PINS_i2c3a", "PH7,PH8");
35+
DECL_ENUMERATION("i2c_bus", "i2c2_PF1_PF0", 6);
36+
DECL_CONSTANT_STR("BUS_PINS_i2c2_PF1_PF0", "PF1,PF0");
3537
#endif
3638
#endif
3739

@@ -44,6 +46,7 @@ static const struct i2c_info i2c_bus[] = {
4446
#if CONFIG_MACH_STM32F2 || CONFIG_MACH_STM32F4x5
4547
{ I2C2, GPIO('H', 4), GPIO('H', 5) },
4648
{ I2C3, GPIO('H', 7), GPIO('H', 8) },
49+
{ I2C2, GPIO('F', 1), GPIO('F', 0) },
4750
#endif
4851
#endif
4952
};

0 commit comments

Comments
 (0)