aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/stm32f0_i2c.c
diff options
context:
space:
mode:
authorFOG_Yamato <contact@cybersnets.com>2024-04-03 05:02:22 +0300
committerGitHub <noreply@github.com>2024-04-02 22:02:22 -0400
commit67c152745e573afe82916bc40892dd1f6ac1b40a (patch)
tree842f9f69a76971f6a2657ed14295721b8513cb9e /src/stm32/stm32f0_i2c.c
parent9e1cbdcee3defd9ce173316a96074de5b13e7a74 (diff)
downloadkutter-67c152745e573afe82916bc40892dd1f6ac1b40a.tar.gz
kutter-67c152745e573afe82916bc40892dd1f6ac1b40a.tar.xz
kutter-67c152745e573afe82916bc40892dd1f6ac1b40a.zip
stm32: Add i2c3 bus to STM32H7 (#6541)
Signed-off-by: Balanuta Simion <simion@fogyamato.dev>
Diffstat (limited to 'src/stm32/stm32f0_i2c.c')
-rw-r--r--src/stm32/stm32f0_i2c.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stm32/stm32f0_i2c.c b/src/stm32/stm32f0_i2c.c
index 21e65488..1441079f 100644
--- a/src/stm32/stm32f0_i2c.c
+++ b/src/stm32/stm32f0_i2c.c
@@ -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[] = {
@@ -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
};