aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c
diff options
context:
space:
mode:
authorGravatar scott-t-wilson <scott.t.wilson@gmail.com>2018-07-18 12:54:49 -0400
committerGravatar Drashna Jaelre <drashna@live.com>2018-07-18 09:54:49 -0700
commit7e9a7af672ab226cc57f05f362d6b1e965ac56e6 (patch)
tree716cbc57e8f9b0e0b816d805f3f00743ba245d91 /keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c
parent11773a5546e67e38b004ecbfd945059c662d0f47 (diff)
downloadqmk_firmware-7e9a7af672ab226cc57f05f362d6b1e965ac56e6.tar.gz
Keyboard: Add support for LFK65-HS - a hotswap 65% (#3009)
* Add support for LFK65-HS - a hotswap 65% * Add info.json for LFK65-HS * Clean up for new build system, remove uneeded code. * LFK65-HS cleanup. Fixed LAYOUT macros, etc
Diffstat (limited to 'keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c')
-rw-r--r--keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c b/keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c
new file mode 100644
index 000000000..26ab883a4
--- /dev/null
+++ b/keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c
@@ -0,0 +1,34 @@
+#include <avr/sfr_defs.h>
+#include <avr/timer_avr.h>
+#include <avr/wdt.h>
+#include "lfk65_hs.h"
+#include "keymap.h"
+
+void matrix_init_kb(void)
+{
+ matrix_init_user();
+
+}
+
+void matrix_scan_kb(void)
+{
+ matrix_scan_user();
+}
+
+bool process_record_kb(uint16_t keycode, keyrecord_t* record)
+{
+ if (keycode == RESET) {
+ reset_keyboard_kb();
+ } else {
+ }
+ return process_record_user(keycode, record);
+}
+
+void reset_keyboard_kb(){
+#ifdef WATCHDOG_ENABLE
+ MCUSR = 0;
+ wdt_disable();
+ wdt_reset();
+#endif
+ reset_keyboard();
+}