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