diff options
author | Jack Humbert <jack.humb@gmail.com> | 2015-11-07 09:52:59 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2015-11-07 09:52:59 -0500 |
commit | d2d75b9759f473e28533c88bbe88b8dd7c9c1433 (patch) | |
tree | 2c38e2add8287ec19368e0ef25c8662cc560fd7d /keyboard/jd45/jd45.c | |
parent | 6485c7d7dae01c499a7e1f27e7956f12ce0f6901 (diff) | |
parent | 6ec6279d82d071aba6cfdaad08a414616a990a83 (diff) |
Merge pull request #36 from justinyhuang/master
added support for JD45
Diffstat (limited to 'keyboard/jd45/jd45.c')
-rw-r--r-- | keyboard/jd45/jd45.c | 27 |
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)(); + } +}; |