qmk_firmware/platforms
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
..
arm_atsam [Core] Update mpaland/printf to eyalroz/printf fork (#16163) 2022-07-07 09:27:50 +02:00
avr [Core] Update mpaland/printf to eyalroz/printf fork (#16163) 2022-07-07 09:27:50 +02:00
chibios [Core] Use polled waiting on ChibiOS platforms that support it (#17607) 2022-07-11 15:17:05 +02:00
test Rework paths for eeprom locations. (#17326) 2022-06-08 09:42:35 +10:00
atomic_util.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
bootloader.h [Core] Add Reboot keycode to core (#15990) 2022-05-14 13:35:49 +10:00
common.mk Expose API for hardware unique ID (#16869) 2022-04-18 20:51:40 +10:00
eeprom.h Wear-leveling EEPROM drivers: embedded_flash, spi_flash, legacy (#17376) 2022-06-30 07:42:23 +10:00
gpio.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
hardware_id.h Expose API for hardware unique ID (#16869) 2022-04-18 20:51:40 +10:00
pin_defs.h Redo workaround for pin_def errors on KINETIS (#16620) 2022-03-11 18:50:59 +00:00
progmem.h Remove use of __flash due to LTO issues (#15268) 2021-11-24 18:38:49 +11:00
sleep_led.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
suspend.c Format code according to conventions (#16322) 2022-02-12 18:29:31 +00:00
suspend.h Remove unused suspend_idle (#16063) 2022-01-26 14:57:28 -08:00
synchronization_util.h [Fix] Fix compilation warning for non-split keebs after #17423 (#17439) 2022-06-21 09:31:20 +10:00
timer.h Format code according to conventions (#16322) 2022-02-12 18:29:31 +00:00
wait.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00