summaryrefslogtreecommitdiffstats
path: root/keyboards/matrix
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-09-05 22:36:16 +0000
committerQMK Bot <hello@qmk.fm>2021-09-05 22:36:16 +0000
commitd72f29556a2bc113f30291b87293d63c9efab965 (patch)
treec5bed47c2da94a7da592b8e4375583de5c0a49f1 /keyboards/matrix
parent147289e173999b132f1b97835f8d57716a2bd376 (diff)
parent1e1be4c229651703ef7c62784b704a859a3d13cf (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/matrix')
-rw-r--r--keyboards/matrix/noah/matrix.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/keyboards/matrix/noah/matrix.c b/keyboards/matrix/noah/matrix.c
index 94a27b181f..17f7a2fb62 100644
--- a/keyboards/matrix/noah/matrix.c
+++ b/keyboards/matrix/noah/matrix.c
@@ -26,6 +26,17 @@ static matrix_row_t matrix_debouncing[MATRIX_COLS];
static bool debouncing = false;
static uint16_t debouncing_time = 0;
+// 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
void matrix_init(void)
{
//debug_enable = true;