diff options
author | Simon Arlott <70171+nomis@users.noreply.github.com> | 2021-08-20 00:31:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-20 00:31:23 +0100 |
commit | 0a1bf7f6aa6e44557041e03f6e58df5a180c6d79 (patch) | |
tree | c2883c302bd9f0d49b4f086763386399ef58b3d2 /keyboards/handwired/swiftrax/astro65 | |
parent | 462e7f075a14175be08f32561d5ba783e725ab7c (diff) |
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>
Diffstat (limited to 'keyboards/handwired/swiftrax/astro65')
0 files changed, 0 insertions, 0 deletions