blob: 8769c2c53150a70203674c90d97a52bf1ae99ed4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "quantum.h"
#include <avr/wdt.h>
void matrix_init_kb(void) {
matrix_init_user();
#ifdef WATCHDOG_ENABLE
// This is done after turning the layer LED red, if we're caught in a loop
// we should get a flashing red light
wdt_enable(WDTO_500MS);
#endif
}
void matrix_scan_kb(void) {
#ifdef WATCHDOG_ENABLE
wdt_reset();
#endif
matrix_scan_user();
}
|