X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tmk_core%2Fcommon%2Fmatrix.h;h=2543f5abce79af9cb7f8eef8ac99096a401fd030;hb=91683d56fa5c9cf9893219b3dac269e20a2c7251;hp=0b013fc989aedd8a10a2a50c9f2f9c7b7a61a74a;hpb=e28334017c94c6928dd7e82436cec171f0243747;p=qmk_firmware.git diff --git a/tmk_core/common/matrix.h b/tmk_core/common/matrix.h index 0b013fc98..2543f5abc 100644 --- a/tmk_core/common/matrix.h +++ b/tmk_core/common/matrix.h @@ -14,7 +14,6 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ - #ifndef MATRIX_H #define MATRIX_H @@ -51,7 +50,7 @@ void matrix_init(void); uint8_t matrix_scan(void); /* whether modified from previous scan. used after matrix_scan. */ bool matrix_is_modified(void) __attribute__ ((deprecated)); -/* whether a swtich is on */ +/* whether a switch is on */ bool matrix_is_on(uint8_t row, uint8_t col); /* matrix state on row */ matrix_row_t matrix_get_row(uint8_t row); @@ -63,10 +62,21 @@ void matrix_print(void); void matrix_power_up(void); void matrix_power_down(void); -/* keyboard-specific setup/loop functionality */ +/* executes code for Quantum */ +void matrix_init_quantum(void); +void matrix_scan_quantum(void); + void matrix_init_kb(void); 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