summaryrefslogtreecommitdiff
path: root/keyboard/hhkb/hhkb.c
diff options
context:
space:
mode:
authorIBNobody <ibnobody@gmail.com>2016-06-11 13:28:27 -0500
committerIBNobody <ibnobody@gmail.com>2016-06-11 13:28:27 -0500
commit50621a2e6a7d03add0c202e5b2698338c7fbbf5b (patch)
treed6f002712c22e8cf4523e04a9da889c7ec379d6b /keyboard/hhkb/hhkb.c
parent26277dbdf40ba7247981361c956ea44c92bf76ea (diff)
parentd9e4dad0a828a8a904f44dda090a4d6d08fe2948 (diff)
Merge remote-tracking branch 'remotes/jackhumbert/master'
Diffstat (limited to 'keyboard/hhkb/hhkb.c')
-rw-r--r--keyboard/hhkb/hhkb.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/keyboard/hhkb/hhkb.c b/keyboard/hhkb/hhkb.c
new file mode 100644
index 0000000000..6897026c6c
--- /dev/null
+++ b/keyboard/hhkb/hhkb.c
@@ -0,0 +1,29 @@
+#include "hhkb.h"
+
+__attribute__ ((weak))
+void matrix_init_user(void) {
+ // leave these blank
+};
+
+__attribute__ ((weak))
+void matrix_scan_user(void) {
+ // leave these blank
+};
+
+void matrix_init_kb(void) {
+ // put your keyboard start-up code here
+ // runs once when the firmware starts up
+
+ if (matrix_init_user) {
+ (*matrix_init_user)();
+ }
+};
+
+void matrix_scan_kb(void) {
+ // put your looping keyboard code here
+ // runs every cycle (a lot)
+
+ if (matrix_scan_user) {
+ (*matrix_scan_user)();
+ }
+};