[Core] Add Reboot keycode to core (#15990)

This commit is contained in:
Drashna Jaelre 2022-05-13 20:35:49 -07:00 committed by GitHub
parent 425c54cf8c
commit 787a68948f
Failed to generate hash of commit
25 changed files with 124 additions and 5 deletions

View file

@ -34,8 +34,15 @@ __attribute__((weak)) void bootloader_jump(void) {
UCSR1B = 0;
_delay_ms(5); // 5 seems to work fine
// watchdog reset
reset_key = BOOTLOADER_RESET_KEY;
// watchdog reset
wdt_enable(WDTO_250MS);
for (;;)
;
}
__attribute__((weak)) void mcu_reset(void) {
// watchdog reset
wdt_enable(WDTO_250MS);
for (;;)
;