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
This commit is contained in:
committed by
Drashna Jaelre
parent
11773a5546
commit
7e9a7af672
34
keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c
Normal file
34
keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c
Normal file
@@ -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();
|
||||
}
|
Reference in New Issue
Block a user