summaryrefslogtreecommitdiff
path: root/keyboard/jd45/jd45.c
diff options
context:
space:
mode:
authorHuangYang <Justin@HuangYangs-MacBook-Pro.local>2015-11-06 22:26:12 -0700
committerHuangYang <Justin@HuangYangs-MacBook-Pro.local>2015-11-06 22:26:12 -0700
commit765f8a2aef14caced83892b1ab16f5c0ce52aa83 (patch)
treef110644e263176a4e67eac90b6d179a827a39549 /keyboard/jd45/jd45.c
parent6485c7d7dae01c499a7e1f27e7956f12ce0f6901 (diff)
added support for jd45
Diffstat (limited to 'keyboard/jd45/jd45.c')
-rw-r--r--keyboard/jd45/jd45.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/keyboard/jd45/jd45.c b/keyboard/jd45/jd45.c
new file mode 100644
index 0000000000..d05714f07b
--- /dev/null
+++ b/keyboard/jd45/jd45.c
@@ -0,0 +1,27 @@
+#include "jd45.h"
+
+__attribute__ ((weak))
+void * matrix_init_user(void) {
+
+};
+
+__attribute__ ((weak))
+void * matrix_scan_user(void) {
+
+};
+
+void * matrix_init_kb(void) {
+ #ifdef BACKLIGHT_ENABLE
+ backlight_init_ports();
+ #endif
+
+ if (matrix_init_user) {
+ (*matrix_init_user)();
+ }
+};
+
+void * matrix_scan_kb(void) {
+ if (matrix_scan_user) {
+ (*matrix_scan_user)();
+ }
+};