keychron_qmk_firmware/keyboards/handwired
Stefan Kerkmann 3f5dc47296
[Core] Use polled waiting on ChibiOS platforms that support it (#17607)
* Use polled waiting on platforms that support it

Due to context switching overhead waiting a very short amount of time on
a sleeping thread is often not accurate and in fact not usable for timing
critical usage i.e. in a driver. Thus we use polled waiting for ranges
in the us range on platforms that support it instead. The fallback is
the thread sleeping mechanism.

This includes:

* ARM platforms with CYCCNT register (ARMv7, ARMv8) this is
  incremented at CPU clock frequency
* GD32VF103 RISC-V port with CSR_MCYCLE register this is incremented at
  CPU clock frequency
* RP2040 ARMv6 port which uses the integrated timer peripheral which is
  incremented with a fixed 1MHz frequency

* Use wait_us() instead of chSysPolledDelayX

...as it is powered by busy waiting now.

* Add chibios waiting methods test bench
2022-07-11 15:17:05 +02:00
..
2x5keypad
3dfoxc RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
3dortho14u
3dp660 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
6key
6macro RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
10k
42
108key_trackpoint
412_64 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
aball
aek64 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
aim65
amigopunk RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
angel
aplx2
aranck RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
arrow_pad RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
atreus50 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
axon
baredev/rev1 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
battleship_gamepad RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
bdn9_ble RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
bento RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
bigmac
bolek RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
boss566y/redragon_vara RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
brain Fix lint errors (#17293) 2022-06-02 19:30:07 +01:00
bstk100
cans12er
carpolly RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
chiron RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
ck4x4 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
cmd60
co60 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
colorlice RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
concertina RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
consolekeyboard
croxsplit44 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
curiosity
d48 Fix lint errors (#17293) 2022-06-02 19:30:07 +01:00
dactyl RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
dactyl_left
dactyl_manuform [Keyboard] Clean up dactyl manuform unused files (#15890) 2022-07-07 05:42:28 -07:00
dactyl_promicro RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
dactyl_rah RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
daishi RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
datahand
dc/mc/001
ddg_56 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
dygma/raise Specify blackpill board files where relevant (#17521) 2022-07-01 15:38:57 +01:00
eagleii
elrgo_s RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
ergocheap Do not enable PERMISSIVE_HOLD when TAPPING_TERM exceeds 500ms (#15674) 2022-06-24 12:40:09 +02:00
evk
fc200rt_qmk
fivethirteen
floorboard
frankie_macropad
frenchdev Make default layer size 16-bit (#15286) 2022-06-19 07:37:51 +10:00
freoduo RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
fruity60 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
gamenum
hacked_motospeed
heisenberg RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
hexon38
hillside [Keyboard] Move/Rename to Hillside48, simplify default keymap (#17210) 2022-07-02 21:56:23 +10:00
hnah40 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
hnah40rgb RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
hnah108 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
ibm_wheelwriter RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
ibm122m
jn68m RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
jopr
jot50 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
jotanck RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
jotpad16
jtallbean
juliet
k_numpad17
k8split
kbod Make default layer size 16-bit (#15286) 2022-06-19 07:37:51 +10:00
ks63
lagrange RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
leftynumpad
lemonpad
lovelive9
m40/5x5_macropad RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
macroboard Specify blackpill board files where relevant (#17521) 2022-07-01 15:38:57 +01:00
magicforce61
magicforce68
marauder
mechboards_micropad
meck_tkl Specify blackpill board files where relevant (#17521) 2022-07-01 15:38:57 +01:00
minorca
misterdeck
ms_sculpt_mobile
mutepad keyboards: fix malformed info.json files (#17292) 2022-06-02 17:50:08 +01:00
myskeeb RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
nicekey
not_so_minidox RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
novem
nozbe_macro
numpad20
obuwunkunubi/spaget RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
oem_ansi_fullsize
oem_iso_fullsize RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
onekey [Core] Use polled waiting on ChibiOS platforms that support it (#17607) 2022-07-11 15:17:05 +02:00
ortho_brass Removes terminal from QMK. (#17258) 2022-05-30 22:38:08 -07:00
ortho5x13 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
ortho5x14 tap-dance: Restructure code and document in more detail (#16394) 2022-06-13 22:12:55 +02:00
owlet60
p65rgb RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
pilcrow RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
pill60 Specify blackpill board files where relevant (#17521) 2022-07-01 15:38:57 +01:00
postageboard RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
prime_exl Make default layer size 16-bit (#15286) 2022-06-19 07:37:51 +10:00
prime_exl_plus
prkl30 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
promethium Make default layer size 16-bit (#15286) 2022-06-19 07:37:51 +10:00
pterodactyl Refactor legacy quantum keycodes in default-ish keymaps (#17150) 2022-05-27 06:07:42 +10:00
pteron RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
pteron38 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
pteron44 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
pytest
qc60
reclined RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
retro_refit
riblee_f401 Merge remote-tracking branch 'origin/master' into develop 2022-07-01 14:39:35 +00:00
riblee_f411 Merge remote-tracking branch 'origin/master' into develop 2022-07-01 14:39:35 +00:00
rs60 Removes terminal from QMK. (#17258) 2022-05-30 22:38:08 -07:00
selene
sick_pad
sick68
slash
snatchpad
sono1 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
space_oddity RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
split65
split89
splittest RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
steamvan
sticc14
stream_cheap
swiftrax Merge remote-tracking branch 'origin/master' into develop 2022-05-17 01:45:33 +00:00
symmetric70_proto Small update to Symmetric70 keyboard readme (#17188) 2022-05-25 21:11:13 +09:00
symmetry60
t111
tennie
terminus_mini Removes terminal from QMK. (#17258) 2022-05-30 22:38:08 -07:00
trackpoint
tractyl_manuform [Fix] Patches after printf library update (#17584) 2022-07-07 14:14:09 +02:00
traveller Make default layer size 16-bit (#15286) 2022-06-19 07:37:51 +10:00
tritium_numpad Make default layer size 16-bit (#15286) 2022-06-19 07:37:51 +10:00
twadlee/tp69
unicomp_mini_m
unk
uthol Merge remote-tracking branch 'origin/master' into develop 2022-07-01 14:39:35 +00:00
videowriter RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
wabi
wakizashi40 RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
woodpad RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
wulkan RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00
xealous Remove some layout exceptions (#16957) 2022-04-29 01:31:55 +01:00
xealousbrown
z150
zergo RESET -> QK_BOOT default keymaps (#17037) 2022-05-15 20:26:27 +01:00