Daniel Kao 608404f874
Fix AVR I2C master 1ms timeout (#17174)
* avr i2c_master: Fix 1ms timeout

i2c_start() produces a minimum time_slice of 1ms for use as timeout
value.
The timer granularity is 1ms, it is entirely possible for timer_count
to tick up immediately after the last timer read and falsely trigger
timeout with a '>= 1' comparison.

* avr/drivers/i2c_master: Use timer_elapsed()
2022-06-22 00:00:04 +02:00
..
2021-11-19 10:41:02 -08:00
2021-11-19 10:41:02 -08:00
2021-11-19 10:41:02 -08:00
2021-12-27 11:52:10 +11:00
2022-04-18 15:39:45 +01:00
2021-11-19 10:41:02 -08:00
2021-11-19 10:41:02 -08:00
2021-11-19 10:41:02 -08:00