summaryrefslogtreecommitdiff
path: root/keyboards/keyboardio
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-09-05 15:35:42 -0700
committerGitHub <noreply@github.com>2021-09-05 23:35:42 +0100
commit1e1be4c229651703ef7c62784b704a859a3d13cf (patch)
tree5e4208e6fc1d64278b75bfb29b9015a270501a6e /keyboards/keyboardio
parent8d6d8cfadfd1522b3dd2cc8ac1ce7393b45bbe64 (diff)
downloadqmk_firmware-1e1be4c229651703ef7c62784b704a859a3d13cf.tar.gz
qmk_firmware-1e1be4c229651703ef7c62784b704a859a3d13cf.zip
[Bug] Fix compile issues for boards with custom matrix (#14323)
Diffstat (limited to 'keyboards/keyboardio')
-rw-r--r--keyboards/keyboardio/model01/matrix.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/keyboards/keyboardio/model01/matrix.c b/keyboards/keyboardio/model01/matrix.c
index 450e48d947..524ec9bdca 100644
--- a/keyboards/keyboardio/model01/matrix.c
+++ b/keyboards/keyboardio/model01/matrix.c
@@ -25,6 +25,17 @@
static matrix_row_t rows[MATRIX_ROWS];
#define ROWS_PER_HAND (MATRIX_ROWS / 2)
+// user-defined overridable functions
+
+__attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); }
+
+__attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); }
+
+__attribute__((weak)) void matrix_init_user(void) {}
+
+__attribute__((weak)) void matrix_scan_user(void) {}
+
+// helper functions
inline
uint8_t matrix_rows(void) {
return MATRIX_ROWS;