summaryrefslogtreecommitdiffstats
path: root/platforms/chibios/drivers/serial.c
Commit message (Collapse)AuthorAgeFilesLines
* [Core] Use polled waiting on ChibiOS platforms that support it (#17607)Stefan Kerkmann2022-07-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* [BUG] Fix deadlocks on disconnected secondary half (#17423)Stefan Kerkmann2022-06-211-7/+4
|
* [Core] Split ChibiOS usart split driver in protocol and hardware driver part ↵Stefan Kerkmann2022-06-181-2/+2
| | | | (#16669)
* [Core] Use a mutex guard for split shared memory (#16647)Stefan Kerkmann2022-04-191-9/+20
|
* [Bug] Fix unused variable error when using ChibiOS Bitbang serial driver ↵Drashna Jaelre2022-03-231-1/+2
| | | | (#16709)
* Format code according to conventions (#16322)QMK Bot2022-02-121-10/+26
|
* Deprecate split transactions status field (#16023)Stefan Kerkmann2022-01-261-13/+6
|
* Refactor use of STM32_SYSCLK (#14430)Joel Challis2021-09-141-1/+1
| | | | | * Refactor use of STM32_SYSCLK * clang
* Relocate platform specific drivers (#13894)Joel Challis2021-08-171-0/+278
* Relocate platform specific drivers * Move stm eeprom * Tidy up slightly