qmk-firmware/platforms/avr
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
..
bootloaders [Core] Add Reboot keycode to core (#15990) 2022-05-14 13:35:49 +10:00
drivers Fix AVR I2C master 1ms timeout (#17174) 2022-06-22 00:00:04 +02:00
_pin_defs.h Force platform pin defs to be included (#16611) 2022-03-10 23:53:16 +00:00
_print.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
_timer.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
_wait.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
atomic_util.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
bootloader_size.c Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
flash.mk Align usbasp flashing behaviour (#14928) 2021-10-24 14:18:57 +01:00
gpio.h Add open-drain GPIO support. (#15282) 2021-12-27 11:52:10 +11:00
hardware_id.c Fixup AVR builds. (#16875) 2022-04-18 15:39:45 +01:00
platform.c Move disable_jtag to platforms (#16960) 2022-04-29 01:23:50 +01:00
platform.mk [Core] Update C standard to GNU11, C++ to GNU++14 (#17114) 2022-06-06 08:47:22 +10:00
platform_deps.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
printf.c Format code according to conventions (#16322) 2022-02-12 18:29:31 +00:00
printf.mk Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
sleep_led.c Format code according to conventions (#16322) 2022-02-12 18:29:31 +00:00
suspend.c Format code according to conventions (#16322) 2022-02-12 18:29:31 +00:00
timer.c Format code according to conventions (#16322) 2022-02-12 18:29:31 +00:00
timer_avr.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
xprintf.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
xprintf.S Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00