diff options
author | Drashna Jaelre <drashna@live.com> | 2022-05-13 20:35:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-14 13:35:49 +1000 |
commit | 787a68948fa0d5e251e22a623071082c8c0561b1 (patch) | |
tree | cc28d2caa680b8eef62e4cfdd232dde66e43416a /platforms/avr/bootloaders/custom.c | |
parent | 425c54cf8c459b1cc33deaa53955e2db41aa0b01 (diff) |
[Core] Add Reboot keycode to core (#15990)
Diffstat (limited to 'platforms/avr/bootloaders/custom.c')
-rw-r--r-- | platforms/avr/bootloaders/custom.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/platforms/avr/bootloaders/custom.c b/platforms/avr/bootloaders/custom.c index 624fbe242a..72b19f6671 100644 --- a/platforms/avr/bootloaders/custom.c +++ b/platforms/avr/bootloaders/custom.c @@ -15,5 +15,14 @@ */ #include "bootloader.h" +#include <avr/wdt.h> __attribute__((weak)) void bootloader_jump(void) {} +__attribute__((weak)) void mcu_reset(void) { + // setup watchdog timeout + wdt_enable(WDTO_60MS); + + // wait for watchdog timer to trigger + while (1) { + } +} |