adb: Add wait after listen and talk
to make clear between stop bit and next attention
This commit is contained in:
parent
ea36eeebda
commit
d8991ce621
1 changed files with 2 additions and 0 deletions
|
|
@ -218,6 +218,7 @@ uint8_t adb_host_talk_buf(uint8_t addr, uint8_t reg, uint8_t *buf, uint8_t len)
|
||||||
|
|
||||||
error:
|
error:
|
||||||
sei();
|
sei();
|
||||||
|
_delay_us(200);
|
||||||
return n/8;
|
return n/8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -246,6 +247,7 @@ void adb_host_listen_buf(uint8_t addr, uint8_t reg, uint8_t *buf, uint8_t len)
|
||||||
}
|
}
|
||||||
place_bit0(); // Stopbit(0);
|
place_bit0(); // Stopbit(0);
|
||||||
sei();
|
sei();
|
||||||
|
_delay_us(200);
|
||||||
}
|
}
|
||||||
|
|
||||||
void adb_host_listen(uint8_t addr, uint8_t reg, uint8_t data_h, uint8_t data_l)
|
void adb_host_listen(uint8_t addr, uint8_t reg, uint8_t data_h, uint8_t data_l)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue