From 1e1be4c229651703ef7c62784b704a859a3d13cf Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Sun, 5 Sep 2021 15:35:42 -0700 Subject: [Bug] Fix compile issues for boards with custom matrix (#14323) --- keyboards/ymdk/sp64/matrix.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'keyboards/ymdk') diff --git a/keyboards/ymdk/sp64/matrix.c b/keyboards/ymdk/sp64/matrix.c index 74bddc0578..9a6e37bcdc 100644 --- a/keyboards/ymdk/sp64/matrix.c +++ b/keyboards/ymdk/sp64/matrix.c @@ -38,6 +38,17 @@ static void matrix_select_row(uint8_t row); static uint8_t mcp23018_reset_loop = 0; #endif +// 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) { // all outputs for rows high -- cgit v1.2.1