summaryrefslogtreecommitdiff
path: root/keyboards/kinesis/kint41
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-07-22 21:42:59 -0700
committerGitHub <noreply@github.com>2021-07-22 21:42:59 -0700
commit816accda3d48ba6d199644acb0ee5966987a09c8 (patch)
tree9a03a3489f1cc668dbf2609ccb990c6cc2d9458d /keyboards/kinesis/kint41
parent750f40566a511d78c60ab214bc3d8ce5d47d6883 (diff)
Fix errors with matrix_output_unselect_delay function calls (#13645)
Diffstat (limited to 'keyboards/kinesis/kint41')
-rw-r--r--keyboards/kinesis/kint41/kint41.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/keyboards/kinesis/kint41/kint41.c b/keyboards/kinesis/kint41/kint41.c
index e23a639f9f..ab6567d097 100644
--- a/keyboards/kinesis/kint41/kint41.c
+++ b/keyboards/kinesis/kint41/kint41.c
@@ -32,21 +32,21 @@ void matrix_init_kb(void) {
// ChibiOS enables the cycle counter in chcore_v7m.c:
// https://github.com/ChibiOS/ChibiOS/blob/b63023915c304092acb9f33bbab40f3ec07a7f0e/os/common/ports/ARMCMx/chcore_v7m.c#L263
static void delay_inline(const uint32_t cycles) {
- const uint32_t start = DWT->CYCCNT;
- while ((DWT->CYCCNT - start) < cycles) {
- // busy-loop until time has passed
- }
+ const uint32_t start = DWT->CYCCNT;
+ while ((DWT->CYCCNT - start) < cycles) {
+ // busy-loop until time has passed
+ }
}
-void matrix_output_unselect_delay(void) {
- // Use the cycle counter to do precise timing in microseconds. The ChibiOS
- // thread sleep functions only allow sleep durations starting at 1 tick, which
- // is 100μs in our configuration.
+void matrix_output_unselect_delay(uint8_t line, bool key_pressed) {
+ // Use the cycle counter to do precise timing in microseconds. The ChibiOS
+ // thread sleep functions only allow sleep durations starting at 1 tick, which
+ // is 100μs in our configuration.
- // Empirically: e.g. 5μs is not enough, will result in keys that don’t work
- // and ghost key presses. 10μs seems to work well.
+ // Empirically: e.g. 5μs is not enough, will result in keys that don’t work
+ // and ghost key presses. 10μs seems to work well.
- // 600 cycles at 0.6 cycles/ns == 1μs
- const uint32_t cycles_per_us = 600;
- delay_inline(10 * cycles_per_us);
+ // 600 cycles at 0.6 cycles/ns == 1μs
+ const uint32_t cycles_per_us = 600;
+ delay_inline(10 * cycles_per_us);
}