Skip to content

Commit

Permalink
[Watchdog] Disable AVR support since it's used internally and can't(?…
Browse files Browse the repository at this point in the history
…) coexist
  • Loading branch information
drashna committed Feb 17, 2025
1 parent c9fc0d7 commit 72c4339
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions users/drashna/features/watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,28 +70,5 @@ void suspend_wakeup_init_watchdog(void) {
}

#elif defined(__AVR__)
# include <avr/wdt.h>
# pragma message "AVR Watchdog causes issues, likely due to the way the matrix scan is done. Disable this."

void watchdog_init(void) {
wdt_enable(WDTO_2S);
}

void watchdog_task(void) {
wdt_reset();
}

void watchdog_shutdown(void) {
wdt_disable();
}

void suspend_power_down_watchdog(void) {
wdt_disable();
}

void suspend_wakeup_init_watchdog(void) {
wdt_enable(WDTO_2S);
clear_keyboard();
}

# error AVR Watchdog causes issues, likely due to the way the matrix scan is done. Disable this.
#endif // __AVR__

0 comments on commit 72c4339

Please sign in to comment.