aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/stm32f0_i2c.c
diff options
context:
space:
mode:
authorFrederic Morin <frederic.morin.8@gmail.com>2023-03-05 19:15:43 -0500
committerKevinOConnor <kevin@koconnor.net>2023-05-07 11:15:05 -0400
commit33b18fd62ba73c90054a7b94b68c341bb3f40d9a (patch)
tree8a2b11edeaa52ffffa2891412a5f7d6978b8f959 /src/stm32/stm32f0_i2c.c
parenta3eebab4f2b90822f76de91487ff3d4158b80494 (diff)
downloadkutter-33b18fd62ba73c90054a7b94b68c341bb3f40d9a.tar.gz
kutter-33b18fd62ba73c90054a7b94b68c341bb3f40d9a.tar.xz
kutter-33b18fd62ba73c90054a7b94b68c341bb3f40d9a.zip
stm32f7: add support for stm32f7 and remram board
Signed-off-by: Frederic Morin <frederic.morin.8@gmail.com>
Diffstat (limited to 'src/stm32/stm32f0_i2c.c')
-rw-r--r--src/stm32/stm32f0_i2c.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stm32/stm32f0_i2c.c b/src/stm32/stm32f0_i2c.c
index 48c3ae3e..e9cadccb 100644
--- a/src/stm32/stm32f0_i2c.c
+++ b/src/stm32/stm32f0_i2c.c
@@ -27,6 +27,9 @@ struct i2c_info {
DECL_CONSTANT_STR("BUS_PINS_i2c1", "PB6,PB7");
DECL_ENUMERATION("i2c_bus", "i2c1a", 1);
DECL_CONSTANT_STR("BUS_PINS_i2c1a", "PF1,PF0");
+#elif CONFIG_MACH_STM32F7
+ DECL_ENUMERATION("i2c_bus", "i2c1_PB6_PB7", 0);
+ DECL_CONSTANT_STR("BUS_PINS_i2c1_PB6_PB7", "PB6,PB7");
#elif CONFIG_MACH_STM32G0
DECL_ENUMERATION("i2c_bus", "i2c1_PB6_PB7", 0);
DECL_CONSTANT_STR("BUS_PINS_i2c1_PB6_PB7", "PB6,PB7");
@@ -86,6 +89,8 @@ static const struct i2c_info i2c_bus[] = {
{ I2C1, GPIO('B', 6), GPIO('B', 7), GPIO_FUNCTION(1) },
{ I2C1, GPIO('F', 1), GPIO('F', 0), GPIO_FUNCTION(1) },
{ I2C1, GPIO('B', 8), GPIO('B', 9), GPIO_FUNCTION(1) },
+#elif CONFIG_MACH_STM32F7
+ { I2C1, GPIO('B', 6), GPIO('B', 7), GPIO_FUNCTION(1) },
#elif CONFIG_MACH_STM32G0
{ I2C1, GPIO('B', 6), GPIO('B', 7), GPIO_FUNCTION(6) },
{ I2C1, GPIO('B', 8), GPIO('B', 9), GPIO_FUNCTION(6) },