2020-02-05 02:41:19 +00:00
|
|
|
#include "quantum.h"
|
2018-02-23 18:16:10 +00:00
|
|
|
#include <avr/wdt.h>
|
|
|
|
|
2020-02-05 02:41:19 +00:00
|
|
|
void matrix_init_kb(void) {
|
2018-02-23 18:16:10 +00:00
|
|
|
matrix_init_user();
|
2020-02-05 02:41:19 +00:00
|
|
|
|
2018-02-23 18:16:10 +00:00
|
|
|
#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
|
|
|
|
}
|
|
|
|
|
2020-02-05 02:41:19 +00:00
|
|
|
void matrix_scan_kb(void) {
|
2018-02-23 18:16:10 +00:00
|
|
|
#ifdef WATCHDOG_ENABLE
|
|
|
|
wdt_reset();
|
|
|
|
#endif
|
2020-02-05 02:41:19 +00:00
|
|
|
|
2018-02-23 18:16:10 +00:00
|
|
|
matrix_scan_user();
|
|
|
|
}
|