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
..
arm_atsam Begin to carve out platform/protocol API - Single main loop (#13843) 4 years ago
avr Begin to carve out platform/protocol API - Single main loop (#13843) 4 years ago
chibios Support using a timer for wait_us() on ChibiOS-based boards (#12211) 4 years ago
test Begin to carve out platform/protocol API - Single main loop (#13843) 4 years ago
atomic_util.h
bootloader.h
eeprom.h
gpio.h
host.c Digitizer HID interface : absolute coordinates for mouse cursor (#12851) 4 years ago
host.h
host_driver.h Digitizer HID interface : absolute coordinates for mouse cursor (#12851) 4 years ago
pin_defs.h
progmem.h __flash? (#13799) 4 years ago
raw_hid.h
report.c
report.h Digitizer HID interface : absolute coordinates for mouse cursor (#12851) 4 years ago
sleep_led.h
suspend.h Set default for USB_SUSPEND_WAKEUP_DELAY to 0/disabled (#12081) 5 years ago
sync_timer.c Add sync_timer support over serial_link (i.e. Ergodox Infinity) (#12845) 5 years ago
sync_timer.h Add sync_timer support over serial_link (i.e. Ergodox Infinity) (#12845) 5 years ago
timer.h Merge remote-tracking branch 'upstream/master' into develop 4 years ago
usb_util.c Avoid LTO conficts on arm_atsam (#13676) 4 years ago
usb_util.h Avoid LTO conficts on arm_atsam (#13676) 4 years ago
virtser.h
wait.h 2021 May 29 Breaking Changes Update (#13034) 5 years ago