summaryrefslogtreecommitdiff
path: root/tmk_core/common/chibios/_wait.h
AgeCommit message (Collapse)Author
2021-11-19Move tmk_core/common/<plat> (#13918)Joel Challis
2021-09-14Refactor use of STM32_SYSCLK (#14430)Joel Challis
* Refactor use of STM32_SYSCLK * clang
2021-08-24add wait_cpuclock() macro for AVR and CPU_CLOCK macro (#12755)Takeshi ISHII
2021-08-20Support using a timer for wait_us() on ChibiOS-based boards (#12211)Simon Arlott
* 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>
2021-03-10Move gpio wait logic to wait.h (#12067)Joel Challis