Skip to content

Commit

Permalink
stm32: Add i2c3 bus to STM32H7 (#6541)
Browse files Browse the repository at this point in the history
Signed-off-by: Balanuta Simion <simion@fogyamato.dev>
  • Loading branch information
FOG-Yamato authored Apr 3, 2024
1 parent 9e1cbdc commit 67c1527
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stm32/stm32f0_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ struct i2c_info {
DECL_CONSTANT_STR("BUS_PINS_i2c1_PB8_PB9", "PB8,PB9");
DECL_ENUMERATION("i2c_bus", "i2c2_PB10_PB11", 2);
DECL_CONSTANT_STR("BUS_PINS_i2c2_PB10_PB11", "PB10,PB11");
DECL_ENUMERATION("i2c_bus", "i2c3_PA8_PC9", 3);
DECL_CONSTANT_STR("BUS_PINS_i2c3_PA8_PC9", "PA8,PC9");
#endif

static const struct i2c_info i2c_bus[] = {
Expand Down Expand Up @@ -123,6 +125,7 @@ static const struct i2c_info i2c_bus[] = {
{ I2C1, GPIO('B', 6), GPIO('B', 7), GPIO_FUNCTION(4) },
{ I2C1, GPIO('B', 8), GPIO('B', 9), GPIO_FUNCTION(4) },
{ I2C2, GPIO('B', 10), GPIO('B', 11), GPIO_FUNCTION(4) },
{ I2C3, GPIO('A', 8), GPIO('C', 9), GPIO_FUNCTION(4) },
#endif
};

Expand Down

0 comments on commit 67c1527

Please sign in to comment.