mirror of
https://github.com/qmk/qmk_firmware
synced 2024-12-22 08:26:21 +00:00
Remove matrix_init_quantum/matrix_scan_quantum (#19806)
This commit is contained in:
parent
9991894514
commit
11d49d00e7
@ -77,7 +77,7 @@ void matrix_init(void) {
|
||||
debounce_init(MATRIX_ROWS);
|
||||
|
||||
// This *must* be called for correct keyboard behavior
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void) {
|
||||
@ -89,7 +89,7 @@ uint8_t matrix_scan(void) {
|
||||
changed = debounce(raw_matrix, matrix, MATRIX_ROWS, changed);
|
||||
|
||||
// This *must* be called for correct keyboard behavior
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
|
||||
return changed;
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ void matrix_init(void) {
|
||||
debounce_init(MATRIX_ROWS);
|
||||
|
||||
// 正しいキーボード動作のためにこれを呼び出す*必要があります*
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void) {
|
||||
@ -95,7 +95,7 @@ uint8_t matrix_scan(void) {
|
||||
changed = debounce(raw_matrix, matrix, MATRIX_ROWS, changed);
|
||||
|
||||
// 正しいキーボード動作のためにこれを呼び出す*必要があります*
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
|
||||
return changed;
|
||||
}
|
||||
|
@ -182,7 +182,7 @@ void matrix_init(void)
|
||||
matrix_debouncing[i] = 0;
|
||||
}
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void)
|
||||
@ -214,7 +214,7 @@ uint8_t matrix_scan(void)
|
||||
}
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -85,7 +85,7 @@ void matrix_init(void) {
|
||||
matrix[i] = 0;
|
||||
matrix_debouncing[i] = 0;
|
||||
}
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void) {
|
||||
@ -113,7 +113,7 @@ uint8_t matrix_scan(void) {
|
||||
}
|
||||
}
|
||||
}
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -80,7 +80,7 @@ void matrix_init(void)
|
||||
matrix_debouncing[i] = 0;
|
||||
}
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void)
|
||||
@ -109,7 +109,7 @@ uint8_t matrix_scan(void)
|
||||
}
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ void matrix_init(void)
|
||||
matrix_debouncing[i] = 0;
|
||||
}
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void)
|
||||
@ -90,7 +90,7 @@ uint8_t matrix_scan(void)
|
||||
}
|
||||
|
||||
debounce(matrix_debouncing, matrix, matrix_rows(), changed);
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
|
||||
return (uint8_t)changed;
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ void matrix_init(void) {
|
||||
for (uint8_t i=0; i < MATRIX_ROWS; i++)
|
||||
matrix[i] = matrix_debouncing[i] = 0;
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void) {
|
||||
@ -124,7 +124,7 @@ uint8_t matrix_scan(void) {
|
||||
matrix[i] = matrix_debouncing[i];
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -99,7 +99,7 @@ void matrix_init(void) {
|
||||
for (uint8_t i=0; i < MATRIX_ROWS; i++)
|
||||
matrix[i] = matrix_debouncing[i] = 0;
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void) {
|
||||
@ -125,7 +125,7 @@ uint8_t matrix_scan(void) {
|
||||
matrix[i] = matrix_debouncing[i];
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -76,7 +76,7 @@ void matrix_init(void)
|
||||
// debug_mouse = true;
|
||||
// print("debug enabled.\n");
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
#ifdef ADB_MOUSE_ENABLE
|
||||
@ -241,7 +241,7 @@ uint8_t matrix_scan(void)
|
||||
extra_key = key1<<8 | 0xFF; // process in a separate call
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -50,16 +50,6 @@ static uint8_t matrix_debounce_old [MATRIX_ROWS] = {0};
|
||||
static uint8_t matrix_debounce_new [MATRIX_ROWS] = {0};
|
||||
#endif
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_init_quantum(void) {
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_scan_quantum(void) {
|
||||
matrix_scan_kb();
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_init_kb(void) {
|
||||
matrix_init_user();
|
||||
@ -161,7 +151,7 @@ void matrix_init (void) {
|
||||
DDRD |= LED ;
|
||||
PORTD &= ~LED ;
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
|
||||
//toggle reset, to put the keyboard logic into a known state
|
||||
Matrix_Reset() ;
|
||||
@ -206,7 +196,7 @@ uint8_t matrix_scan(void) {
|
||||
#endif
|
||||
Matrix_Reset() ;
|
||||
|
||||
matrix_scan_quantum() ;
|
||||
matrix_scan_kb() ;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ void matrix_init(void)
|
||||
for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix0[i] = 0x00;
|
||||
matrix = _matrix0;
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -96,7 +96,7 @@ uint8_t matrix_scan(void)
|
||||
print("["); print_hex8(key); print("]\n");
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -280,7 +280,7 @@ void matrix_init(void)
|
||||
// initialize matrix state: all keys off
|
||||
for (uint8_t i=0; i < MATRIX_ROWS; i++) matrix[i] = 0x00;
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
return;
|
||||
|
||||
|
||||
@ -348,7 +348,7 @@ uint8_t matrix_scan(void)
|
||||
}
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return code;
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@ void matrix_init(void) {
|
||||
memset(matrix, 0, MATRIX_ROWS * sizeof(matrix_row_t));
|
||||
memset(matrix_debouncing, 0, MATRIX_ROWS * sizeof(matrix_row_t));
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
|
||||
osalSysLock();
|
||||
enable_input_events();
|
||||
@ -215,7 +215,7 @@ uint8_t matrix_scan(void) {
|
||||
porta_buffer = 65535;
|
||||
portb_buffer = 65535;
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ void matrix_init(void)
|
||||
|
||||
/* PORTD &= ~(1<<6); */
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -148,7 +148,7 @@ uint8_t matrix_scan(void)
|
||||
}
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return code;
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ extern "C" {
|
||||
kbd2.SetReportParser(0, (HIDReportParser*)&kbd_parser2);
|
||||
kbd3.SetReportParser(0, (HIDReportParser*)&kbd_parser3);
|
||||
kbd4.SetReportParser(0, (HIDReportParser*)&kbd_parser4);
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
static void or_report(report_keyboard_t report) {
|
||||
@ -182,7 +182,7 @@ extern "C" {
|
||||
led_set(host_keyboard_leds());
|
||||
}
|
||||
}
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return changed;
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ void matrix_init(void) {
|
||||
matrix[i] = 0x00;
|
||||
}
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
// convert E0-escaped codes into unused area
|
||||
@ -188,7 +188,7 @@ uint8_t matrix_scan(void) {
|
||||
state = XT_STATE_INIT;
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
@ -88,16 +88,6 @@ static matrix_row_t matrix_debouncing[MATRIX_ROWS];
|
||||
static void select_col(uint8_t col);
|
||||
#endif
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_init_quantum(void) {
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_scan_quantum(void) {
|
||||
matrix_scan_kb();
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_init_kb(void) {
|
||||
matrix_init_user();
|
||||
@ -143,7 +133,7 @@ void matrix_init(void) {
|
||||
matrix_debouncing[i] = 0;
|
||||
}
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void)
|
||||
@ -198,7 +188,7 @@ uint8_t matrix_scan(void)
|
||||
i2c_slave_reg[i+2] = matrix[i]; //send matrix over i2c
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -92,16 +92,6 @@ static matrix_row_t matrix_debouncing[MATRIX_ROWS];
|
||||
static void select_col(uint8_t col);
|
||||
#endif
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_init_quantum(void) {
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_scan_quantum(void) {
|
||||
matrix_scan_kb();
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_init_kb(void) {
|
||||
matrix_init_user();
|
||||
@ -154,7 +144,7 @@ void matrix_init(void) {
|
||||
matrix_debouncing[i] = 0;
|
||||
}
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void)
|
||||
@ -223,7 +213,7 @@ if (i2c_transaction(SLAVE_I2C_ADDRESS_NUMPAD, 0x1FFFF, 11)) {
|
||||
}
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -88,16 +88,6 @@ static matrix_row_t matrix_debouncing[MATRIX_ROWS];
|
||||
static void select_col(uint8_t col);
|
||||
#endif
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_init_quantum(void) {
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_scan_quantum(void) {
|
||||
matrix_scan_kb();
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_init_kb(void) {
|
||||
matrix_init_user();
|
||||
@ -143,7 +133,7 @@ void matrix_init(void) {
|
||||
matrix_debouncing[i] = 0;
|
||||
}
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void)
|
||||
@ -198,7 +188,7 @@ uint8_t matrix_scan(void)
|
||||
i2c_slave_reg[i+2] = matrix[i]; //send matrix over i2c
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -89,16 +89,6 @@ static matrix_row_t matrix_debouncing[MATRIX_ROWS];
|
||||
static void select_col(uint8_t col);
|
||||
#endif
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_init_quantum(void) {
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_scan_quantum(void) {
|
||||
matrix_scan_kb();
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_init_kb(void) {
|
||||
matrix_init_user();
|
||||
@ -144,7 +134,7 @@ void matrix_init(void) {
|
||||
matrix_debouncing[i] = 0;
|
||||
}
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void)
|
||||
@ -199,7 +189,7 @@ uint8_t matrix_scan(void)
|
||||
i2c_slave_reg[i+2] = matrix[i]; //send matrix over i2c
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -53,16 +53,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* matrix state(1:on, 0:off) */
|
||||
static matrix_row_t matrix[MATRIX_ROWS];
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_init_quantum(void) {
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_scan_quantum(void) {
|
||||
matrix_scan_kb();
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_init_kb(void) {
|
||||
matrix_init_user();
|
||||
@ -92,7 +82,7 @@ uint8_t matrix_cols(void) {
|
||||
}
|
||||
|
||||
void matrix_init(void) {
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
uart_init(1000000);
|
||||
}
|
||||
|
||||
@ -190,7 +180,7 @@ uint8_t matrix_scan(void)
|
||||
}
|
||||
//matrix_print();
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ void matrix_init(void)
|
||||
matrix_debouncing[i] = 0;
|
||||
}
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void)
|
||||
@ -96,7 +96,7 @@ uint8_t matrix_scan(void)
|
||||
}
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,7 @@ void matrix_init(void) {
|
||||
matrix_debouncing[i] = 0;
|
||||
}
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void) {
|
||||
@ -112,7 +112,7 @@ uint8_t matrix_scan(void) {
|
||||
}
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,7 @@ void matrix_init(void) {
|
||||
matrix_debouncing[i] = 0;
|
||||
}
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void) {
|
||||
@ -110,7 +110,7 @@ uint8_t matrix_scan(void) {
|
||||
}
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -73,7 +73,7 @@ void matrix_init(void) {
|
||||
matrix_debouncing[i] = 0;
|
||||
}
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void) {
|
||||
@ -107,7 +107,7 @@ uint8_t matrix_scan(void) {
|
||||
}
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,7 @@ void matrix_init(void) {
|
||||
matrix_debouncing[i] = 0;
|
||||
}
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void) {
|
||||
@ -112,7 +112,7 @@ uint8_t matrix_scan(void) {
|
||||
}
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ void matrix_init(void) {
|
||||
matrix_debouncing[i] = 0;
|
||||
}
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void) {
|
||||
@ -106,7 +106,7 @@ uint8_t matrix_scan(void) {
|
||||
}
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,7 @@ void matrix_init(void) {
|
||||
matrix_debouncing[i] = 0;
|
||||
}
|
||||
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void) {
|
||||
@ -112,7 +112,7 @@ uint8_t matrix_scan(void) {
|
||||
}
|
||||
}
|
||||
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ void matrix_init(void) {
|
||||
debounce_matrix[i * MATRIX_COLS + j] = 0;
|
||||
}
|
||||
}
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
void matrix_power_up(void) {
|
||||
@ -115,7 +115,7 @@ uint8_t matrix_scan(void) {
|
||||
|
||||
unselect_rows();
|
||||
}
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -120,7 +120,7 @@ void matrix_init(void)
|
||||
for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix1[i] = 0x00;
|
||||
matrix = _matrix0;
|
||||
matrix_prev = _matrix1;
|
||||
matrix_init_quantum();
|
||||
matrix_init_kb();
|
||||
}
|
||||
|
||||
uint8_t matrix_scan(void)
|
||||
@ -180,7 +180,7 @@ uint8_t matrix_scan(void)
|
||||
matrix_last_modified = timer_read32();
|
||||
}
|
||||
}
|
||||
matrix_scan_quantum();
|
||||
matrix_scan_kb();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user