aboutsummaryrefslogtreecommitdiff
path: root/keyboards/handwired/dactyl/matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/dactyl/matrix.c')
-rw-r--r--keyboards/handwired/dactyl/matrix.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/keyboards/handwired/dactyl/matrix.c b/keyboards/handwired/dactyl/matrix.c
index 28cf37522..faa5c19cf 100644
--- a/keyboards/handwired/dactyl/matrix.c
+++ b/keyboards/handwired/dactyl/matrix.c
@@ -76,11 +76,6 @@ uint8_t expander_status;
76uint8_t expander_input_pin_mask; 76uint8_t expander_input_pin_mask;
77bool i2c_initialized = false; 77bool i2c_initialized = false;
78 78
79#ifdef DEBUG_MATRIX_SCAN_RATE
80uint32_t matrix_timer;
81uint32_t matrix_scan_count;
82#endif
83
84#define ROW_SHIFTER ((matrix_row_t)1) 79#define ROW_SHIFTER ((matrix_row_t)1)
85 80
86__attribute__ ((weak)) 81__attribute__ ((weak))
@@ -129,11 +124,6 @@ void matrix_init(void)
129 matrix_debouncing[i] = 0; 124 matrix_debouncing[i] = 0;
130 } 125 }
131 126
132#ifdef DEBUG_MATRIX_SCAN_RATE
133 matrix_timer = timer_read32();
134 matrix_scan_count = 0;
135#endif
136
137 matrix_init_quantum(); 127 matrix_init_quantum();
138} 128}
139 129
@@ -236,20 +226,6 @@ uint8_t matrix_scan(void)
236 } 226 }
237 } 227 }
238 228
239#ifdef DEBUG_MATRIX_SCAN_RATE
240 matrix_scan_count++;
241
242 uint32_t timer_now = timer_read32();
243 if (TIMER_DIFF_32(timer_now, matrix_timer)>1000) {
244 print("matrix scan frequency: ");
245 pdec(matrix_scan_count);
246 print("\n");
247
248 matrix_timer = timer_now;
249 matrix_scan_count = 0;
250 }
251#endif
252
253#if (DIODE_DIRECTION == COL2ROW) 229#if (DIODE_DIRECTION == COL2ROW)
254 for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { 230 for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) {
255# if (DEBOUNCE > 0) 231# if (DEBOUNCE > 0)