summaryrefslogtreecommitdiffstats
path: root/keyboards/ymdk_np21/matrix.c
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2018-10-01 17:09:57 +0200
committerJack Humbert <jack.humb@gmail.com>2018-10-01 17:09:57 +0200
commit3907ed034bec6730d8bff401ac632161540ea3cb (patch)
tree345edb48870809e447ac308375d9427892864c88 /keyboards/ymdk_np21/matrix.c
parent9d949389f92b6b397ed62246b60ead86d80a57a1 (diff)
downloadqmk_firmware-3907ed034bec6730d8bff401ac632161540ea3cb.tar.gz
qmk_firmware-3907ed034bec6730d8bff401ac632161540ea3cb.tar.xz
Fix YMDK NP21 keyboard to use proper keyboard level functions (#3042)
* Use proper function levels * Add matrix init functions * Convert KEYMAP to LAYOUT Or @mechmerlin is going to hunt me down and harm me... probably :) * Fix conflict issues
Diffstat (limited to 'keyboards/ymdk_np21/matrix.c')
-rw-r--r--keyboards/ymdk_np21/matrix.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/keyboards/ymdk_np21/matrix.c b/keyboards/ymdk_np21/matrix.c
index a9e9cb539..b2bfb2f0b 100644
--- a/keyboards/ymdk_np21/matrix.c
+++ b/keyboards/ymdk_np21/matrix.c
@@ -91,12 +91,23 @@ uint8_t matrix_scan(void) {
return 1;
}
+__attribute__ ((weak))
+void matrix_scan_user(void) {};
+
+__attribute__ ((weak))
void matrix_scan_kb(void) {
// Looping keyboard code goes here
// This runs every cycle (a lot)
matrix_scan_user();
};
+__attribute__ ((weak))
+void matrix_init_user(void) {};
+
+__attribute__ ((weak))
+void matrix_init_kb(void) {
+ matrix_init_user();
+}
// declarations
void matrix_set_row_status(uint8_t row) {
DDRB = (1 << row);