qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

lfkpad.c (361B)


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