mirror of
https://github.com/andreili/klipper.git
synced 2025-08-23 19:34:06 +02:00
i2c_software: Implement regular timing even on AVR chips
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
a209d4db5b
commit
b761b8c654
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user