0a1bf7f6aa
* Support using a timer for wait_us() on ChibiOS-based boards (#12198) There are spare GPT timers that can be used to get a more accurate wait_ms() time. This is required for the matrix scan unselect delay (30µs) to be shorter than the system tick rate of 100µs. This is limited to the maximum GPT duration of 65535 so values above that will automatically use the previous implementation based on the system tick. Using a specific timer means it can't be shared by another thread at the same time so when wait_us() is called from anything other than the main thread it will use the system tick implementation too. * Update tmk_core/common/chibios/wait.c * Update tmk_core/common/chibios/wait.c Co-authored-by: Joel Challis <git@zvecr.com> |
||
---|---|---|
.. | ||
_timer.h | ||
_wait.c | ||
_wait.h | ||
atomic_util.h | ||
bootloader.c | ||
chibios_config.h | ||
eeprom_stm32.c | ||
eeprom_stm32.h | ||
eeprom_teensy.c | ||
flash_stm32.c | ||
flash_stm32.h | ||
gpio.h | ||
pin_defs.h | ||
platform.c | ||
platform_deps.h | ||
sleep_led.c | ||
suspend.c | ||
syscall-fallbacks.c | ||
timer.c | ||
wait.c |