diff options
Diffstat (limited to 'quantum/matrix.c')
-rw-r--r-- | quantum/matrix.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/quantum/matrix.c b/quantum/matrix.c index 49a184569..71292db51 100644 --- a/quantum/matrix.c +++ b/quantum/matrix.c | |||
@@ -55,7 +55,6 @@ static matrix_row_t raw_matrix[MATRIX_ROWS]; | |||
55 | 55 | ||
56 | static matrix_row_t matrix[MATRIX_ROWS]; | 56 | static matrix_row_t matrix[MATRIX_ROWS]; |
57 | 57 | ||
58 | |||
59 | #if (DIODE_DIRECTION == COL2ROW) | 58 | #if (DIODE_DIRECTION == COL2ROW) |
60 | static void init_cols(void); | 59 | static void init_cols(void); |
61 | static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row); | 60 | static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row); |
@@ -108,30 +107,6 @@ uint8_t matrix_cols(void) { | |||
108 | return MATRIX_COLS; | 107 | return MATRIX_COLS; |
109 | } | 108 | } |
110 | 109 | ||
111 | // void matrix_power_up(void) { | ||
112 | // #if (DIODE_DIRECTION == COL2ROW) | ||
113 | // for (int8_t r = MATRIX_ROWS - 1; r >= 0; --r) { | ||
114 | // /* DDRxn */ | ||
115 | // _SFR_IO8((row_pins[r] >> 4) + 1) |= _BV(row_pins[r] & 0xF); | ||
116 | // toggle_row(r); | ||
117 | // } | ||
118 | // for (int8_t c = MATRIX_COLS - 1; c >= 0; --c) { | ||
119 | // /* PORTxn */ | ||
120 | // _SFR_IO8((col_pins[c] >> 4) + 2) |= _BV(col_pins[c] & 0xF); | ||
121 | // } | ||
122 | // #elif (DIODE_DIRECTION == ROW2COL) | ||
123 | // for (int8_t c = MATRIX_COLS - 1; c >= 0; --c) { | ||
124 | // /* DDRxn */ | ||
125 | // _SFR_IO8((col_pins[c] >> 4) + 1) |= _BV(col_pins[c] & 0xF); | ||
126 | // toggle_col(c); | ||
127 | // } | ||
128 | // for (int8_t r = MATRIX_ROWS - 1; r >= 0; --r) { | ||
129 | // /* PORTxn */ | ||
130 | // _SFR_IO8((row_pins[r] >> 4) + 2) |= _BV(row_pins[r] & 0xF); | ||
131 | // } | ||
132 | // #endif | ||
133 | // } | ||
134 | |||
135 | void matrix_init(void) { | 110 | void matrix_init(void) { |
136 | 111 | ||
137 | // initialize row and col | 112 | // initialize row and col |
@@ -175,6 +150,7 @@ uint8_t matrix_scan(void) | |||
175 | return 1; | 150 | return 1; |
176 | } | 151 | } |
177 | 152 | ||
153 | //Deprecated. | ||
178 | bool matrix_is_modified(void) | 154 | bool matrix_is_modified(void) |
179 | { | 155 | { |
180 | if (debounce_active()) return false; | 156 | if (debounce_active()) return false; |