diff options
| author | QMK Bot <hello@qmk.fm> | 2021-09-05 22:36:16 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2021-09-05 22:36:16 +0000 |
| commit | d72f29556a2bc113f30291b87293d63c9efab965 (patch) | |
| tree | c5bed47c2da94a7da592b8e4375583de5c0a49f1 | |
| parent | 147289e173999b132f1b97835f8d57716a2bd376 (diff) | |
| parent | 1e1be4c229651703ef7c62784b704a859a3d13cf (diff) | |
| download | qmk_firmware-d72f29556a2bc113f30291b87293d63c9efab965.tar.gz qmk_firmware-d72f29556a2bc113f30291b87293d63c9efab965.zip | |
Merge remote-tracking branch 'origin/master' into develop
| -rw-r--r-- | keyboards/bpiphany/pegasushoof/2015/matrix.c | 12 | ||||
| -rw-r--r-- | keyboards/handwired/datahand/matrix.c | 15 | ||||
| -rw-r--r-- | keyboards/keyboardio/model01/matrix.c | 11 | ||||
| -rw-r--r-- | keyboards/matrix/noah/matrix.c | 11 | ||||
| -rw-r--r-- | keyboards/ymdk/sp64/matrix.c | 11 |
5 files changed, 58 insertions, 2 deletions
diff --git a/keyboards/bpiphany/pegasushoof/2015/matrix.c b/keyboards/bpiphany/pegasushoof/2015/matrix.c index 42c5da3bc..b05869fed 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]; | |||
| 33 | static matrix_row_t read_cols(void); | 33 | static matrix_row_t read_cols(void); |
| 34 | static void select_row(uint8_t col); | 34 | static void select_row(uint8_t col); |
| 35 | 35 | ||
| 36 | // user-defined overridable functions | ||
| 37 | |||
| 38 | __attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); } | ||
| 39 | |||
| 40 | __attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); } | ||
| 41 | |||
| 42 | __attribute__((weak)) void matrix_init_user(void) {} | ||
| 43 | |||
| 44 | __attribute__((weak)) void matrix_scan_user(void) {} | ||
| 45 | |||
| 46 | // helper functions | ||
| 47 | |||
| 36 | inline uint8_t matrix_rows(void) | 48 | inline uint8_t matrix_rows(void) |
| 37 | { | 49 | { |
| 38 | return MATRIX_ROWS; | 50 | return MATRIX_ROWS; |
diff --git a/keyboards/handwired/datahand/matrix.c b/keyboards/handwired/datahand/matrix.c index d276c47b2..9eead28cd 100644 --- a/keyboards/handwired/datahand/matrix.c +++ b/keyboards/handwired/datahand/matrix.c | |||
| @@ -27,6 +27,17 @@ static matrix_row_t matrix[MATRIX_ROWS]; | |||
| 27 | static matrix_row_t read_cols(void); | 27 | static matrix_row_t read_cols(void); |
| 28 | static void select_row(uint8_t row); | 28 | static void select_row(uint8_t row); |
| 29 | 29 | ||
| 30 | // user-defined overridable functions | ||
| 31 | |||
| 32 | __attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); } | ||
| 33 | |||
| 34 | __attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); } | ||
| 35 | |||
| 36 | __attribute__((weak)) void matrix_init_user(void) {} | ||
| 37 | |||
| 38 | __attribute__((weak)) void matrix_scan_user(void) {} | ||
| 39 | |||
| 40 | // helper functions | ||
| 30 | void matrix_init(void) { | 41 | void matrix_init(void) { |
| 31 | /* See datahand.h for more detail on pins. */ | 42 | /* See datahand.h for more detail on pins. */ |
| 32 | 43 | ||
| @@ -48,7 +59,7 @@ void matrix_init(void) { | |||
| 48 | /* Turn off the lock LEDs. */ | 59 | /* Turn off the lock LEDs. */ |
| 49 | PORTF |= LED_CAPS_LOCK | LED_NUM_LOCK | LED_SCROLL_LOCK | LED_MOUSE_LOCK; | 60 | PORTF |= LED_CAPS_LOCK | LED_NUM_LOCK | LED_SCROLL_LOCK | LED_MOUSE_LOCK; |
| 50 | 61 | ||
| 51 | matrix_init_user(); | 62 | matrix_init_quantum(); |
| 52 | } | 63 | } |
| 53 | 64 | ||
| 54 | uint8_t matrix_scan(void) { | 65 | uint8_t matrix_scan(void) { |
| @@ -62,7 +73,7 @@ uint8_t matrix_scan(void) { | |||
| 62 | matrix[row] = read_cols(); | 73 | matrix[row] = read_cols(); |
| 63 | } | 74 | } |
| 64 | 75 | ||
| 65 | matrix_scan_user(); | 76 | matrix_scan_quantum(); |
| 66 | 77 | ||
| 67 | return 1; | 78 | return 1; |
| 68 | } | 79 | } |
diff --git a/keyboards/keyboardio/model01/matrix.c b/keyboards/keyboardio/model01/matrix.c index 450e48d94..524ec9bdc 100644 --- a/keyboards/keyboardio/model01/matrix.c +++ b/keyboards/keyboardio/model01/matrix.c | |||
| @@ -25,6 +25,17 @@ | |||
| 25 | static matrix_row_t rows[MATRIX_ROWS]; | 25 | static matrix_row_t rows[MATRIX_ROWS]; |
| 26 | #define ROWS_PER_HAND (MATRIX_ROWS / 2) | 26 | #define ROWS_PER_HAND (MATRIX_ROWS / 2) |
| 27 | 27 | ||
| 28 | // user-defined overridable functions | ||
| 29 | |||
| 30 | __attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); } | ||
| 31 | |||
| 32 | __attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); } | ||
| 33 | |||
| 34 | __attribute__((weak)) void matrix_init_user(void) {} | ||
| 35 | |||
| 36 | __attribute__((weak)) void matrix_scan_user(void) {} | ||
| 37 | |||
| 38 | // helper functions | ||
| 28 | inline | 39 | inline |
| 29 | uint8_t matrix_rows(void) { | 40 | uint8_t matrix_rows(void) { |
| 30 | return MATRIX_ROWS; | 41 | return MATRIX_ROWS; |
diff --git a/keyboards/matrix/noah/matrix.c b/keyboards/matrix/noah/matrix.c index 94a27b181..17f7a2fb6 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]; | |||
| 26 | static bool debouncing = false; | 26 | static bool debouncing = false; |
| 27 | static uint16_t debouncing_time = 0; | 27 | static uint16_t debouncing_time = 0; |
| 28 | 28 | ||
| 29 | // user-defined overridable functions | ||
| 30 | |||
| 31 | __attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); } | ||
| 32 | |||
| 33 | __attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); } | ||
| 34 | |||
| 35 | __attribute__((weak)) void matrix_init_user(void) {} | ||
| 36 | |||
| 37 | __attribute__((weak)) void matrix_scan_user(void) {} | ||
| 38 | |||
| 39 | // helper functions | ||
| 29 | void matrix_init(void) | 40 | void matrix_init(void) |
| 30 | { | 41 | { |
| 31 | //debug_enable = true; | 42 | //debug_enable = true; |
diff --git a/keyboards/ymdk/sp64/matrix.c b/keyboards/ymdk/sp64/matrix.c index 74bddc057..9a6e37bcd 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); | |||
| 38 | static uint8_t mcp23018_reset_loop = 0; | 38 | static uint8_t mcp23018_reset_loop = 0; |
| 39 | #endif | 39 | #endif |
| 40 | 40 | ||
| 41 | // user-defined overridable functions | ||
| 42 | |||
| 43 | __attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); } | ||
| 44 | |||
| 45 | __attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); } | ||
| 46 | |||
| 47 | __attribute__((weak)) void matrix_init_user(void) {} | ||
| 48 | |||
| 49 | __attribute__((weak)) void matrix_scan_user(void) {} | ||
| 50 | |||
| 51 | // helper functions | ||
| 41 | void matrix_init(void) | 52 | void matrix_init(void) |
| 42 | { | 53 | { |
| 43 | // all outputs for rows high | 54 | // all outputs for rows high |
