mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-01-06 23:07:44 -07: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
1 changed files with 0 additions and 9 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue