diff options
author | Russell Cloran <rcloran@gmail.com> | 2025-03-31 17:09:03 -0700 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2025-04-02 10:07:52 -0400 |
commit | 4b9add2fc30ef4777796212cead0f1977e822538 (patch) | |
tree | 77de863adc138bf8733cf1f9c6e9b7a6f20b0db1 /src/stm32/i2c.c | |
parent | 55f60601ca0e08808d553bf13e3ae9cbda101e17 (diff) | |
download | kutter-4b9add2fc30ef4777796212cead0f1977e822538.tar.gz kutter-4b9add2fc30ef4777796212cead0f1977e822538.tar.xz kutter-4b9add2fc30ef4777796212cead0f1977e822538.zip |
stm32: Add support for additional i2c bus
Signed-off-by: Russell Cloran <rcloran@gmail.com>
Diffstat (limited to 'src/stm32/i2c.c')
-rw-r--r-- | src/stm32/i2c.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stm32/i2c.c b/src/stm32/i2c.c index 441f611a..ccdf4fdc 100644 --- a/src/stm32/i2c.c +++ b/src/stm32/i2c.c @@ -32,6 +32,8 @@ DECL_ENUMERATION("i2c_bus", "i2c2a", 4); DECL_CONSTANT_STR("BUS_PINS_i2c2a", "PH4,PH5"); DECL_ENUMERATION("i2c_bus", "i2c3a", 5); DECL_CONSTANT_STR("BUS_PINS_i2c3a", "PH7,PH8"); +DECL_ENUMERATION("i2c_bus", "i2c2_PF1_PF0", 6); +DECL_CONSTANT_STR("BUS_PINS_i2c2_PF1_PF0", "PF1,PF0"); #endif #endif @@ -44,6 +46,7 @@ static const struct i2c_info i2c_bus[] = { #if CONFIG_MACH_STM32F2 || CONFIG_MACH_STM32F4x5 { I2C2, GPIO('H', 4), GPIO('H', 5) }, { I2C3, GPIO('H', 7), GPIO('H', 8) }, + { I2C2, GPIO('F', 1), GPIO('F', 0) }, #endif #endif }; |