summaryrefslogtreecommitdiffstats
path: root/keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c
blob: 86573ce17f549aae5fac418a15f831a61adf95a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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)
{
    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();
}