aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2025-07-14 14:00:09 -0400
committerKevin O'Connor <kevin@koconnor.net>2025-07-22 14:04:50 -0400
commitb761b8c65439262ec94572e09d38ae9024869f01 (patch)
treec789d0cb42761639fea22ec02da7ab828b12504f
parenta209d4db5b99d62c745179aee407330da7e67e81 (diff)
downloadkutter-b761b8c65439262ec94572e09d38ae9024869f01.tar.gz
kutter-b761b8c65439262ec94572e09d38ae9024869f01.tar.xz
kutter-b761b8c65439262ec94572e09d38ae9024869f01.zip
i2c_software: Implement regular timing even on AVR chips
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--src/i2c_software.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/i2c_software.c b/src/i2c_software.c
index 01fce4c6..d2072a56 100644
--- a/src/i2c_software.c
+++ b/src/i2c_software.c
@@ -38,13 +38,6 @@ DECL_COMMAND(command_i2c_set_sw_bus,
"i2c_set_sw_bus oid=%c scl_pin=%u sda_pin=%u"
" pulse_ticks=%u address=%u");
-// The AVR micro-controllers require specialized timing
-#if CONFIG_MACH_AVR
-
-#define i2c_delay(ticks) (void)(ticks)
-
-#else
-
static void
i2c_delay(uint32_t ticks)
{
@@ -53,8 +46,6 @@ i2c_delay(uint32_t ticks)
;
}
-#endif
-
static void
i2c_software_send_ack(struct i2c_software *is, const uint8_t ack)
{