2018-07-18 18:54:49 +02:00
|
|
|
#include <avr/sfr_defs.h>
|
|
|
|
#include <avr/timer_avr.h>
|
|
|
|
#include <avr/wdt.h>
|
|
|
|
#include "lfk65_hs.h"
|
|
|
|
#include "keymap.h"
|
|
|
|
|
|
|
|
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
|
|
|
|
{
|
2022-09-03 07:50:44 +02:00
|
|
|
if (keycode == QK_BOOT) {
|
2018-07-18 18:54:49 +02:00
|
|
|
reset_keyboard_kb();
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
return process_record_user(keycode, record);
|
|
|
|
}
|
|
|
|
|
2023-01-20 17:21:17 +01:00
|
|
|
void reset_keyboard_kb(void){
|
2018-07-18 18:54:49 +02:00
|
|
|
#ifdef WATCHDOG_ENABLE
|
|
|
|
MCUSR = 0;
|
|
|
|
wdt_disable();
|
|
|
|
wdt_reset();
|
|
|
|
#endif
|
|
|
|
reset_keyboard();
|
|
|
|
}
|