You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Simon Arlott 0a1bf7f6aa
Support using a timer for wait_us() on ChibiOS-based boards (#12211)
* 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>
4 years ago
..
_timer.h Avoid 8-bit timer overflows in debounce algorithms (#12240) 5 years ago
_wait.c Support using a timer for wait_us() on ChibiOS-based boards (#12211) 4 years ago
_wait.h Support using a timer for wait_us() on ChibiOS-based boards (#12211) 4 years ago
atomic_util.h Split gpio and atomic to platform (#11792) 5 years ago
bootloader.c core: chibios: bootloader: use integer pointers as volatile (#13450) 4 years ago
chibios_config.h Allow configuration of USB_VBUS_PIN on chibios (#13342) 5 years ago
eeprom_stm32.c
eeprom_stm32.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 5 years ago
eeprom_teensy.c Fix for gcc10 teensy_lc eeprom build warning (#12587) 5 years ago
flash_stm32.c flash_stm32: don't unlock flash if already unlocked (#13841) 4 years ago
flash_stm32.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 5 years ago
gpio.h Add readPort() and some API to 'tmk_core/common/*/gpio.h' (#12754) 5 years ago
pin_defs.h 2021 May 29 Breaking Changes Update (#13034) 5 years ago
platform.c Begin to carve out platform/protocol API - Single main loop (#13843) 4 years ago
platform_deps.h Avoid name conflicts with usb_hid Arduino code (#13870) 4 years ago
sleep_led.c 2021 May 29 Breaking Changes Update (#13034) 5 years ago
suspend.c 2021 May 29 Breaking Changes Update (#13034) 5 years ago
syscall-fallbacks.c Fixup declaration for _kill, add other missing syscalls, populate errno. (#11608) 5 years ago
timer.c Normalise include statements in core code (#11153) 5 years ago
wait.c Support using a timer for wait_us() on ChibiOS-based boards (#12211) 4 years ago