diff options
author | Daniel Kao <daniel.m.kao@gmail.com> | 2022-06-21 15:00:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-22 00:00:04 +0200 |
commit | 608404f8742f01d1821a74c5a107e0c62b046423 (patch) | |
tree | fa68b047ca13c4becb47f0cd8678c88ade60e8ad /users/cjuniet | |
parent | be42c5fb9885d3bcbf47f99ad6cef343ba2b0b97 (diff) |
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()
Diffstat (limited to 'users/cjuniet')
0 files changed, 0 insertions, 0 deletions