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/bpiphany/pegasushoof/2015/matrix.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'keyboards/bpiphany/pegasushoof/2015') diff --git a/keyboards/bpiphany/pegasushoof/2015/matrix.c b/keyboards/bpiphany/pegasushoof/2015/matrix.c index 42c5da3bc5..b05869feda 100644 --- a/keyboards/bpiphany/pegasushoof/2015/matrix.c +++ b/keyboards/bpiphany/pegasushoof/2015/matrix.c @@ -33,6 +33,18 @@ static matrix_row_t matrix_debouncing[MATRIX_ROWS]; static matrix_row_t read_cols(void); static void select_row(uint8_t col); +// 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; -- cgit v1.2.3