diff options
| author | Joel Challis <git@zvecr.com> | 2023-02-11 03:47:17 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-11 03:47:17 +0000 |
| commit | 11d49d00e74618500e5c51e4c7f858eb906ccea8 (patch) | |
| tree | ee827f3ed92a56861f6f5bf1d5f33d6068458d2c | |
| parent | 99918945149f98cf73f9365b0ad49a2fc07d1152 (diff) | |
Remove matrix_init_quantum/matrix_scan_quantum (#19806)
76 files changed, 148 insertions, 319 deletions
diff --git a/docs/custom_matrix.md b/docs/custom_matrix.md index 6d6ae5e972..ef206944e1 100644 --- a/docs/custom_matrix.md +++ b/docs/custom_matrix.md | |||
| @@ -77,7 +77,7 @@ void matrix_init(void) { | |||
| 77 | debounce_init(MATRIX_ROWS); | 77 | debounce_init(MATRIX_ROWS); |
| 78 | 78 | ||
| 79 | // This *must* be called for correct keyboard behavior | 79 | // This *must* be called for correct keyboard behavior |
| 80 | matrix_init_quantum(); | 80 | matrix_init_kb(); |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | uint8_t matrix_scan(void) { | 83 | uint8_t matrix_scan(void) { |
| @@ -89,7 +89,7 @@ uint8_t matrix_scan(void) { | |||
| 89 | changed = debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | 89 | changed = debounce(raw_matrix, matrix, MATRIX_ROWS, changed); |
| 90 | 90 | ||
| 91 | // This *must* be called for correct keyboard behavior | 91 | // This *must* be called for correct keyboard behavior |
| 92 | matrix_scan_quantum(); | 92 | matrix_scan_kb(); |
| 93 | 93 | ||
| 94 | return changed; | 94 | return changed; |
| 95 | } | 95 | } |
diff --git a/docs/ja/custom_matrix.md b/docs/ja/custom_matrix.md index 2c697bb148..194960d77c 100644 --- a/docs/ja/custom_matrix.md +++ b/docs/ja/custom_matrix.md | |||
| @@ -83,7 +83,7 @@ void matrix_init(void) { | |||
| 83 | debounce_init(MATRIX_ROWS); | 83 | debounce_init(MATRIX_ROWS); |
| 84 | 84 | ||
| 85 | // 正しいキーボード動作のためにこれを呼び出す*必要があります* | 85 | // 正しいキーボード動作のためにこれを呼び出す*必要があります* |
| 86 | matrix_init_quantum(); | 86 | matrix_init_kb(); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | uint8_t matrix_scan(void) { | 89 | uint8_t matrix_scan(void) { |
| @@ -95,7 +95,7 @@ uint8_t matrix_scan(void) { | |||
| 95 | changed = debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | 95 | changed = debounce(raw_matrix, matrix, MATRIX_ROWS, changed); |
| 96 | 96 | ||
| 97 | // 正しいキーボード動作のためにこれを呼び出す*必要があります* | 97 | // 正しいキーボード動作のためにこれを呼び出す*必要があります* |
| 98 | matrix_scan_quantum(); | 98 | matrix_scan_kb(); |
| 99 | 99 | ||
| 100 | return changed; | 100 | return changed; |
| 101 | } | 101 | } |
diff --git a/keyboards/bpiphany/hid_liber/matrix.c b/keyboards/bpiphany/hid_liber/matrix.c index 90e8a327b5..f8ffe0eff1 100755 --- a/keyboards/bpiphany/hid_liber/matrix.c +++ b/keyboards/bpiphany/hid_liber/matrix.c | |||
| @@ -182,7 +182,7 @@ void matrix_init(void) | |||
| 182 | matrix_debouncing[i] = 0; | 182 | matrix_debouncing[i] = 0; |
| 183 | } | 183 | } |
| 184 | 184 | ||
| 185 | matrix_init_quantum(); | 185 | matrix_init_kb(); |
| 186 | } | 186 | } |
| 187 | 187 | ||
| 188 | uint8_t matrix_scan(void) | 188 | uint8_t matrix_scan(void) |
| @@ -214,7 +214,7 @@ uint8_t matrix_scan(void) | |||
| 214 | } | 214 | } |
| 215 | } | 215 | } |
| 216 | 216 | ||
| 217 | matrix_scan_quantum(); | 217 | matrix_scan_kb(); |
| 218 | return 1; | 218 | return 1; |
| 219 | } | 219 | } |
| 220 | 220 | ||
diff --git a/keyboards/bpiphany/kitten_paw/matrix.c b/keyboards/bpiphany/kitten_paw/matrix.c index 6548040c7c..d4fc171404 100644 --- a/keyboards/bpiphany/kitten_paw/matrix.c +++ b/keyboards/bpiphany/kitten_paw/matrix.c | |||
| @@ -85,7 +85,7 @@ void matrix_init(void) { | |||
| 85 | matrix[i] = 0; | 85 | matrix[i] = 0; |
| 86 | matrix_debouncing[i] = 0; | 86 | matrix_debouncing[i] = 0; |
| 87 | } | 87 | } |
| 88 | matrix_init_quantum(); | 88 | matrix_init_kb(); |
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | uint8_t matrix_scan(void) { | 91 | uint8_t matrix_scan(void) { |
| @@ -113,7 +113,7 @@ uint8_t matrix_scan(void) { | |||
| 113 | } | 113 | } |
| 114 | } | 114 | } |
| 115 | } | 115 | } |
| 116 | matrix_scan_quantum(); | 116 | matrix_scan_kb(); |
| 117 | return 1; | 117 | return 1; |
| 118 | } | 118 | } |
| 119 | 119 | ||
diff --git a/keyboards/bpiphany/pegasushoof/2013/matrix.c b/keyboards/bpiphany/pegasushoof/2013/matrix.c index 3250e71fe6..3b1bd5663f 100644 --- a/keyboards/bpiphany/pegasushoof/2013/matrix.c +++ b/keyboards/bpiphany/pegasushoof/2013/matrix.c | |||
| @@ -80,7 +80,7 @@ void matrix_init(void) | |||
| 80 | matrix_debouncing[i] = 0; | 80 | matrix_debouncing[i] = 0; |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | matrix_init_quantum(); | 83 | matrix_init_kb(); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | uint8_t matrix_scan(void) | 86 | uint8_t matrix_scan(void) |
| @@ -109,7 +109,7 @@ uint8_t matrix_scan(void) | |||
| 109 | } | 109 | } |
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | matrix_scan_quantum(); | 112 | matrix_scan_kb(); |
| 113 | 113 | ||
| 114 | return 1; | 114 | return 1; |
| 115 | } | 115 | } |
diff --git a/keyboards/bpiphany/pegasushoof/2015/matrix.c b/keyboards/bpiphany/pegasushoof/2015/matrix.c index 2b142f9fc8..6fc1fd6e9e 100644 --- a/keyboards/bpiphany/pegasushoof/2015/matrix.c +++ b/keyboards/bpiphany/pegasushoof/2015/matrix.c | |||
| @@ -70,7 +70,7 @@ void matrix_init(void) | |||
| 70 | matrix_debouncing[i] = 0; | 70 | matrix_debouncing[i] = 0; |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | matrix_init_quantum(); | 73 | matrix_init_kb(); |
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | uint8_t matrix_scan(void) | 76 | uint8_t matrix_scan(void) |
| @@ -90,7 +90,7 @@ uint8_t matrix_scan(void) | |||
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | debounce(matrix_debouncing, matrix, matrix_rows(), changed); | 92 | debounce(matrix_debouncing, matrix, matrix_rows(), changed); |
| 93 | matrix_scan_quantum(); | 93 | matrix_scan_kb(); |
| 94 | 94 | ||
| 95 | return (uint8_t)changed; | 95 | return (uint8_t)changed; |
| 96 | } | 96 | } |
diff --git a/keyboards/bpiphany/tiger_lily/matrix.c b/keyboards/bpiphany/tiger_lily/matrix.c index abf6f3f42b..85e8e39463 100644 --- a/keyboards/bpiphany/tiger_lily/matrix.c +++ b/keyboards/bpiphany/tiger_lily/matrix.c | |||
| @@ -98,7 +98,7 @@ void matrix_init(void) { | |||
| 98 | for (uint8_t i=0; i < MATRIX_ROWS; i++) | 98 | for (uint8_t i=0; i < MATRIX_ROWS; i++) |
| 99 | matrix[i] = matrix_debouncing[i] = 0; | 99 | matrix[i] = matrix_debouncing[i] = 0; |
| 100 | 100 | ||
| 101 | matrix_init_quantum(); | 101 | matrix_init_kb(); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | uint8_t matrix_scan(void) { | 104 | uint8_t matrix_scan(void) { |
| @@ -124,7 +124,7 @@ uint8_t matrix_scan(void) { | |||
| 124 | matrix[i] = matrix_debouncing[i]; | 124 | matrix[i] = matrix_debouncing[i]; |
| 125 | } | 125 | } |
| 126 | 126 | ||
| 127 | matrix_scan_quantum(); | 127 | matrix_scan_kb(); |
| 128 | return 1; | 128 | return 1; |
| 129 | } | 129 | } |
| 130 | 130 | ||
diff --git a/keyboards/bpiphany/unloved_bastard/matrix.c b/keyboards/bpiphany/unloved_bastard/matrix.c index 98cdf22f48..ac7a1e7f06 100644 --- a/keyboards/bpiphany/unloved_bastard/matrix.c +++ b/keyboards/bpiphany/unloved_bastard/matrix.c | |||
| @@ -99,7 +99,7 @@ void matrix_init(void) { | |||
| 99 | for (uint8_t i=0; i < MATRIX_ROWS; i++) | 99 | for (uint8_t i=0; i < MATRIX_ROWS; i++) |
| 100 | matrix[i] = matrix_debouncing[i] = 0; | 100 | matrix[i] = matrix_debouncing[i] = 0; |
| 101 | 101 | ||
| 102 | matrix_init_quantum(); | 102 | matrix_init_kb(); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | uint8_t matrix_scan(void) { | 105 | uint8_t matrix_scan(void) { |
| @@ -125,7 +125,7 @@ uint8_t matrix_scan(void) { | |||
| 125 | matrix[i] = matrix_debouncing[i]; | 125 | matrix[i] = matrix_debouncing[i]; |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | matrix_scan_quantum(); | 128 | matrix_scan_kb(); |
| 129 | return 1; | 129 | return 1; |
| 130 | } | 130 | } |
| 131 | 131 | ||
diff --git a/keyboards/converter/adb_usb/matrix.c b/keyboards/converter/adb_usb/matrix.c index e6a4921960..20479eb466 100644 --- a/keyboards/converter/adb_usb/matrix.c +++ b/keyboards/converter/adb_usb/matrix.c | |||
| @@ -76,7 +76,7 @@ void matrix_init(void) | |||
| 76 | // debug_mouse = true; | 76 | // debug_mouse = true; |
| 77 | // print("debug enabled.\n"); | 77 | // print("debug enabled.\n"); |
| 78 | 78 | ||
| 79 | matrix_init_quantum(); | 79 | matrix_init_kb(); |
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | #ifdef ADB_MOUSE_ENABLE | 82 | #ifdef ADB_MOUSE_ENABLE |
| @@ -241,7 +241,7 @@ uint8_t matrix_scan(void) | |||
| 241 | extra_key = key1<<8 | 0xFF; // process in a separate call | 241 | extra_key = key1<<8 | 0xFF; // process in a separate call |
| 242 | } | 242 | } |
| 243 | 243 | ||
| 244 | matrix_scan_quantum(); | 244 | matrix_scan_kb(); |
| 245 | return 1; | 245 | return 1; |
| 246 | } | 246 | } |
| 247 | 247 | ||
diff --git a/keyboards/converter/hp_46010a/matrix.c b/keyboards/converter/hp_46010a/matrix.c index eafe320a3d..7f4e11ab27 100644 --- a/keyboards/converter/hp_46010a/matrix.c +++ b/keyboards/converter/hp_46010a/matrix.c | |||
| @@ -51,16 +51,6 @@ static uint8_t matrix_debounce_new [MATRIX_ROWS] = {0}; | |||
| 51 | #endif | 51 | #endif |
| 52 | 52 | ||
| 53 | __attribute__ ((weak)) | 53 | __attribute__ ((weak)) |
| 54 | void matrix_init_quantum(void) { | ||
| 55 | matrix_init_kb(); | ||
| 56 | } | ||
| 57 | |||
| 58 | __attribute__ ((weak)) | ||
| 59 | void matrix_scan_quantum(void) { | ||
| 60 | matrix_scan_kb(); | ||
| 61 | } | ||
| 62 | |||
| 63 | __attribute__ ((weak)) | ||
| 64 | void matrix_init_kb(void) { | 54 | void matrix_init_kb(void) { |
| 65 | matrix_init_user(); | 55 | matrix_init_user(); |
| 66 | } | 56 | } |
| @@ -161,7 +151,7 @@ void matrix_init (void) { | |||
| 161 | DDRD |= LED ; | 151 | DDRD |= LED ; |
| 162 | PORTD &= ~LED ; | 152 | PORTD &= ~LED ; |
| 163 | 153 | ||
| 164 | matrix_init_quantum(); | 154 | matrix_init_kb(); |
| 165 | 155 | ||
| 166 | //toggle reset, to put the keyboard logic into a known state | 156 | //toggle reset, to put the keyboard logic into a known state |
| 167 | Matrix_Reset() ; | 157 | Matrix_Reset() ; |
| @@ -206,7 +196,7 @@ uint8_t matrix_scan(void) { | |||
| 206 | #endif | 196 | #endif |
| 207 | Matrix_Reset() ; | 197 | Matrix_Reset() ; |
| 208 | 198 | ||
| 209 | matrix_scan_quantum() ; | 199 | matrix_scan_kb() ; |
| 210 | return 1; | 200 | return 1; |
| 211 | } | 201 | } |
| 212 | 202 | ||
diff --git a/keyboards/converter/m0110_usb/matrix.c b/keyboards/converter/m0110_usb/matrix.c index daba7a138a..6c39d4b6b0 100644 --- a/keyboards/converter/m0110_usb/matrix.c +++ b/keyboards/converter/m0110_usb/matrix.c | |||
| @@ -72,7 +72,7 @@ void matrix_init(void) | |||
| 72 | for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix0[i] = 0x00; | 72 | for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix0[i] = 0x00; |
| 73 | matrix = _matrix0; | 73 | matrix = _matrix0; |
| 74 | 74 | ||
| 75 | matrix_init_quantum(); | 75 | matrix_init_kb(); |
| 76 | return; | 76 | return; |
| 77 | } | 77 | } |
| 78 | 78 | ||
| @@ -96,7 +96,7 @@ uint8_t matrix_scan(void) | |||
| 96 | print("["); print_hex8(key); print("]\n"); | 96 | print("["); print_hex8(key); print("]\n"); |
| 97 | } | 97 | } |
| 98 | 98 | ||
| 99 | matrix_scan_quantum(); | 99 | matrix_scan_kb(); |
| 100 | return 1; | 100 | return 1; |
| 101 | } | 101 | } |
| 102 | 102 | ||
diff --git a/keyboards/converter/palm_usb/matrix.c b/keyboards/converter/palm_usb/matrix.c index 28d4b87d83..4226dfa52c 100644 --- a/keyboards/converter/palm_usb/matrix.c +++ b/keyboards/converter/palm_usb/matrix.c | |||
| @@ -280,7 +280,7 @@ void matrix_init(void) | |||
| 280 | // initialize matrix state: all keys off | 280 | // initialize matrix state: all keys off |
| 281 | for (uint8_t i=0; i < MATRIX_ROWS; i++) matrix[i] = 0x00; | 281 | for (uint8_t i=0; i < MATRIX_ROWS; i++) matrix[i] = 0x00; |
| 282 | 282 | ||
| 283 | matrix_init_quantum(); | 283 | matrix_init_kb(); |
| 284 | return; | 284 | return; |
| 285 | 285 | ||
| 286 | 286 | ||
| @@ -348,7 +348,7 @@ uint8_t matrix_scan(void) | |||
| 348 | } | 348 | } |
| 349 | } | 349 | } |
| 350 | 350 | ||
| 351 | matrix_scan_quantum(); | 351 | matrix_scan_kb(); |
| 352 | return code; | 352 | return code; |
| 353 | } | 353 | } |
| 354 | 354 | ||
diff --git a/keyboards/converter/siemens_tastatur/matrix.c b/keyboards/converter/siemens_tastatur/matrix.c index 2da4e33d3d..ea1aa2287e 100644 --- a/keyboards/converter/siemens_tastatur/matrix.c +++ b/keyboards/converter/siemens_tastatur/matrix.c | |||
| @@ -109,7 +109,7 @@ void matrix_init(void) { | |||
| 109 | memset(matrix, 0, MATRIX_ROWS * sizeof(matrix_row_t)); | 109 | memset(matrix, 0, MATRIX_ROWS * sizeof(matrix_row_t)); |
| 110 | memset(matrix_debouncing, 0, MATRIX_ROWS * sizeof(matrix_row_t)); | 110 | memset(matrix_debouncing, 0, MATRIX_ROWS * sizeof(matrix_row_t)); |
| 111 | 111 | ||
| 112 | matrix_init_quantum(); | 112 | matrix_init_kb(); |
| 113 | 113 | ||
| 114 | osalSysLock(); | 114 | osalSysLock(); |
| 115 | enable_input_events(); | 115 | enable_input_events(); |
| @@ -215,7 +215,7 @@ uint8_t matrix_scan(void) { | |||
| 215 | porta_buffer = 65535; | 215 | porta_buffer = 65535; |
| 216 | portb_buffer = 65535; | 216 | portb_buffer = 65535; |
| 217 | 217 | ||
| 218 | matrix_scan_quantum(); | 218 | matrix_scan_kb(); |
| 219 | return 1; | 219 | return 1; |
| 220 | } | 220 | } |
| 221 | 221 | ||
diff --git a/keyboards/converter/sun_usb/matrix.c b/keyboards/converter/sun_usb/matrix.c index 35ec391024..9f22eca1eb 100644 --- a/keyboards/converter/sun_usb/matrix.c +++ b/keyboards/converter/sun_usb/matrix.c | |||
| @@ -97,7 +97,7 @@ void matrix_init(void) | |||
| 97 | 97 | ||
| 98 | /* PORTD &= ~(1<<6); */ | 98 | /* PORTD &= ~(1<<6); */ |
| 99 | 99 | ||
| 100 | matrix_init_quantum(); | 100 | matrix_init_kb(); |
| 101 | return; | 101 | return; |
| 102 | } | 102 | } |
| 103 | 103 | ||
| @@ -148,7 +148,7 @@ uint8_t matrix_scan(void) | |||
| 148 | } | 148 | } |
| 149 | } | 149 | } |
| 150 | 150 | ||
| 151 | matrix_scan_quantum(); | 151 | matrix_scan_kb(); |
| 152 | return code; | 152 | return code; |
| 153 | } | 153 | } |
| 154 | 154 | ||
diff --git a/keyboards/converter/usb_usb/custom_matrix.cpp b/keyboards/converter/usb_usb/custom_matrix.cpp index 8b5fd4451a..f5f751da14 100644 --- a/keyboards/converter/usb_usb/custom_matrix.cpp +++ b/keyboards/converter/usb_usb/custom_matrix.cpp | |||
| @@ -93,7 +93,7 @@ extern "C" { | |||
| 93 | kbd2.SetReportParser(0, (HIDReportParser*)&kbd_parser2); | 93 | kbd2.SetReportParser(0, (HIDReportParser*)&kbd_parser2); |
| 94 | kbd3.SetReportParser(0, (HIDReportParser*)&kbd_parser3); | 94 | kbd3.SetReportParser(0, (HIDReportParser*)&kbd_parser3); |
| 95 | kbd4.SetReportParser(0, (HIDReportParser*)&kbd_parser4); | 95 | kbd4.SetReportParser(0, (HIDReportParser*)&kbd_parser4); |
| 96 | matrix_init_quantum(); | 96 | matrix_init_kb(); |
| 97 | } | 97 | } |
| 98 | 98 | ||
| 99 | static void or_report(report_keyboard_t report) { | 99 | static void or_report(report_keyboard_t report) { |
| @@ -182,7 +182,7 @@ extern "C" { | |||
| 182 | led_set(host_keyboard_leds()); | 182 | led_set(host_keyboard_leds()); |
| 183 | } | 183 | } |
| 184 | } | 184 | } |
| 185 | matrix_scan_quantum(); | 185 | matrix_scan_kb(); |
| 186 | return changed; | 186 | return changed; |
| 187 | } | 187 | } |
| 188 | 188 | ||
diff --git a/keyboards/converter/xt_usb/matrix.c b/keyboards/converter/xt_usb/matrix.c index 7a16750432..71211cbc03 100644 --- a/keyboards/converter/xt_usb/matrix.c +++ b/keyboards/converter/xt_usb/matrix.c | |||
| @@ -59,7 +59,7 @@ void matrix_init(void) { | |||
| 59 | matrix[i] = 0x00; | 59 | matrix[i] = 0x00; |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | matrix_init_quantum(); | 62 | matrix_init_kb(); |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | // convert E0-escaped codes into unused area | 65 | // convert E0-escaped codes into unused area |
| @@ -188,7 +188,7 @@ uint8_t matrix_scan(void) { | |||
| 188 | state = XT_STATE_INIT; | 188 | state = XT_STATE_INIT; |
| 189 | } | 189 | } |
| 190 | 190 | ||
| 191 | matrix_scan_quantum(); | 191 | matrix_scan_kb(); |
| 192 | 192 | ||
| 193 | return 1; | 193 | return 1; |
| 194 | } | 194 | } |
diff --git a/keyboards/dc01/arrow/matrix.c b/keyboards/dc01/arrow/matrix.c index e7c3bec2b5..211855c300 100644 --- a/keyboards/dc01/arrow/matrix.c +++ b/keyboards/dc01/arrow/matrix.c | |||
| @@ -89,16 +89,6 @@ static matrix_row_t matrix_debouncing[MATRIX_ROWS]; | |||
| 89 | #endif | 89 | #endif |
| 90 | 90 | ||
| 91 | __attribute__ ((weak)) | 91 | __attribute__ ((weak)) |
| 92 | void matrix_init_quantum(void) { | ||
| 93 | matrix_init_kb(); | ||
| 94 | } | ||
| 95 | |||
| 96 | __attribute__ ((weak)) | ||
| 97 | void matrix_scan_quantum(void) { | ||
| 98 | matrix_scan_kb(); | ||
| 99 | } | ||
| 100 | |||
| 101 | __attribute__ ((weak)) | ||
| 102 | void matrix_init_kb(void) { | 92 | void matrix_init_kb(void) { |
| 103 | matrix_init_user(); | 93 | matrix_init_user(); |
| 104 | } | 94 | } |
| @@ -143,7 +133,7 @@ void matrix_init(void) { | |||
| 143 | matrix_debouncing[i] = 0; | 133 | matrix_debouncing[i] = 0; |
| 144 | } | 134 | } |
| 145 | 135 | ||
| 146 | matrix_init_quantum(); | 136 | matrix_init_kb(); |
| 147 | } | 137 | } |
| 148 | 138 | ||
| 149 | uint8_t matrix_scan(void) | 139 | uint8_t matrix_scan(void) |
| @@ -198,7 +188,7 @@ uint8_t matrix_scan(void) | |||
| 198 | i2c_slave_reg[i+2] = matrix[i]; //send matrix over i2c | 188 | i2c_slave_reg[i+2] = matrix[i]; //send matrix over i2c |
| 199 | } | 189 | } |
| 200 | 190 | ||
| 201 | matrix_scan_quantum(); | 191 | matrix_scan_kb(); |
| 202 | return 1; | 192 | return 1; |
| 203 | } | 193 | } |
| 204 | 194 | ||
diff --git a/keyboards/dc01/left/matrix.c b/keyboards/dc01/left/matrix.c index 8b8f89a081..d384c6a4bc 100644 --- a/keyboards/dc01/left/matrix.c +++ b/keyboards/dc01/left/matrix.c | |||
| @@ -93,16 +93,6 @@ static matrix_row_t matrix_debouncing[MATRIX_ROWS]; | |||
| 93 | #endif | 93 | #endif |
| 94 | 94 | ||
| 95 | __attribute__ ((weak)) | 95 | __attribute__ ((weak)) |
| 96 | void matrix_init_quantum(void) { | ||
| 97 | matrix_init_kb(); | ||
| 98 | } | ||
| 99 | |||
| 100 | __attribute__ ((weak)) | ||
| 101 | void matrix_scan_quantum(void) { | ||
| 102 | matrix_scan_kb(); | ||
| 103 | } | ||
| 104 | |||
| 105 | __attribute__ ((weak)) | ||
| 106 | void matrix_init_kb(void) { | 96 | void matrix_init_kb(void) { |
| 107 | matrix_init_user(); | 97 | matrix_init_user(); |
| 108 | } | 98 | } |
| @@ -154,7 +144,7 @@ void matrix_init(void) { | |||
| 154 | matrix_debouncing[i] = 0; | 144 | matrix_debouncing[i] = 0; |
| 155 | } | 145 | } |
| 156 | 146 | ||
| 157 | matrix_init_quantum(); | 147 | matrix_init_kb(); |
| 158 | } | 148 | } |
| 159 | 149 | ||
| 160 | uint8_t matrix_scan(void) | 150 | uint8_t matrix_scan(void) |
| @@ -223,7 +213,7 @@ if (i2c_transaction(SLAVE_I2C_ADDRESS_NUMPAD, 0x1FFFF, 11)) { | |||
| 223 | } | 213 | } |
| 224 | } | 214 | } |
| 225 | 215 | ||
| 226 | matrix_scan_quantum(); | 216 | matrix_scan_kb(); |
| 227 | return 1; | 217 | return 1; |
| 228 | } | 218 | } |
| 229 | 219 | ||
diff --git a/keyboards/dc01/numpad/matrix.c b/keyboards/dc01/numpad/matrix.c index 1dc90a6b84..73b245f56e 100644 --- a/keyboards/dc01/numpad/matrix.c +++ b/keyboards/dc01/numpad/matrix.c | |||
| @@ -89,16 +89,6 @@ static matrix_row_t matrix_debouncing[MATRIX_ROWS]; | |||
| 89 | #endif | 89 | #endif |
| 90 | 90 | ||
| 91 | __attribute__ ((weak)) | 91 | __attribute__ ((weak)) |
| 92 | void matrix_init_quantum(void) { | ||
| 93 | matrix_init_kb(); | ||
| 94 | } | ||
| 95 | |||
| 96 | __attribute__ ((weak)) | ||
| 97 | void matrix_scan_quantum(void) { | ||
| 98 | matrix_scan_kb(); | ||
| 99 | } | ||
| 100 | |||
| 101 | __attribute__ ((weak)) | ||
| 102 | void matrix_init_kb(void) { | 92 | void matrix_init_kb(void) { |
| 103 | matrix_init_user(); | 93 | matrix_init_user(); |
| 104 | } | 94 | } |
| @@ -143,7 +133,7 @@ void matrix_init(void) { | |||
| 143 | matrix_debouncing[i] = 0; | 133 | matrix_debouncing[i] = 0; |
| 144 | } | 134 | } |
| 145 | 135 | ||
| 146 | matrix_init_quantum(); | 136 | matrix_init_kb(); |
| 147 | } | 137 | } |
| 148 | 138 | ||
| 149 | uint8_t matrix_scan(void) | 139 | uint8_t matrix_scan(void) |
| @@ -198,7 +188,7 @@ uint8_t matrix_scan(void) | |||
| 198 | i2c_slave_reg[i+2] = matrix[i]; //send matrix over i2c | 188 | i2c_slave_reg[i+2] = matrix[i]; //send matrix over i2c |
| 199 | } | 189 | } |
| 200 | 190 | ||
| 201 | matrix_scan_quantum(); | 191 | matrix_scan_kb(); |
| 202 | return 1; | 192 | return 1; |
| 203 | } | 193 | } |
| 204 | 194 | ||
diff --git a/keyboards/dc01/right/matrix.c b/keyboards/dc01/right/matrix.c index f21dec1d2b..04a6d03804 100644 --- a/keyboards/dc01/right/matrix.c +++ b/keyboards/dc01/right/matrix.c | |||
| @@ -90,16 +90,6 @@ static matrix_row_t matrix_debouncing[MATRIX_ROWS]; | |||
| 90 | #endif | 90 | #endif |
| 91 | 91 | ||
| 92 | __attribute__ ((weak)) | 92 | __attribute__ ((weak)) |
| 93 | void matrix_init_quantum(void) { | ||
| 94 | matrix_init_kb(); | ||
| 95 | } | ||
| 96 | |||
| 97 | __attribute__ ((weak)) | ||
| 98 | void matrix_scan_quantum(void) { | ||
| 99 | matrix_scan_kb(); | ||
| 100 | } | ||
| 101 | |||
| 102 | __attribute__ ((weak)) | ||
| 103 | void matrix_init_kb(void) { | 93 | void matrix_init_kb(void) { |
| 104 | matrix_init_user(); | 94 | matrix_init_user(); |
| 105 | } | 95 | } |
| @@ -144,7 +134,7 @@ void matrix_init(void) { | |||
| 144 | matrix_debouncing[i] = 0; | 134 | matrix_debouncing[i] = 0; |
| 145 | } | 135 | } |
| 146 | 136 | ||
| 147 | matrix_init_quantum(); | 137 | matrix_init_kb(); |
| 148 | } | 138 | } |
| 149 | 139 | ||
| 150 | uint8_t matrix_scan(void) | 140 | uint8_t matrix_scan(void) |
| @@ -199,7 +189,7 @@ uint8_t matrix_scan(void) | |||
| 199 | i2c_slave_reg[i+2] = matrix[i]; //send matrix over i2c | 189 | i2c_slave_reg[i+2] = matrix[i]; //send matrix over i2c |
| 200 | } | 190 | } |
| 201 | 191 | ||
| 202 | matrix_scan_quantum(); | 192 | matrix_scan_kb(); |
| 203 | return 1; | 193 | return 1; |
| 204 | } | 194 | } |
| 205 | 195 | ||
diff --git a/keyboards/dichotomy/matrix.c b/keyboards/dichotomy/matrix.c index 0799554f0a..a3c94275eb 100755 --- a/keyboards/dichotomy/matrix.c +++ b/keyboards/dichotomy/matrix.c | |||
| @@ -54,16 +54,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 54 | static matrix_row_t matrix[MATRIX_ROWS]; | 54 | static matrix_row_t matrix[MATRIX_ROWS]; |
| 55 | 55 | ||
| 56 | __attribute__ ((weak)) | 56 | __attribute__ ((weak)) |
| 57 | void matrix_init_quantum(void) { | ||
| 58 | matrix_init_kb(); | ||
| 59 | } | ||
| 60 | |||
| 61 | __attribute__ ((weak)) | ||
| 62 | void matrix_scan_quantum(void) { | ||
| 63 | matrix_scan_kb(); | ||
| 64 | } | ||
| 65 | |||
| 66 | __attribute__ ((weak)) | ||
| 67 | void matrix_init_kb(void) { | 57 | void matrix_init_kb(void) { |
| 68 | matrix_init_user(); | 58 | matrix_init_user(); |
| 69 | } | 59 | } |
| @@ -92,7 +82,7 @@ uint8_t matrix_cols(void) { | |||
| 92 | } | 82 | } |
| 93 | 83 | ||
| 94 | void matrix_init(void) { | 84 | void matrix_init(void) { |
| 95 | matrix_init_quantum(); | 85 | matrix_init_kb(); |
| 96 | uart_init(1000000); | 86 | uart_init(1000000); |
| 97 | } | 87 | } |
| 98 | 88 | ||
| @@ -190,7 +180,7 @@ uint8_t matrix_scan(void) | |||
| 190 | } | 180 | } |
| 191 | //matrix_print(); | 181 | //matrix_print(); |
| 192 | 182 | ||
| 193 | matrix_scan_quantum(); | 183 | matrix_scan_kb(); |
| 194 | return 1; | 184 | return 1; |
| 195 | } | 185 | } |
| 196 | 186 | ||
diff --git a/keyboards/dp60/matrix.c b/keyboards/dp60/matrix.c index 1803e0f94f..e32c9a58f9 100644 --- a/keyboards/dp60/matrix.c +++ b/keyboards/dp60/matrix.c | |||
| @@ -64,7 +64,7 @@ void matrix_init(void) | |||
| 64 | matrix_debouncing[i] = 0; | 64 | matrix_debouncing[i] = 0; |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | matrix_init_quantum(); | 67 | matrix_init_kb(); |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | uint8_t matrix_scan(void) | 70 | uint8_t matrix_scan(void) |
| @@ -96,7 +96,7 @@ uint8_t matrix_scan(void) | |||
| 96 | } | 96 | } |
| 97 | } | 97 | } |
| 98 | 98 | ||
| 99 | matrix_scan_quantum(); | 99 | matrix_scan_kb(); |
| 100 | return 1; | 100 | return 1; |
| 101 | } | 101 | } |
| 102 | 102 | ||
diff --git a/keyboards/duck/eagle_viper/v2/matrix.c b/keyboards/duck/eagle_viper/v2/matrix.c index a673c536c2..c918a8d1c4 100644 --- a/keyboards/duck/eagle_viper/v2/matrix.c +++ b/keyboards/duck/eagle_viper/v2/matrix.c | |||
| @@ -78,7 +78,7 @@ void matrix_init(void) { | |||
| 78 | matrix_debouncing[i] = 0; | 78 | matrix_debouncing[i] = 0; |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | matrix_init_quantum(); | 81 | matrix_init_kb(); |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | uint8_t matrix_scan(void) { | 84 | uint8_t matrix_scan(void) { |
| @@ -112,7 +112,7 @@ uint8_t matrix_scan(void) { | |||
| 112 | } | 112 | } |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | matrix_scan_quantum(); | 115 | matrix_scan_kb(); |
| 116 | return 1; | 116 | return 1; |
| 117 | } | 117 | } |
| 118 | 118 | ||
diff --git a/keyboards/duck/lightsaver/matrix.c b/keyboards/duck/lightsaver/matrix.c index 48861e08fe..cafa4f2855 100644 --- a/keyboards/duck/lightsaver/matrix.c +++ b/keyboards/duck/lightsaver/matrix.c | |||
| @@ -74,7 +74,7 @@ void matrix_init(void) { | |||
| 74 | matrix_debouncing[i] = 0; | 74 | matrix_debouncing[i] = 0; |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | matrix_init_quantum(); | 77 | matrix_init_kb(); |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | uint8_t matrix_scan(void) { | 80 | uint8_t matrix_scan(void) { |
| @@ -110,7 +110,7 @@ uint8_t matrix_scan(void) { | |||
| 110 | } | 110 | } |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | matrix_scan_quantum(); | 113 | matrix_scan_kb(); |
| 114 | return 1; | 114 | return 1; |
| 115 | } | 115 | } |
| 116 | 116 | ||
diff --git a/keyboards/duck/octagon/v1/matrix.c b/keyboards/duck/octagon/v1/matrix.c index c903e619aa..cf37a654a6 100644 --- a/keyboards/duck/octagon/v1/matrix.c +++ b/keyboards/duck/octagon/v1/matrix.c | |||
| @@ -73,7 +73,7 @@ void matrix_init(void) { | |||
| 73 | matrix_debouncing[i] = 0; | 73 | matrix_debouncing[i] = 0; |
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | matrix_init_quantum(); | 76 | matrix_init_kb(); |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | uint8_t matrix_scan(void) { | 79 | uint8_t matrix_scan(void) { |
| @@ -107,7 +107,7 @@ uint8_t matrix_scan(void) { | |||
| 107 | } | 107 | } |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | matrix_scan_quantum(); | 110 | matrix_scan_kb(); |
| 111 | return 1; | 111 | return 1; |
| 112 | } | 112 | } |
| 113 | 113 | ||
diff --git a/keyboards/duck/octagon/v2/matrix.c b/keyboards/duck/octagon/v2/matrix.c index c70eb73747..98bf03d769 100644 --- a/keyboards/duck/octagon/v2/matrix.c +++ b/keyboards/duck/octagon/v2/matrix.c | |||
| @@ -78,7 +78,7 @@ void matrix_init(void) { | |||
| 78 | matrix_debouncing[i] = 0; | 78 | matrix_debouncing[i] = 0; |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | matrix_init_quantum(); | 81 | matrix_init_kb(); |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | uint8_t matrix_scan(void) { | 84 | uint8_t matrix_scan(void) { |
| @@ -112,7 +112,7 @@ uint8_t matrix_scan(void) { | |||
| 112 | } | 112 | } |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | matrix_scan_quantum(); | 115 | matrix_scan_kb(); |
| 116 | return 1; | 116 | return 1; |
| 117 | } | 117 | } |
| 118 | 118 | ||
diff --git a/keyboards/duck/orion/v3/matrix.c b/keyboards/duck/orion/v3/matrix.c index a5b522d78b..c82d5dd999 100644 --- a/keyboards/duck/orion/v3/matrix.c +++ b/keyboards/duck/orion/v3/matrix.c | |||
| @@ -72,7 +72,7 @@ void matrix_init(void) { | |||
| 72 | matrix_debouncing[i] = 0; | 72 | matrix_debouncing[i] = 0; |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | matrix_init_quantum(); | 75 | matrix_init_kb(); |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | uint8_t matrix_scan(void) { | 78 | uint8_t matrix_scan(void) { |
| @@ -106,7 +106,7 @@ uint8_t matrix_scan(void) { | |||
| 106 | } | 106 | } |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | matrix_scan_quantum(); | 109 | matrix_scan_kb(); |
| 110 | return 1; | 110 | return 1; |
| 111 | } | 111 | } |
| 112 | 112 | ||
diff --git a/keyboards/duck/tcv3/matrix.c b/keyboards/duck/tcv3/matrix.c index cc4ebeb5dc..d3f44bf886 100644 --- a/keyboards/duck/tcv3/matrix.c +++ b/keyboards/duck/tcv3/matrix.c | |||
| @@ -78,7 +78,7 @@ void matrix_init(void) { | |||
| 78 | matrix_debouncing[i] = 0; | 78 | matrix_debouncing[i] = 0; |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | matrix_init_quantum(); | 81 | matrix_init_kb(); |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | uint8_t matrix_scan(void) { | 84 | uint8_t matrix_scan(void) { |
| @@ -112,7 +112,7 @@ uint8_t matrix_scan(void) { | |||
| 112 | } | 112 | } |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | matrix_scan_quantum(); | 115 | matrix_scan_kb(); |
| 116 | return 1; | 116 | return 1; |
| 117 | } | 117 | } |
| 118 | 118 | ||
diff --git a/keyboards/ergodox_stm32/matrix.c b/keyboards/ergodox_stm32/matrix.c index 094d4a9e0f..2046e39c1f 100644 --- a/keyboards/ergodox_stm32/matrix.c +++ b/keyboards/ergodox_stm32/matrix.c | |||
| @@ -56,7 +56,7 @@ void matrix_init(void) { | |||
| 56 | debounce_matrix[i * MATRIX_COLS + j] = 0; | 56 | debounce_matrix[i * MATRIX_COLS + j] = 0; |
| 57 | } | 57 | } |
| 58 | } | 58 | } |
| 59 | matrix_init_quantum(); | 59 | matrix_init_kb(); |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | void matrix_power_up(void) { | 62 | void matrix_power_up(void) { |
| @@ -115,7 +115,7 @@ uint8_t matrix_scan(void) { | |||
| 115 | 115 | ||
| 116 | unselect_rows(); | 116 | unselect_rows(); |
| 117 | } | 117 | } |
| 118 | matrix_scan_quantum(); | 118 | matrix_scan_kb(); |
| 119 | return 0; | 119 | return 0; |
| 120 | } | 120 | } |
| 121 | 121 | ||
diff --git a/keyboards/fc660c/matrix.c b/keyboards/fc660c/matrix.c index 40d606f572..e9d13eeac4 100644 --- a/keyboards/fc660c/matrix.c +++ b/keyboards/fc660c/matrix.c | |||
| @@ -120,7 +120,7 @@ void matrix_init(void) | |||
| 120 | for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix1[i] = 0x00; | 120 | for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix1[i] = 0x00; |
| 121 | matrix = _matrix0; | 121 | matrix = _matrix0; |
| 122 | matrix_prev = _matrix1; | 122 | matrix_prev = _matrix1; |
| 123 | matrix_init_quantum(); | 123 | matrix_init_kb(); |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | uint8_t matrix_scan(void) | 126 | uint8_t matrix_scan(void) |
| @@ -180,7 +180,7 @@ uint8_t matrix_scan(void) | |||
| 180 | matrix_last_modified = timer_read32(); | 180 | matrix_last_modified = timer_read32(); |
| 181 | } | 181 | } |
| 182 | } | 182 | } |
| 183 | matrix_scan_quantum(); | 183 | matrix_scan_kb(); |
| 184 | return 1; | 184 | return 1; |
| 185 | } | 185 | } |
| 186 | 186 | ||
diff --git a/keyboards/fc980c/matrix.c b/keyboards/fc980c/matrix.c index 6cdd9cf42e..f5c3ec08c7 100644 --- a/keyboards/fc980c/matrix.c +++ b/keyboards/fc980c/matrix.c | |||
| @@ -122,7 +122,7 @@ void matrix_init(void) | |||
| 122 | for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix1[i] = 0x00; | 122 | for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix1[i] = 0x00; |
| 123 | matrix = _matrix0; | 123 | matrix = _matrix0; |
| 124 | matrix_prev = _matrix1; | 124 | matrix_prev = _matrix1; |
| 125 | matrix_init_quantum(); | 125 | matrix_init_kb(); |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | uint8_t matrix_scan(void) | 128 | uint8_t matrix_scan(void) |
| @@ -182,7 +182,7 @@ uint8_t matrix_scan(void) | |||
| 182 | matrix_last_modified = timer_read32(); | 182 | matrix_last_modified = timer_read32(); |
| 183 | } | 183 | } |
| 184 | } | 184 | } |
| 185 | matrix_scan_quantum(); | 185 | matrix_scan_kb(); |
| 186 | return 1; | 186 | return 1; |
| 187 | } | 187 | } |
| 188 | 188 | ||
diff --git a/keyboards/gboards/ergotaco/matrix.c b/keyboards/gboards/ergotaco/matrix.c index 7e5d675218..1bab5e8981 100644 --- a/keyboards/gboards/ergotaco/matrix.c +++ b/keyboards/gboards/ergotaco/matrix.c | |||
| @@ -112,7 +112,7 @@ void matrix_init(void) | |||
| 112 | } | 112 | } |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | matrix_init_quantum(); | 115 | matrix_init_kb(); |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | void matrix_power_up(void) { | 118 | void matrix_power_up(void) { |
| @@ -188,7 +188,7 @@ uint8_t matrix_scan(void) | |||
| 188 | unselect_rows(); | 188 | unselect_rows(); |
| 189 | } | 189 | } |
| 190 | 190 | ||
| 191 | matrix_scan_quantum(); | 191 | matrix_scan_kb(); |
| 192 | 192 | ||
| 193 | #ifdef DEBUG_MATRIX | 193 | #ifdef DEBUG_MATRIX |
| 194 | for (uint8_t c = 0; c < MATRIX_COLS; c++) | 194 | for (uint8_t c = 0; c < MATRIX_COLS; c++) |
diff --git a/keyboards/gboards/georgi/matrix.c b/keyboards/gboards/georgi/matrix.c index 24bb2d7acf..5ac696fd31 100644 --- a/keyboards/gboards/georgi/matrix.c +++ b/keyboards/gboards/georgi/matrix.c | |||
| @@ -133,7 +133,7 @@ void matrix_init(void) | |||
| 133 | } | 133 | } |
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | matrix_init_quantum(); | 136 | matrix_init_kb(); |
| 137 | } | 137 | } |
| 138 | 138 | ||
| 139 | void matrix_power_up(void) { | 139 | void matrix_power_up(void) { |
| @@ -209,7 +209,7 @@ uint8_t matrix_scan(void) | |||
| 209 | unselect_rows(); | 209 | unselect_rows(); |
| 210 | } | 210 | } |
| 211 | 211 | ||
| 212 | matrix_scan_quantum(); | 212 | matrix_scan_kb(); |
| 213 | 213 | ||
| 214 | #ifdef DEBUG_MATRIX | 214 | #ifdef DEBUG_MATRIX |
| 215 | for (uint8_t c = 0; c < MATRIX_COLS; c++) | 215 | for (uint8_t c = 0; c < MATRIX_COLS; c++) |
diff --git a/keyboards/gboards/gergo/matrix.c b/keyboards/gboards/gergo/matrix.c index 3898246e30..c352be24e1 100644 --- a/keyboards/gboards/gergo/matrix.c +++ b/keyboards/gboards/gergo/matrix.c | |||
| @@ -153,7 +153,7 @@ void matrix_init(void) { | |||
| 153 | } | 153 | } |
| 154 | 154 | ||
| 155 | debounce_init(MATRIX_ROWS); | 155 | debounce_init(MATRIX_ROWS); |
| 156 | matrix_init_quantum(); | 156 | matrix_init_kb(); |
| 157 | } | 157 | } |
| 158 | 158 | ||
| 159 | void matrix_power_up(void) { | 159 | void matrix_power_up(void) { |
| @@ -260,7 +260,7 @@ uint8_t matrix_scan(void) { | |||
| 260 | } | 260 | } |
| 261 | 261 | ||
| 262 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | 262 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); |
| 263 | matrix_scan_quantum(); | 263 | matrix_scan_kb(); |
| 264 | 264 | ||
| 265 | enableInterrupts(); | 265 | enableInterrupts(); |
| 266 | 266 | ||
diff --git a/keyboards/gboards/gergoplex/matrix.c b/keyboards/gboards/gergoplex/matrix.c index df2b2dde15..c9f5528b74 100644 --- a/keyboards/gboards/gergoplex/matrix.c +++ b/keyboards/gboards/gergoplex/matrix.c | |||
| @@ -83,7 +83,7 @@ void matrix_init(void) { | |||
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | debounce_init(MATRIX_ROWS); | 85 | debounce_init(MATRIX_ROWS); |
| 86 | matrix_init_quantum(); | 86 | matrix_init_kb(); |
| 87 | } | 87 | } |
| 88 | void matrix_power_up(void) { | 88 | void matrix_power_up(void) { |
| 89 | mcp23018_status = init_mcp23018(); | 89 | mcp23018_status = init_mcp23018(); |
| @@ -141,7 +141,7 @@ uint8_t matrix_scan(void) { | |||
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | 143 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); |
| 144 | matrix_scan_quantum(); | 144 | matrix_scan_kb(); |
| 145 | 145 | ||
| 146 | #ifdef DEBUG_MATRIX | 146 | #ifdef DEBUG_MATRIX |
| 147 | for (uint8_t c = 0; c < MATRIX_COLS; c++) | 147 | for (uint8_t c = 0; c < MATRIX_COLS; c++) |
diff --git a/keyboards/halfcliff/matrix.c b/keyboards/halfcliff/matrix.c index 556b75ca59..fd18fd27bd 100644 --- a/keyboards/halfcliff/matrix.c +++ b/keyboards/halfcliff/matrix.c | |||
| @@ -206,7 +206,7 @@ void matrix_init(void) { | |||
| 206 | 206 | ||
| 207 | debounce_init(ROWS_PER_HAND); | 207 | debounce_init(ROWS_PER_HAND); |
| 208 | 208 | ||
| 209 | matrix_init_quantum(); | 209 | matrix_init_kb(); |
| 210 | 210 | ||
| 211 | split_post_init(); | 211 | split_post_init(); |
| 212 | } | 212 | } |
| @@ -240,7 +240,7 @@ bool matrix_post_scan(void) { | |||
| 240 | } | 240 | } |
| 241 | } | 241 | } |
| 242 | 242 | ||
| 243 | matrix_scan_quantum(); | 243 | matrix_scan_kb(); |
| 244 | } else { | 244 | } else { |
| 245 | transport_slave(matrix + thatHand, matrix + thisHand); | 245 | transport_slave(matrix + thatHand, matrix + thisHand); |
| 246 | 246 | ||
diff --git a/keyboards/handwired/dactyl/matrix.c b/keyboards/handwired/dactyl/matrix.c index 5869b43c1b..d87fe4cbd1 100644 --- a/keyboards/handwired/dactyl/matrix.c +++ b/keyboards/handwired/dactyl/matrix.c | |||
| @@ -124,7 +124,7 @@ void matrix_init(void) | |||
| 124 | matrix_debouncing[i] = 0; | 124 | matrix_debouncing[i] = 0; |
| 125 | } | 125 | } |
| 126 | 126 | ||
| 127 | matrix_init_quantum(); | 127 | matrix_init_kb(); |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | void init_expander(void) { | 130 | void init_expander(void) { |
| @@ -277,7 +277,7 @@ uint8_t matrix_scan(void) | |||
| 277 | } | 277 | } |
| 278 | # endif | 278 | # endif |
| 279 | 279 | ||
| 280 | matrix_scan_quantum(); | 280 | matrix_scan_kb(); |
| 281 | return 1; | 281 | return 1; |
| 282 | } | 282 | } |
| 283 | 283 | ||
diff --git a/keyboards/handwired/datahand/matrix.c b/keyboards/handwired/datahand/matrix.c index 9eead28cd6..afce07e10d 100644 --- a/keyboards/handwired/datahand/matrix.c +++ b/keyboards/handwired/datahand/matrix.c | |||
| @@ -59,7 +59,7 @@ void matrix_init(void) { | |||
| 59 | /* Turn off the lock LEDs. */ | 59 | /* Turn off the lock LEDs. */ |
| 60 | PORTF |= LED_CAPS_LOCK | LED_NUM_LOCK | LED_SCROLL_LOCK | LED_MOUSE_LOCK; | 60 | PORTF |= LED_CAPS_LOCK | LED_NUM_LOCK | LED_SCROLL_LOCK | LED_MOUSE_LOCK; |
| 61 | 61 | ||
| 62 | matrix_init_quantum(); | 62 | matrix_init_kb(); |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | uint8_t matrix_scan(void) { | 65 | uint8_t matrix_scan(void) { |
| @@ -73,7 +73,7 @@ uint8_t matrix_scan(void) { | |||
| 73 | matrix[row] = read_cols(); | 73 | matrix[row] = read_cols(); |
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | matrix_scan_quantum(); | 76 | matrix_scan_kb(); |
| 77 | 77 | ||
| 78 | return 1; | 78 | return 1; |
| 79 | } | 79 | } |
diff --git a/keyboards/handwired/frenchdev/matrix.c b/keyboards/handwired/frenchdev/matrix.c index 6dec9c6a74..3e859d47ef 100644 --- a/keyboards/handwired/frenchdev/matrix.c +++ b/keyboards/handwired/frenchdev/matrix.c | |||
| @@ -111,7 +111,7 @@ void matrix_init(void) | |||
| 111 | matrix_debouncing[i] = 0; | 111 | matrix_debouncing[i] = 0; |
| 112 | } | 112 | } |
| 113 | 113 | ||
| 114 | matrix_init_quantum(); | 114 | matrix_init_kb(); |
| 115 | } | 115 | } |
| 116 | 116 | ||
| 117 | void matrix_power_up(void) { | 117 | void matrix_power_up(void) { |
| @@ -169,7 +169,7 @@ uint8_t matrix_scan(void) | |||
| 169 | } | 169 | } |
| 170 | } | 170 | } |
| 171 | 171 | ||
| 172 | matrix_scan_quantum(); | 172 | matrix_scan_kb(); |
| 173 | 173 | ||
| 174 | return 1; | 174 | return 1; |
| 175 | } | 175 | } |
diff --git a/keyboards/handwired/owlet60/matrix.c b/keyboards/handwired/owlet60/matrix.c index 3b68c08b45..ad36c99039 100644 --- a/keyboards/handwired/owlet60/matrix.c +++ b/keyboards/handwired/owlet60/matrix.c | |||
| @@ -200,7 +200,7 @@ void matrix_init(void) { | |||
| 200 | 200 | ||
| 201 | debounce_init(MATRIX_ROWS); | 201 | debounce_init(MATRIX_ROWS); |
| 202 | 202 | ||
| 203 | matrix_init_quantum(); | 203 | matrix_init_kb(); |
| 204 | 204 | ||
| 205 | setPinInput(D5); | 205 | setPinInput(D5); |
| 206 | setPinInput(B0); | 206 | setPinInput(B0); |
| @@ -217,7 +217,7 @@ uint8_t matrix_scan(void) | |||
| 217 | 217 | ||
| 218 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | 218 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); |
| 219 | 219 | ||
| 220 | matrix_scan_quantum(); | 220 | matrix_scan_kb(); |
| 221 | return (uint8_t)changed; | 221 | return (uint8_t)changed; |
| 222 | } | 222 | } |
| 223 | 223 | ||
| @@ -235,7 +235,7 @@ uint8_t matrix_scan(void) | |||
| 235 | 235 | ||
| 236 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | 236 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); |
| 237 | 237 | ||
| 238 | matrix_scan_quantum(); | 238 | matrix_scan_kb(); |
| 239 | return (uint8_t)changed; | 239 | return (uint8_t)changed; |
| 240 | } | 240 | } |
| 241 | */ | 241 | */ |
diff --git a/keyboards/handwired/promethium/matrix.c b/keyboards/handwired/promethium/matrix.c index 3b03ab8893..9f6d707aab 100644 --- a/keyboards/handwired/promethium/matrix.c +++ b/keyboards/handwired/promethium/matrix.c | |||
| @@ -111,7 +111,7 @@ void matrix_init(void) { | |||
| 111 | matrix_debouncing[i] = 0; | 111 | matrix_debouncing[i] = 0; |
| 112 | } | 112 | } |
| 113 | 113 | ||
| 114 | matrix_init_quantum(); | 114 | matrix_init_kb(); |
| 115 | } | 115 | } |
| 116 | 116 | ||
| 117 | uint8_t matrix_scan(void) | 117 | uint8_t matrix_scan(void) |
| @@ -141,7 +141,7 @@ uint8_t matrix_scan(void) | |||
| 141 | } | 141 | } |
| 142 | # endif | 142 | # endif |
| 143 | 143 | ||
| 144 | matrix_scan_quantum(); | 144 | matrix_scan_kb(); |
| 145 | return 1; | 145 | return 1; |
| 146 | } | 146 | } |
| 147 | 147 | ||
diff --git a/keyboards/handwired/pterodactyl/matrix.c b/keyboards/handwired/pterodactyl/matrix.c index 9d81a64bb4..c12cf5a322 100644 --- a/keyboards/handwired/pterodactyl/matrix.c +++ b/keyboards/handwired/pterodactyl/matrix.c | |||
| @@ -137,7 +137,7 @@ void matrix_init(void) | |||
| 137 | matrix_debouncing[i] = 0; | 137 | matrix_debouncing[i] = 0; |
| 138 | } | 138 | } |
| 139 | 139 | ||
| 140 | matrix_init_quantum(); | 140 | matrix_init_kb(); |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | void init_expander(void) { | 143 | void init_expander(void) { |
| @@ -278,7 +278,7 @@ uint8_t matrix_scan(void) | |||
| 278 | } | 278 | } |
| 279 | # endif | 279 | # endif |
| 280 | 280 | ||
| 281 | matrix_scan_quantum(); | 281 | matrix_scan_kb(); |
| 282 | return 1; | 282 | return 1; |
| 283 | } | 283 | } |
| 284 | 284 | ||
diff --git a/keyboards/handwired/symmetric70_proto/matrix_debug/matrix.c b/keyboards/handwired/symmetric70_proto/matrix_debug/matrix.c index 7e15761a98..8a303714cf 100644 --- a/keyboards/handwired/symmetric70_proto/matrix_debug/matrix.c +++ b/keyboards/handwired/symmetric70_proto/matrix_debug/matrix.c | |||
| @@ -295,7 +295,7 @@ void matrix_init(void) { | |||
| 295 | 295 | ||
| 296 | debounce_init(MATRIX_ROWS); | 296 | debounce_init(MATRIX_ROWS); |
| 297 | 297 | ||
| 298 | matrix_init_quantum(); | 298 | matrix_init_kb(); |
| 299 | } | 299 | } |
| 300 | 300 | ||
| 301 | uint8_t matrix_scan(void) { | 301 | uint8_t matrix_scan(void) { |
| @@ -323,7 +323,7 @@ uint8_t matrix_scan(void) { | |||
| 323 | MATRIX_DEBUG_GAP(); | 323 | MATRIX_DEBUG_GAP(); |
| 324 | 324 | ||
| 325 | MATRIX_DEBUG_SCAN_START(); | 325 | MATRIX_DEBUG_SCAN_START(); |
| 326 | matrix_scan_quantum(); | 326 | matrix_scan_kb(); |
| 327 | MATRIX_DEBUG_SCAN_END(); | 327 | MATRIX_DEBUG_SCAN_END(); |
| 328 | return (uint8_t)changed; | 328 | return (uint8_t)changed; |
| 329 | } | 329 | } |
diff --git a/keyboards/handwired/symmetric70_proto/matrix_fast/matrix.c b/keyboards/handwired/symmetric70_proto/matrix_fast/matrix.c index cb21bfcf8d..2bc97bd9e8 100644 --- a/keyboards/handwired/symmetric70_proto/matrix_fast/matrix.c +++ b/keyboards/handwired/symmetric70_proto/matrix_fast/matrix.c | |||
| @@ -171,7 +171,7 @@ void matrix_init(void) { | |||
| 171 | 171 | ||
| 172 | debounce_init(MATRIX_ROWS); | 172 | debounce_init(MATRIX_ROWS); |
| 173 | 173 | ||
| 174 | matrix_init_quantum(); | 174 | matrix_init_kb(); |
| 175 | } | 175 | } |
| 176 | 176 | ||
| 177 | uint8_t matrix_scan(void) { | 177 | uint8_t matrix_scan(void) { |
| @@ -228,7 +228,7 @@ uint8_t matrix_scan(void) { | |||
| 228 | MATRIX_DEBUG_SCAN_END(); MATRIX_DEBUG_GAP(); | 228 | MATRIX_DEBUG_SCAN_END(); MATRIX_DEBUG_GAP(); |
| 229 | 229 | ||
| 230 | MATRIX_DEBUG_SCAN_START(); | 230 | MATRIX_DEBUG_SCAN_START(); |
| 231 | matrix_scan_quantum(); | 231 | matrix_scan_kb(); |
| 232 | MATRIX_DEBUG_SCAN_END(); | 232 | MATRIX_DEBUG_SCAN_END(); |
| 233 | return (uint8_t)changed; | 233 | return (uint8_t)changed; |
| 234 | } | 234 | } |
diff --git a/keyboards/hhkb/ansi/matrix.c b/keyboards/hhkb/ansi/matrix.c index 8b0e4606bc..a1bda95841 100644 --- a/keyboards/hhkb/ansi/matrix.c +++ b/keyboards/hhkb/ansi/matrix.c | |||
| @@ -71,7 +71,7 @@ void matrix_init(void) | |||
| 71 | matrix = _matrix0; | 71 | matrix = _matrix0; |
| 72 | matrix_prev = _matrix1; | 72 | matrix_prev = _matrix1; |
| 73 | 73 | ||
| 74 | matrix_init_quantum(); | 74 | matrix_init_kb(); |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | __attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); } | 77 | __attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); } |
| @@ -158,7 +158,7 @@ uint8_t matrix_scan(void) | |||
| 158 | suspend_power_down(); | 158 | suspend_power_down(); |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | matrix_scan_quantum(); | 161 | matrix_scan_kb(); |
| 162 | 162 | ||
| 163 | return 1; | 163 | return 1; |
| 164 | } | 164 | } |
diff --git a/keyboards/hhkb/jp/matrix.c b/keyboards/hhkb/jp/matrix.c index 9d04d62849..caedeef008 100644 --- a/keyboards/hhkb/jp/matrix.c +++ b/keyboards/hhkb/jp/matrix.c | |||
| @@ -71,7 +71,7 @@ void matrix_init(void) | |||
| 71 | matrix = _matrix0; | 71 | matrix = _matrix0; |
| 72 | matrix_prev = _matrix1; | 72 | matrix_prev = _matrix1; |
| 73 | 73 | ||
| 74 | matrix_init_quantum(); | 74 | matrix_init_kb(); |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | __attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); } | 77 | __attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); } |
| @@ -159,7 +159,7 @@ uint8_t matrix_scan(void) | |||
| 159 | suspend_power_down(); | 159 | suspend_power_down(); |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | matrix_scan_quantum(); | 162 | matrix_scan_kb(); |
| 163 | 163 | ||
| 164 | return 1; | 164 | return 1; |
| 165 | } | 165 | } |
diff --git a/keyboards/hotdox/matrix.c b/keyboards/hotdox/matrix.c index 0da5a3e3a2..04b6d72b75 100644 --- a/keyboards/hotdox/matrix.c +++ b/keyboards/hotdox/matrix.c | |||
| @@ -81,7 +81,7 @@ void matrix_init(void) | |||
| 81 | } | 81 | } |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | matrix_init_quantum(); | 84 | matrix_init_kb(); |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | void matrix_power_up(void) { | 87 | void matrix_power_up(void) { |
| @@ -133,7 +133,7 @@ uint8_t matrix_scan(void) | |||
| 133 | unselect_rows(); | 133 | unselect_rows(); |
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | matrix_scan_quantum(); | 136 | matrix_scan_kb(); |
| 137 | 137 | ||
| 138 | return 1; | 138 | return 1; |
| 139 | } | 139 | } |
diff --git a/keyboards/jones/v03/matrix.c b/keyboards/jones/v03/matrix.c index 9f3e76f935..efcd7043e6 100644 --- a/keyboards/jones/v03/matrix.c +++ b/keyboards/jones/v03/matrix.c | |||
| @@ -83,7 +83,7 @@ void matrix_init_custom(void) { | |||
| 83 | // initialize key pins | 83 | // initialize key pins |
| 84 | init_pins(); | 84 | init_pins(); |
| 85 | 85 | ||
| 86 | matrix_init_quantum(); | 86 | matrix_init_kb(); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | bool matrix_scan_custom(matrix_row_t current_matrix[]) { | 89 | bool matrix_scan_custom(matrix_row_t current_matrix[]) { |
| @@ -94,6 +94,6 @@ bool matrix_scan_custom(matrix_row_t current_matrix[]) { | |||
| 94 | changed |= read_cols_on_row(current_matrix, current_row); | 94 | changed |= read_cols_on_row(current_matrix, current_row); |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | matrix_scan_quantum(); | 97 | matrix_scan_kb(); |
| 98 | return changed; | 98 | return changed; |
| 99 | } | 99 | } |
diff --git a/keyboards/jones/v03_1/matrix.c b/keyboards/jones/v03_1/matrix.c index 9f3e76f935..efcd7043e6 100644 --- a/keyboards/jones/v03_1/matrix.c +++ b/keyboards/jones/v03_1/matrix.c | |||
| @@ -83,7 +83,7 @@ void matrix_init_custom(void) { | |||
| 83 | // initialize key pins | 83 | // initialize key pins |
| 84 | init_pins(); | 84 | init_pins(); |
| 85 | 85 | ||
| 86 | matrix_init_quantum(); | 86 | matrix_init_kb(); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | bool matrix_scan_custom(matrix_row_t current_matrix[]) { | 89 | bool matrix_scan_custom(matrix_row_t current_matrix[]) { |
| @@ -94,6 +94,6 @@ bool matrix_scan_custom(matrix_row_t current_matrix[]) { | |||
| 94 | changed |= read_cols_on_row(current_matrix, current_row); | 94 | changed |= read_cols_on_row(current_matrix, current_row); |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | matrix_scan_quantum(); | 97 | matrix_scan_kb(); |
| 98 | return changed; | 98 | return changed; |
| 99 | } | 99 | } |
diff --git a/keyboards/kakunpc/angel64/alpha/matrix.c b/keyboards/kakunpc/angel64/alpha/matrix.c index 8ca9841e48..7abc50005b 100644 --- a/keyboards/kakunpc/angel64/alpha/matrix.c +++ b/keyboards/kakunpc/angel64/alpha/matrix.c | |||
| @@ -50,16 +50,6 @@ static matrix_row_t raw_matrix[MATRIX_ROWS]; //raw values | |||
| 50 | static matrix_row_t matrix[MATRIX_ROWS]; //debounced values | 50 | static matrix_row_t matrix[MATRIX_ROWS]; //debounced values |
| 51 | 51 | ||
| 52 | __attribute__ ((weak)) | 52 | __attribute__ ((weak)) |
| 53 | void matrix_init_quantum(void) { | ||
| 54 | matrix_init_kb(); | ||
| 55 | } | ||
| 56 | |||
| 57 | __attribute__ ((weak)) | ||
| 58 | void matrix_scan_quantum(void) { | ||
| 59 | matrix_scan_kb(); | ||
| 60 | } | ||
| 61 | |||
| 62 | __attribute__ ((weak)) | ||
| 63 | void matrix_init_kb(void) { | 53 | void matrix_init_kb(void) { |
| 64 | matrix_init_user(); | 54 | matrix_init_user(); |
| 65 | } | 55 | } |
| @@ -244,7 +234,7 @@ void matrix_init(void) { | |||
| 244 | 234 | ||
| 245 | debounce_init(MATRIX_ROWS); | 235 | debounce_init(MATRIX_ROWS); |
| 246 | 236 | ||
| 247 | matrix_init_quantum(); | 237 | matrix_init_kb(); |
| 248 | } | 238 | } |
| 249 | 239 | ||
| 250 | uint8_t matrix_scan(void) | 240 | uint8_t matrix_scan(void) |
| @@ -263,6 +253,6 @@ uint8_t matrix_scan(void) | |||
| 263 | 253 | ||
| 264 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | 254 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); |
| 265 | 255 | ||
| 266 | matrix_scan_quantum(); | 256 | matrix_scan_kb(); |
| 267 | return (uint8_t)changed; | 257 | return (uint8_t)changed; |
| 268 | } | 258 | } |
diff --git a/keyboards/kakunpc/angel64/rev1/matrix.c b/keyboards/kakunpc/angel64/rev1/matrix.c index 8ca9841e48..7abc50005b 100644 --- a/keyboards/kakunpc/angel64/rev1/matrix.c +++ b/keyboards/kakunpc/angel64/rev1/matrix.c | |||
| @@ -50,16 +50,6 @@ static matrix_row_t raw_matrix[MATRIX_ROWS]; //raw values | |||
| 50 | static matrix_row_t matrix[MATRIX_ROWS]; //debounced values | 50 | static matrix_row_t matrix[MATRIX_ROWS]; //debounced values |
| 51 | 51 | ||
| 52 | __attribute__ ((weak)) | 52 | __attribute__ ((weak)) |
| 53 | void matrix_init_quantum(void) { | ||
| 54 | matrix_init_kb(); | ||
| 55 | } | ||
| 56 | |||
| 57 | __attribute__ ((weak)) | ||
| 58 | void matrix_scan_quantum(void) { | ||
| 59 | matrix_scan_kb(); | ||
| 60 | } | ||
| 61 | |||
| 62 | __attribute__ ((weak)) | ||
| 63 | void matrix_init_kb(void) { | 53 | void matrix_init_kb(void) { |
| 64 | matrix_init_user(); | 54 | matrix_init_user(); |
| 65 | } | 55 | } |
| @@ -244,7 +234,7 @@ void matrix_init(void) { | |||
| 244 | 234 | ||
| 245 | debounce_init(MATRIX_ROWS); | 235 | debounce_init(MATRIX_ROWS); |
| 246 | 236 | ||
| 247 | matrix_init_quantum(); | 237 | matrix_init_kb(); |
| 248 | } | 238 | } |
| 249 | 239 | ||
| 250 | uint8_t matrix_scan(void) | 240 | uint8_t matrix_scan(void) |
| @@ -263,6 +253,6 @@ uint8_t matrix_scan(void) | |||
| 263 | 253 | ||
| 264 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | 254 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); |
| 265 | 255 | ||
| 266 | matrix_scan_quantum(); | 256 | matrix_scan_kb(); |
| 267 | return (uint8_t)changed; | 257 | return (uint8_t)changed; |
| 268 | } | 258 | } |
diff --git a/keyboards/kakunpc/thedogkeyboard/matrix.c b/keyboards/kakunpc/thedogkeyboard/matrix.c index 8ca9841e48..7abc50005b 100644 --- a/keyboards/kakunpc/thedogkeyboard/matrix.c +++ b/keyboards/kakunpc/thedogkeyboard/matrix.c | |||
| @@ -50,16 +50,6 @@ static matrix_row_t raw_matrix[MATRIX_ROWS]; //raw values | |||
| 50 | static matrix_row_t matrix[MATRIX_ROWS]; //debounced values | 50 | static matrix_row_t matrix[MATRIX_ROWS]; //debounced values |
| 51 | 51 | ||
| 52 | __attribute__ ((weak)) | 52 | __attribute__ ((weak)) |
| 53 | void matrix_init_quantum(void) { | ||
| 54 | matrix_init_kb(); | ||
| 55 | } | ||
| 56 | |||
| 57 | __attribute__ ((weak)) | ||
| 58 | void matrix_scan_quantum(void) { | ||
| 59 | matrix_scan_kb(); | ||
| 60 | } | ||
| 61 | |||
| 62 | __attribute__ ((weak)) | ||
| 63 | void matrix_init_kb(void) { | 53 | void matrix_init_kb(void) { |
| 64 | matrix_init_user(); | 54 | matrix_init_user(); |
| 65 | } | 55 | } |
| @@ -244,7 +234,7 @@ void matrix_init(void) { | |||
| 244 | 234 | ||
| 245 | debounce_init(MATRIX_ROWS); | 235 | debounce_init(MATRIX_ROWS); |
| 246 | 236 | ||
| 247 | matrix_init_quantum(); | 237 | matrix_init_kb(); |
| 248 | } | 238 | } |
| 249 | 239 | ||
| 250 | uint8_t matrix_scan(void) | 240 | uint8_t matrix_scan(void) |
| @@ -263,6 +253,6 @@ uint8_t matrix_scan(void) | |||
| 263 | 253 | ||
| 264 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | 254 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); |
| 265 | 255 | ||
| 266 | matrix_scan_quantum(); | 256 | matrix_scan_kb(); |
| 267 | return (uint8_t)changed; | 257 | return (uint8_t)changed; |
| 268 | } | 258 | } |
diff --git a/keyboards/keyboardio/model01/matrix.c b/keyboards/keyboardio/model01/matrix.c index 524ec9bdca..4b788d2812 100644 --- a/keyboards/keyboardio/model01/matrix.c +++ b/keyboards/keyboardio/model01/matrix.c | |||
| @@ -77,14 +77,14 @@ void matrix_init(void) { | |||
| 77 | i2c_set_keyscan_interval(RIGHT, 2); | 77 | i2c_set_keyscan_interval(RIGHT, 2); |
| 78 | memset(rows, 0, sizeof(rows)); | 78 | memset(rows, 0, sizeof(rows)); |
| 79 | 79 | ||
| 80 | matrix_init_quantum(); | 80 | matrix_init_kb(); |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | uint8_t matrix_scan(void) { | 83 | uint8_t matrix_scan(void) { |
| 84 | uint8_t ret = 0; | 84 | uint8_t ret = 0; |
| 85 | ret |= i2c_read_hand(LEFT); | 85 | ret |= i2c_read_hand(LEFT); |
| 86 | ret |= i2c_read_hand(RIGHT); | 86 | ret |= i2c_read_hand(RIGHT); |
| 87 | matrix_scan_quantum(); | 87 | matrix_scan_kb(); |
| 88 | return ret; | 88 | return ret; |
| 89 | } | 89 | } |
| 90 | 90 | ||
diff --git a/keyboards/keyhive/honeycomb/matrix.c b/keyboards/keyhive/honeycomb/matrix.c index c8a7992ec5..64008228af 100755 --- a/keyboards/keyhive/honeycomb/matrix.c +++ b/keyboards/keyhive/honeycomb/matrix.c | |||
| @@ -54,16 +54,6 @@ static matrix_row_t matrix[MATRIX_ROWS]; | |||
| 54 | int8_t encoderValue = 0; | 54 | int8_t encoderValue = 0; |
| 55 | 55 | ||
| 56 | __attribute__ ((weak)) | 56 | __attribute__ ((weak)) |
| 57 | void matrix_init_quantum(void) { | ||
| 58 | matrix_init_kb(); | ||
| 59 | } | ||
| 60 | |||
| 61 | __attribute__ ((weak)) | ||
| 62 | void matrix_scan_quantum(void) { | ||
| 63 | matrix_scan_kb(); | ||
| 64 | } | ||
| 65 | |||
| 66 | __attribute__ ((weak)) | ||
| 67 | void matrix_init_kb(void) { | 57 | void matrix_init_kb(void) { |
| 68 | matrix_init_user(); | 58 | matrix_init_user(); |
| 69 | } | 59 | } |
| @@ -93,7 +83,7 @@ uint8_t matrix_cols(void) { | |||
| 93 | 83 | ||
| 94 | void matrix_init(void) { | 84 | void matrix_init(void) { |
| 95 | 85 | ||
| 96 | matrix_init_quantum(); | 86 | matrix_init_kb(); |
| 97 | uart_init(1000000); | 87 | uart_init(1000000); |
| 98 | } | 88 | } |
| 99 | 89 | ||
| @@ -168,7 +158,7 @@ uint8_t matrix_scan(void) | |||
| 168 | xprintf("\r\nRequested packet, data 3 was %d",uart_data[3]); | 158 | xprintf("\r\nRequested packet, data 3 was %d",uart_data[3]); |
| 169 | } | 159 | } |
| 170 | 160 | ||
| 171 | matrix_scan_quantum(); | 161 | matrix_scan_kb(); |
| 172 | return 1; | 162 | return 1; |
| 173 | } | 163 | } |
| 174 | 164 | ||
diff --git a/keyboards/kinesis/alvicstep/matrix.c b/keyboards/kinesis/alvicstep/matrix.c index 5636418849..07df19e966 100644 --- a/keyboards/kinesis/alvicstep/matrix.c +++ b/keyboards/kinesis/alvicstep/matrix.c | |||
| @@ -132,7 +132,7 @@ uint8_t matrix_scan(void) | |||
| 132 | } | 132 | } |
| 133 | } | 133 | } |
| 134 | } | 134 | } |
| 135 | matrix_scan_quantum(); | 135 | matrix_scan_kb(); |
| 136 | return 1; | 136 | return 1; |
| 137 | } | 137 | } |
| 138 | 138 | ||
diff --git a/keyboards/kmac/matrix.c b/keyboards/kmac/matrix.c index 2052a9be71..6569867032 100644 --- a/keyboards/kmac/matrix.c +++ b/keyboards/kmac/matrix.c | |||
| @@ -45,10 +45,6 @@ static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS; | |||
| 45 | static matrix_row_t raw_matrix[MATRIX_ROWS]; // raw values | 45 | static matrix_row_t raw_matrix[MATRIX_ROWS]; // raw values |
| 46 | static matrix_row_t matrix[MATRIX_ROWS]; // debounced values | 46 | static matrix_row_t matrix[MATRIX_ROWS]; // debounced values |
| 47 | 47 | ||
| 48 | __attribute__((weak)) void matrix_init_quantum(void) { matrix_init_kb(); } | ||
| 49 | |||
| 50 | __attribute__((weak)) void matrix_scan_quantum(void) { matrix_scan_kb(); } | ||
| 51 | |||
| 52 | __attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); } | 48 | __attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); } |
| 53 | 49 | ||
| 54 | __attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); } | 50 | __attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); } |
| @@ -191,7 +187,7 @@ void matrix_init(void) { | |||
| 191 | 187 | ||
| 192 | debounce_init(MATRIX_ROWS); | 188 | debounce_init(MATRIX_ROWS); |
| 193 | 189 | ||
| 194 | matrix_init_quantum(); | 190 | matrix_init_kb(); |
| 195 | } | 191 | } |
| 196 | 192 | ||
| 197 | uint8_t matrix_scan(void) { | 193 | uint8_t matrix_scan(void) { |
| @@ -203,7 +199,7 @@ uint8_t matrix_scan(void) { | |||
| 203 | 199 | ||
| 204 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | 200 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); |
| 205 | 201 | ||
| 206 | matrix_scan_quantum(); | 202 | matrix_scan_kb(); |
| 207 | 203 | ||
| 208 | return (uint8_t)changed; | 204 | return (uint8_t)changed; |
| 209 | } | 205 | } |
diff --git a/keyboards/kmini/matrix.c b/keyboards/kmini/matrix.c index f3e60eb869..92565e937a 100755 --- a/keyboards/kmini/matrix.c +++ b/keyboards/kmini/matrix.c | |||
| @@ -84,7 +84,7 @@ void matrix_init(void) { | |||
| 84 | matrix_debouncing[i] = 0; | 84 | matrix_debouncing[i] = 0; |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | matrix_init_quantum(); | 87 | matrix_init_kb(); |
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | uint8_t matrix_scan(void) | 90 | uint8_t matrix_scan(void) |
| @@ -105,7 +105,7 @@ uint8_t matrix_scan(void) | |||
| 105 | debouncing = false; | 105 | debouncing = false; |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | matrix_scan_quantum(); | 108 | matrix_scan_kb(); |
| 109 | return 1; | 109 | return 1; |
| 110 | } | 110 | } |
| 111 | 111 | ||
diff --git a/keyboards/matrix/noah/matrix.c b/keyboards/matrix/noah/matrix.c index d5aca79cf6..90e7006b78 100644 --- a/keyboards/matrix/noah/matrix.c +++ b/keyboards/matrix/noah/matrix.c | |||
| @@ -85,7 +85,7 @@ void matrix_init(void) | |||
| 85 | memset(matrix, 0, MATRIX_ROWS * sizeof(matrix_row_t)); | 85 | memset(matrix, 0, MATRIX_ROWS * sizeof(matrix_row_t)); |
| 86 | memset(matrix_debouncing, 0, MATRIX_COLS * sizeof(matrix_row_t)); | 86 | memset(matrix_debouncing, 0, MATRIX_COLS * sizeof(matrix_row_t)); |
| 87 | 87 | ||
| 88 | matrix_init_quantum(); | 88 | matrix_init_kb(); |
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | uint8_t matrix_scan(void) | 91 | uint8_t matrix_scan(void) |
| @@ -156,7 +156,7 @@ uint8_t matrix_scan(void) | |||
| 156 | debouncing = false; | 156 | debouncing = false; |
| 157 | } | 157 | } |
| 158 | 158 | ||
| 159 | matrix_scan_quantum(); | 159 | matrix_scan_kb(); |
| 160 | 160 | ||
| 161 | return 1; | 161 | return 1; |
| 162 | } | 162 | } |
diff --git a/keyboards/moon/matrix.c b/keyboards/moon/matrix.c index 977338b2f6..bb46e1b576 100644 --- a/keyboards/moon/matrix.c +++ b/keyboards/moon/matrix.c | |||
| @@ -91,10 +91,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 91 | static matrix_row_t raw_matrix[MATRIX_ROWS]; // raw values | 91 | static matrix_row_t raw_matrix[MATRIX_ROWS]; // raw values |
| 92 | static matrix_row_t matrix[MATRIX_ROWS]; // debounced values | 92 | static matrix_row_t matrix[MATRIX_ROWS]; // debounced values |
| 93 | 93 | ||
| 94 | __attribute__((weak)) void matrix_init_quantum(void) { matrix_init_kb(); } | ||
| 95 | |||
| 96 | __attribute__((weak)) void matrix_scan_quantum(void) { matrix_scan_kb(); } | ||
| 97 | |||
| 98 | __attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); } | 94 | __attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); } |
| 99 | 95 | ||
| 100 | __attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); } | 96 | __attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); } |
| @@ -191,7 +187,7 @@ void matrix_init(void) { | |||
| 191 | 187 | ||
| 192 | debounce_init(MATRIX_ROWS); | 188 | debounce_init(MATRIX_ROWS); |
| 193 | 189 | ||
| 194 | matrix_init_quantum(); | 190 | matrix_init_kb(); |
| 195 | } | 191 | } |
| 196 | 192 | ||
| 197 | uint8_t matrix_scan(void) { | 193 | uint8_t matrix_scan(void) { |
| @@ -203,7 +199,7 @@ uint8_t matrix_scan(void) { | |||
| 203 | 199 | ||
| 204 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | 200 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); |
| 205 | 201 | ||
| 206 | matrix_scan_quantum(); | 202 | matrix_scan_kb(); |
| 207 | 203 | ||
| 208 | return (uint8_t)changed; | 204 | return (uint8_t)changed; |
| 209 | } | 205 | } |
diff --git a/keyboards/nek_type_a/matrix.c b/keyboards/nek_type_a/matrix.c index 2989af5108..76613947f6 100644 --- a/keyboards/nek_type_a/matrix.c +++ b/keyboards/nek_type_a/matrix.c | |||
| @@ -92,17 +92,6 @@ static matrix_row_t matrix_debouncing[MATRIX_ROWS]; | |||
| 92 | #endif | 92 | #endif |
| 93 | 93 | ||
| 94 | __attribute__ ((weak)) | 94 | __attribute__ ((weak)) |
| 95 | void matrix_init_quantum(void) { | ||
| 96 | expander_init(); | ||
| 97 | matrix_init_kb(); | ||
| 98 | } | ||
| 99 | |||
| 100 | __attribute__ ((weak)) | ||
| 101 | void matrix_scan_quantum(void) { | ||
| 102 | matrix_scan_kb(); | ||
| 103 | } | ||
| 104 | |||
| 105 | __attribute__ ((weak)) | ||
| 106 | void matrix_init_kb(void) { | 95 | void matrix_init_kb(void) { |
| 107 | matrix_init_user(); | 96 | matrix_init_user(); |
| 108 | } | 97 | } |
| @@ -146,7 +135,7 @@ void matrix_init(void) { | |||
| 146 | matrix_debouncing[i] = 0; | 135 | matrix_debouncing[i] = 0; |
| 147 | } | 136 | } |
| 148 | 137 | ||
| 149 | matrix_init_quantum(); | 138 | matrix_init_kb(); |
| 150 | set_output(OUTPUT_AUTO); | 139 | set_output(OUTPUT_AUTO); |
| 151 | } | 140 | } |
| 152 | 141 | ||
| @@ -198,7 +187,7 @@ uint8_t matrix_scan(void) | |||
| 198 | } | 187 | } |
| 199 | # endif | 188 | # endif |
| 200 | 189 | ||
| 201 | matrix_scan_quantum(); | 190 | matrix_scan_kb(); |
| 202 | return 1; | 191 | return 1; |
| 203 | } | 192 | } |
| 204 | 193 | ||
diff --git a/keyboards/planck/rev6_drop/matrix.c b/keyboards/planck/rev6_drop/matrix.c index 7eaaf053f8..6f7d6725a1 100644 --- a/keyboards/planck/rev6_drop/matrix.c +++ b/keyboards/planck/rev6_drop/matrix.c | |||
| @@ -67,7 +67,7 @@ void matrix_init(void) { | |||
| 67 | memset(matrix, 0, MATRIX_ROWS * sizeof(matrix_row_t)); | 67 | memset(matrix, 0, MATRIX_ROWS * sizeof(matrix_row_t)); |
| 68 | memset(matrix_debouncing, 0, MATRIX_COLS * sizeof(matrix_row_t)); | 68 | memset(matrix_debouncing, 0, MATRIX_COLS * sizeof(matrix_row_t)); |
| 69 | 69 | ||
| 70 | matrix_init_quantum(); | 70 | matrix_init_kb(); |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | uint8_t matrix_scan(void) { | 73 | uint8_t matrix_scan(void) { |
| @@ -142,7 +142,7 @@ uint8_t matrix_scan(void) { | |||
| 142 | debouncing = false; | 142 | debouncing = false; |
| 143 | } | 143 | } |
| 144 | 144 | ||
| 145 | matrix_scan_quantum(); | 145 | matrix_scan_kb(); |
| 146 | 146 | ||
| 147 | return 1; | 147 | return 1; |
| 148 | } | 148 | } |
diff --git a/keyboards/preonic/rev3_drop/matrix.c b/keyboards/preonic/rev3_drop/matrix.c index 2477dfca1b..60718caaba 100644 --- a/keyboards/preonic/rev3_drop/matrix.c +++ b/keyboards/preonic/rev3_drop/matrix.c | |||
| @@ -71,7 +71,7 @@ void matrix_init(void) { | |||
| 71 | memset(matrix, 0, MATRIX_ROWS * sizeof(matrix_row_t)); | 71 | memset(matrix, 0, MATRIX_ROWS * sizeof(matrix_row_t)); |
| 72 | memset(matrix_debouncing, 0, MATRIX_COLS * sizeof(matrix_col_t)); | 72 | memset(matrix_debouncing, 0, MATRIX_COLS * sizeof(matrix_col_t)); |
| 73 | 73 | ||
| 74 | matrix_init_quantum(); | 74 | matrix_init_kb(); |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | uint8_t matrix_scan(void) { | 77 | uint8_t matrix_scan(void) { |
| @@ -146,7 +146,7 @@ uint8_t matrix_scan(void) { | |||
| 146 | debouncing = false; | 146 | debouncing = false; |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | matrix_scan_quantum(); | 149 | matrix_scan_kb(); |
| 150 | 150 | ||
| 151 | return 1; | 151 | return 1; |
| 152 | } | 152 | } |
diff --git a/keyboards/redscarf_iiplus/verb/matrix.c b/keyboards/redscarf_iiplus/verb/matrix.c index 930d246434..aa2cd8e510 100755 --- a/keyboards/redscarf_iiplus/verb/matrix.c +++ b/keyboards/redscarf_iiplus/verb/matrix.c | |||
| @@ -54,16 +54,6 @@ static matrix_row_t raw_matrix[MATRIX_ROWS]; //raw values | |||
| 54 | static matrix_row_t matrix[MATRIX_ROWS]; //debounced values | 54 | static matrix_row_t matrix[MATRIX_ROWS]; //debounced values |
| 55 | 55 | ||
| 56 | __attribute__ ((weak)) | 56 | __attribute__ ((weak)) |
| 57 | void matrix_init_quantum(void) { | ||
| 58 | matrix_init_kb(); | ||
| 59 | } | ||
| 60 | |||
| 61 | __attribute__ ((weak)) | ||
| 62 | void matrix_scan_quantum(void) { | ||
| 63 | matrix_scan_kb(); | ||
| 64 | } | ||
| 65 | |||
| 66 | __attribute__ ((weak)) | ||
| 67 | void matrix_init_kb(void) { | 57 | void matrix_init_kb(void) { |
| 68 | matrix_init_user(); | 58 | matrix_init_user(); |
| 69 | } | 59 | } |
| @@ -345,7 +335,7 @@ void matrix_init(void) { | |||
| 345 | 335 | ||
| 346 | debounce_init(MATRIX_ROWS); | 336 | debounce_init(MATRIX_ROWS); |
| 347 | 337 | ||
| 348 | matrix_init_quantum(); | 338 | matrix_init_kb(); |
| 349 | } | 339 | } |
| 350 | 340 | ||
| 351 | uint8_t matrix_scan(void) | 341 | uint8_t matrix_scan(void) |
| @@ -366,6 +356,6 @@ uint8_t matrix_scan(void) | |||
| 366 | 356 | ||
| 367 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | 357 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); |
| 368 | 358 | ||
| 369 | matrix_scan_quantum(); | 359 | matrix_scan_kb(); |
| 370 | return 1; | 360 | return 1; |
| 371 | } | 361 | } |
diff --git a/keyboards/redscarf_iiplus/verc/matrix.c b/keyboards/redscarf_iiplus/verc/matrix.c index 930d246434..aa2cd8e510 100755 --- a/keyboards/redscarf_iiplus/verc/matrix.c +++ b/keyboards/redscarf_iiplus/verc/matrix.c | |||
| @@ -54,16 +54,6 @@ static matrix_row_t raw_matrix[MATRIX_ROWS]; //raw values | |||
| 54 | static matrix_row_t matrix[MATRIX_ROWS]; //debounced values | 54 | static matrix_row_t matrix[MATRIX_ROWS]; //debounced values |
| 55 | 55 | ||
| 56 | __attribute__ ((weak)) | 56 | __attribute__ ((weak)) |
| 57 | void matrix_init_quantum(void) { | ||
| 58 | matrix_init_kb(); | ||
| 59 | } | ||
| 60 | |||
| 61 | __attribute__ ((weak)) | ||
| 62 | void matrix_scan_quantum(void) { | ||
| 63 | matrix_scan_kb(); | ||
| 64 | } | ||
| 65 | |||
| 66 | __attribute__ ((weak)) | ||
| 67 | void matrix_init_kb(void) { | 57 | void matrix_init_kb(void) { |
| 68 | matrix_init_user(); | 58 | matrix_init_user(); |
| 69 | } | 59 | } |
| @@ -345,7 +335,7 @@ void matrix_init(void) { | |||
| 345 | 335 | ||
| 346 | debounce_init(MATRIX_ROWS); | 336 | debounce_init(MATRIX_ROWS); |
| 347 | 337 | ||
| 348 | matrix_init_quantum(); | 338 | matrix_init_kb(); |
| 349 | } | 339 | } |
| 350 | 340 | ||
| 351 | uint8_t matrix_scan(void) | 341 | uint8_t matrix_scan(void) |
| @@ -366,6 +356,6 @@ uint8_t matrix_scan(void) | |||
| 366 | 356 | ||
| 367 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | 357 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); |
| 368 | 358 | ||
| 369 | matrix_scan_quantum(); | 359 | matrix_scan_kb(); |
| 370 | return 1; | 360 | return 1; |
| 371 | } | 361 | } |
diff --git a/keyboards/redscarf_iiplus/verd/matrix.c b/keyboards/redscarf_iiplus/verd/matrix.c index b703932229..382847e941 100644 --- a/keyboards/redscarf_iiplus/verd/matrix.c +++ b/keyboards/redscarf_iiplus/verd/matrix.c | |||
| @@ -54,16 +54,6 @@ static matrix_row_t raw_matrix[MATRIX_ROWS]; //raw values | |||
| 54 | static matrix_row_t matrix[MATRIX_ROWS]; //debounced values | 54 | static matrix_row_t matrix[MATRIX_ROWS]; //debounced values |
| 55 | 55 | ||
| 56 | __attribute__ ((weak)) | 56 | __attribute__ ((weak)) |
| 57 | void matrix_init_quantum(void) { | ||
| 58 | matrix_init_kb(); | ||
| 59 | } | ||
| 60 | |||
| 61 | __attribute__ ((weak)) | ||
| 62 | void matrix_scan_quantum(void) { | ||
| 63 | matrix_scan_kb(); | ||
| 64 | } | ||
| 65 | |||
| 66 | __attribute__ ((weak)) | ||
| 67 | void matrix_init_kb(void) { | 57 | void matrix_init_kb(void) { |
| 68 | matrix_init_user(); | 58 | matrix_init_user(); |
| 69 | } | 59 | } |
| @@ -345,7 +335,7 @@ void matrix_init(void) { | |||
| 345 | 335 | ||
| 346 | debounce_init(MATRIX_ROWS); | 336 | debounce_init(MATRIX_ROWS); |
| 347 | 337 | ||
| 348 | matrix_init_quantum(); | 338 | matrix_init_kb(); |
| 349 | } | 339 | } |
| 350 | 340 | ||
| 351 | uint8_t matrix_scan(void) | 341 | uint8_t matrix_scan(void) |
| @@ -366,6 +356,6 @@ uint8_t matrix_scan(void) | |||
| 366 | 356 | ||
| 367 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | 357 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); |
| 368 | 358 | ||
| 369 | matrix_scan_quantum(); | 359 | matrix_scan_kb(); |
| 370 | return 1; | 360 | return 1; |
| 371 | } | 361 | } |
diff --git a/keyboards/sixkeyboard/matrix.c b/keyboards/sixkeyboard/matrix.c index 36ae05fb42..17d51a8885 100644 --- a/keyboards/sixkeyboard/matrix.c +++ b/keyboards/sixkeyboard/matrix.c | |||
| @@ -85,7 +85,7 @@ void matrix_init(void) | |||
| 85 | matrix_stage[i] = 0; | 85 | matrix_stage[i] = 0; |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | matrix_init_quantum(); | 88 | matrix_init_kb(); |
| 89 | 89 | ||
| 90 | } | 90 | } |
| 91 | 91 | ||
| @@ -109,7 +109,7 @@ uint8_t matrix_scan(void) | |||
| 109 | debouncing = false; | 109 | debouncing = false; |
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | matrix_scan_quantum(); | 112 | matrix_scan_kb(); |
| 113 | 113 | ||
| 114 | return 1; | 114 | return 1; |
| 115 | } | 115 | } |
diff --git a/keyboards/sx60/matrix.c b/keyboards/sx60/matrix.c index 94d581f574..66bc494be6 100644 --- a/keyboards/sx60/matrix.c +++ b/keyboards/sx60/matrix.c | |||
| @@ -72,16 +72,6 @@ static void unselect_rows(void); | |||
| 72 | static void select_row(uint8_t row); | 72 | static void select_row(uint8_t row); |
| 73 | 73 | ||
| 74 | __attribute__ ((weak)) | 74 | __attribute__ ((weak)) |
| 75 | void matrix_init_quantum(void) { | ||
| 76 | matrix_init_kb(); | ||
| 77 | } | ||
| 78 | |||
| 79 | __attribute__ ((weak)) | ||
| 80 | void matrix_scan_quantum(void) { | ||
| 81 | matrix_scan_kb(); | ||
| 82 | } | ||
| 83 | |||
| 84 | __attribute__ ((weak)) | ||
| 85 | void matrix_init_kb(void) { | 75 | void matrix_init_kb(void) { |
| 86 | matrix_init_user(); | 76 | matrix_init_user(); |
| 87 | } | 77 | } |
| @@ -122,7 +112,7 @@ void matrix_init(void) { | |||
| 122 | matrix_debouncing[i] = 0; | 112 | matrix_debouncing[i] = 0; |
| 123 | } | 113 | } |
| 124 | 114 | ||
| 125 | matrix_init_quantum(); | 115 | matrix_init_kb(); |
| 126 | } | 116 | } |
| 127 | 117 | ||
| 128 | uint8_t matrix_scan(void) | 118 | uint8_t matrix_scan(void) |
| @@ -165,7 +155,7 @@ uint8_t matrix_scan(void) | |||
| 165 | } | 155 | } |
| 166 | # endif | 156 | # endif |
| 167 | 157 | ||
| 168 | matrix_scan_quantum(); | 158 | matrix_scan_kb(); |
| 169 | return 1; | 159 | return 1; |
| 170 | } | 160 | } |
| 171 | 161 | ||
diff --git a/keyboards/touchpad/matrix.c b/keyboards/touchpad/matrix.c index 3af4c5c3c7..6bffb826bd 100644 --- a/keyboards/touchpad/matrix.c +++ b/keyboards/touchpad/matrix.c | |||
| @@ -158,7 +158,7 @@ void matrix_init(void) { | |||
| 158 | 158 | ||
| 159 | memset(matrix, 0, MATRIX_ROWS * sizeof(matrix_row_t)); | 159 | memset(matrix, 0, MATRIX_ROWS * sizeof(matrix_row_t)); |
| 160 | 160 | ||
| 161 | matrix_init_quantum(); | 161 | matrix_init_kb(); |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | 164 | ||
| @@ -261,7 +261,7 @@ uint8_t matrix_scan(void) { | |||
| 261 | writePinLow(E6); | 261 | writePinLow(E6); |
| 262 | } | 262 | } |
| 263 | 263 | ||
| 264 | matrix_scan_quantum(); | 264 | matrix_scan_kb(); |
| 265 | 265 | ||
| 266 | return 1; | 266 | return 1; |
| 267 | 267 | ||
diff --git a/keyboards/woodkeys/meira/matrix.c b/keyboards/woodkeys/meira/matrix.c index 4fdc354237..145750a418 100644 --- a/keyboards/woodkeys/meira/matrix.c +++ b/keyboards/woodkeys/meira/matrix.c | |||
| @@ -119,7 +119,7 @@ void matrix_init(void) | |||
| 119 | matrix_debouncing[i] = 0; | 119 | matrix_debouncing[i] = 0; |
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | matrix_init_quantum(); | 122 | matrix_init_kb(); |
| 123 | 123 | ||
| 124 | } | 124 | } |
| 125 | 125 | ||
| @@ -154,7 +154,7 @@ uint8_t _matrix_scan(void) | |||
| 154 | uint8_t matrix_scan(void) | 154 | uint8_t matrix_scan(void) |
| 155 | { | 155 | { |
| 156 | uint8_t ret = _matrix_scan(); | 156 | uint8_t ret = _matrix_scan(); |
| 157 | matrix_scan_quantum(); | 157 | matrix_scan_kb(); |
| 158 | return ret; | 158 | return ret; |
| 159 | } | 159 | } |
| 160 | 160 | ||
diff --git a/keyboards/ymdk/sp64/matrix.c b/keyboards/ymdk/sp64/matrix.c index 69276c7b3c..b5f0e10462 100644 --- a/keyboards/ymdk/sp64/matrix.c +++ b/keyboards/ymdk/sp64/matrix.c | |||
| @@ -74,7 +74,7 @@ void matrix_init(void) | |||
| 74 | matrix_debouncing[row] = 0; | 74 | matrix_debouncing[row] = 0; |
| 75 | } | 75 | } |
| 76 | debounce_init(MATRIX_ROWS); | 76 | debounce_init(MATRIX_ROWS); |
| 77 | matrix_init_quantum(); | 77 | matrix_init_kb(); |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | uint8_t matrix_scan(void) | 80 | uint8_t matrix_scan(void) |
| @@ -127,7 +127,7 @@ uint8_t matrix_scan(void) | |||
| 127 | 127 | ||
| 128 | debounce(matrix_debouncing, matrix, MATRIX_ROWS, changed); | 128 | debounce(matrix_debouncing, matrix, MATRIX_ROWS, changed); |
| 129 | 129 | ||
| 130 | matrix_scan_quantum(); | 130 | matrix_scan_kb(); |
| 131 | 131 | ||
| 132 | #ifdef DEBUG_MATRIX | 132 | #ifdef DEBUG_MATRIX |
| 133 | for (uint8_t c = 0; c < MATRIX_COLS; c++) | 133 | for (uint8_t c = 0; c < MATRIX_COLS; c++) |
diff --git a/quantum/matrix.c b/quantum/matrix.c index 0de65c6cdd..97d41caedd 100644 --- a/quantum/matrix.c +++ b/quantum/matrix.c | |||
| @@ -308,7 +308,7 @@ void matrix_init(void) { | |||
| 308 | 308 | ||
| 309 | debounce_init(ROWS_PER_HAND); | 309 | debounce_init(ROWS_PER_HAND); |
| 310 | 310 | ||
| 311 | matrix_init_quantum(); | 311 | matrix_init_kb(); |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | #ifdef SPLIT_KEYBOARD | 314 | #ifdef SPLIT_KEYBOARD |
| @@ -342,7 +342,7 @@ uint8_t matrix_scan(void) { | |||
| 342 | changed = debounce(raw_matrix, matrix + thisHand, ROWS_PER_HAND, changed) | matrix_post_scan(); | 342 | changed = debounce(raw_matrix, matrix + thisHand, ROWS_PER_HAND, changed) | matrix_post_scan(); |
| 343 | #else | 343 | #else |
| 344 | changed = debounce(raw_matrix, matrix, ROWS_PER_HAND, changed); | 344 | changed = debounce(raw_matrix, matrix, ROWS_PER_HAND, changed); |
| 345 | matrix_scan_quantum(); | 345 | matrix_scan_kb(); |
| 346 | #endif | 346 | #endif |
| 347 | return (uint8_t)changed; | 347 | return (uint8_t)changed; |
| 348 | } | 348 | } |
diff --git a/quantum/matrix.h b/quantum/matrix.h index 4b4210cb0f..760d21e0c1 100644 --- a/quantum/matrix.h +++ b/quantum/matrix.h | |||
| @@ -67,10 +67,6 @@ void matrix_io_delay(void); | |||
| 67 | void matrix_power_up(void); | 67 | void matrix_power_up(void); |
| 68 | void matrix_power_down(void); | 68 | void matrix_power_down(void); |
| 69 | 69 | ||
| 70 | /* executes code for Quantum */ | ||
| 71 | void matrix_init_quantum(void); | ||
| 72 | void matrix_scan_quantum(void); | ||
| 73 | |||
| 74 | void matrix_init_kb(void); | 70 | void matrix_init_kb(void); |
| 75 | void matrix_scan_kb(void); | 71 | void matrix_scan_kb(void); |
| 76 | 72 | ||
diff --git a/quantum/matrix_common.c b/quantum/matrix_common.c index f2b9d58937..3173351888 100644 --- a/quantum/matrix_common.c +++ b/quantum/matrix_common.c | |||
| @@ -111,7 +111,7 @@ bool matrix_post_scan(void) { | |||
| 111 | 111 | ||
| 112 | if (changed) memcpy(matrix + thatHand, slave_matrix, sizeof(slave_matrix)); | 112 | if (changed) memcpy(matrix + thatHand, slave_matrix, sizeof(slave_matrix)); |
| 113 | 113 | ||
| 114 | matrix_scan_quantum(); | 114 | matrix_scan_kb(); |
| 115 | } else { | 115 | } else { |
| 116 | transport_slave(matrix + thatHand, matrix + thisHand); | 116 | transport_slave(matrix + thatHand, matrix + thisHand); |
| 117 | 117 | ||
| @@ -162,7 +162,7 @@ __attribute__((weak)) void matrix_init(void) { | |||
| 162 | 162 | ||
| 163 | debounce_init(ROWS_PER_HAND); | 163 | debounce_init(ROWS_PER_HAND); |
| 164 | 164 | ||
| 165 | matrix_init_quantum(); | 165 | matrix_init_kb(); |
| 166 | } | 166 | } |
| 167 | 167 | ||
| 168 | __attribute__((weak)) uint8_t matrix_scan(void) { | 168 | __attribute__((weak)) uint8_t matrix_scan(void) { |
| @@ -172,7 +172,7 @@ __attribute__((weak)) uint8_t matrix_scan(void) { | |||
| 172 | changed = debounce(raw_matrix, matrix + thisHand, ROWS_PER_HAND, changed) | matrix_post_scan(); | 172 | changed = debounce(raw_matrix, matrix + thisHand, ROWS_PER_HAND, changed) | matrix_post_scan(); |
| 173 | #else | 173 | #else |
| 174 | changed = debounce(raw_matrix, matrix, ROWS_PER_HAND, changed); | 174 | changed = debounce(raw_matrix, matrix, ROWS_PER_HAND, changed); |
| 175 | matrix_scan_quantum(); | 175 | matrix_scan_kb(); |
| 176 | #endif | 176 | #endif |
| 177 | 177 | ||
| 178 | return changed; | 178 | return changed; |
diff --git a/quantum/quantum.c b/quantum/quantum.c index 653f553f60..5554ecab32 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c | |||
| @@ -453,14 +453,6 @@ void update_tri_layer(uint8_t layer1, uint8_t layer2, uint8_t layer3) { | |||
| 453 | layer_state_set(update_tri_layer_state(layer_state, layer1, layer2, layer3)); | 453 | layer_state_set(update_tri_layer_state(layer_state, layer1, layer2, layer3)); |
| 454 | } | 454 | } |
| 455 | 455 | ||
| 456 | // TODO: remove legacy api | ||
| 457 | void matrix_init_quantum(void) { | ||
| 458 | matrix_init_kb(); | ||
| 459 | } | ||
| 460 | void matrix_scan_quantum(void) { | ||
| 461 | matrix_scan_kb(); | ||
| 462 | } | ||
| 463 | |||
| 464 | //------------------------------------------------------------------------------ | 456 | //------------------------------------------------------------------------------ |
| 465 | // Override these functions in your keymap file to play different tunes on | 457 | // Override these functions in your keymap file to play different tunes on |
| 466 | // different events such as startup and bootloader jump | 458 | // different events such as startup and bootloader jump |
diff --git a/tests/test_common/matrix.c b/tests/test_common/matrix.c index 45e76d32c5..1d99402713 100644 --- a/tests/test_common/matrix.c +++ b/tests/test_common/matrix.c | |||
| @@ -22,11 +22,11 @@ static matrix_row_t matrix[MATRIX_ROWS] = {}; | |||
| 22 | 22 | ||
| 23 | void matrix_init(void) { | 23 | void matrix_init(void) { |
| 24 | clear_all_keys(); | 24 | clear_all_keys(); |
| 25 | matrix_init_quantum(); | 25 | matrix_init_kb(); |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | uint8_t matrix_scan(void) { | 28 | uint8_t matrix_scan(void) { |
| 29 | matrix_scan_quantum(); | 29 | matrix_scan_kb(); |
| 30 | return 1; | 30 | return 1; |
| 31 | } | 31 | } |
| 32 | 32 | ||
diff --git a/users/drashna/callbacks.md b/users/drashna/callbacks.md index 5908a66142..e23f7f6d86 100644 --- a/users/drashna/callbacks.md +++ b/users/drashna/callbacks.md | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | Specifically QMK works by using customized callback functions for everything. This allows for multiple levels of customization. | 3 | Specifically QMK works by using customized callback functions for everything. This allows for multiple levels of customization. |
| 4 | 4 | ||
| 5 | `matrix_scan` calls `matrix_scan_quantum`, which calls `matrix_scan_kb`, which calls `matrix_scan_user`. | 5 | `matrix_scan` calls `matrix_scan_kb`, which calls `matrix_scan_user`. |
| 6 | `process_record` calls a bunch of stuff, but eventually calls `process_record_kb` which calls `process_record_user` | 6 | `process_record` calls a bunch of stuff, but eventually calls `process_record_kb` which calls `process_record_user` |
| 7 | The same goes for `matrix_init`, `layer_state_set`, `led_set`, and a few other functions. | 7 | The same goes for `matrix_init`, `layer_state_set`, `led_set`, and a few other functions. |
| 8 | 8 | ||
