9 Commits (2e766a9c7a0888a96ed9108f09a085f4298af0b3)

Author SHA1 Message Date
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
3 years ago
Stefan Kerkmann 2703ecc9e9
[BUG] Fix deadlocks on disconnected secondary half (#17423) 4 years ago
Stefan Kerkmann fe680a8568
[Core] Split ChibiOS usart split driver in protocol and hardware driver part (#16669) 4 years ago
Stefan Kerkmann 7712a286dc
[Core] Use a mutex guard for split shared memory (#16647) 4 years ago
Drashna Jaelre 4a3b4104fe
[Bug] Fix unused variable error when using ChibiOS Bitbang serial driver (#16709) 4 years ago
QMK Bot 63646e8906
Format code according to conventions (#16322) 4 years ago
Stefan Kerkmann be59e8af2b
Deprecate split transactions status field (#16023) 4 years ago
Joel Challis 0ca4a56a04
Refactor use of STM32_SYSCLK (#14430)
* Refactor use of STM32_SYSCLK

* clang
4 years ago
Joel Challis 1bb7af4d44
Relocate platform specific drivers (#13894)
* Relocate platform specific drivers

* Move stm eeprom

* Tidy up slightly
4 years ago