lfkpad.c 380 B

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