Move some common matrix code to a common location (#7699)
* Move some common matrix code to a common location * Refactor some 'custom_matrix_helper' logic to use custom matrix lite * Fix build for kinesis/stapelberg - abuse of vpath was picking up matrix.c from core when custom matrix was enabled * Add validation for CUSTOM_MATRIX
This commit is contained in:
@ -40,6 +40,8 @@ typedef uint32_t matrix_col_t;
|
||||
# error "MATRIX_ROWS: invalid value"
|
||||
#endif
|
||||
|
||||
#define MATRIX_ROW_SHIFTER ((matrix_row_t)1)
|
||||
|
||||
#define MATRIX_IS_ON(row, col) (matrix_get_row(row) && (1 << col))
|
||||
|
||||
#ifdef __cplusplus
|
||||
@ -79,11 +81,6 @@ void matrix_scan_kb(void);
|
||||
void matrix_init_user(void);
|
||||
void matrix_scan_user(void);
|
||||
|
||||
#ifdef I2C_SPLIT
|
||||
void slave_matrix_init(void);
|
||||
uint8_t slave_matrix_scan(void);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user