diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2022-05-07 10:11:07 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2022-05-07 10:13:34 -0400 |
commit | c263f76f9fca8de496ebd93e08bfd8c01ae9f3d9 (patch) | |
tree | 60dc56230ba1bd27db4f5574fbb9f9101731abbc /src/stm32 | |
parent | 7e76bd561a451172f8d03001445a3bd21e3866d7 (diff) | |
download | kutter-c263f76f9fca8de496ebd93e08bfd8c01ae9f3d9.tar.gz kutter-c263f76f9fca8de496ebd93e08bfd8c01ae9f3d9.tar.xz kutter-c263f76f9fca8de496ebd93e08bfd8c01ae9f3d9.zip |
stm32: Fix typo in i2c.c
Reported by @kaidegit.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32')
-rw-r--r-- | src/stm32/i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stm32/i2c.c b/src/stm32/i2c.c index d9583694..f5bbd01d 100644 --- a/src/stm32/i2c.c +++ b/src/stm32/i2c.c @@ -23,7 +23,7 @@ DECL_ENUMERATION("i2c_bus", "i2c1a", 1); DECL_CONSTANT_STR("BUS_PINS_i2c1a", "PB8,PB9"); DECL_ENUMERATION("i2c_bus", "i2c2", 2); DECL_CONSTANT_STR("BUS_PINS_i2c2", "PB10,PB11"); -#if CONFIG_MACH_STM32F2 || CONFIG_MACH_STM324 +#if CONFIG_MACH_STM32F2 || CONFIG_MACH_STM32F4 DECL_ENUMERATION("i2c_bus", "i2c3", 3); DECL_CONSTANT_STR("BUS_PINS_i2c3", "PA8,PC9"); #if CONFIG_MACH_STM32F2 || CONFIG_MACH_STM32F4x5 @@ -38,7 +38,7 @@ static const struct i2c_info i2c_bus[] = { { I2C1, GPIO('B', 6), GPIO('B', 7) }, { I2C1, GPIO('B', 8), GPIO('B', 9) }, { I2C2, GPIO('B', 10), GPIO('B', 11) }, -#if CONFIG_MACH_STM32F2 || CONFIG_MACH_STM324 +#if CONFIG_MACH_STM32F2 || CONFIG_MACH_STM32F4 { I2C3, GPIO('A', 8), GPIO('C', 9) }, #if CONFIG_MACH_STM32F2 || CONFIG_MACH_STM32F4x5 { I2C2, GPIO('H', 4), GPIO('H', 5) }, |