summaryrefslogtreecommitdiffstats
path: root/platforms/avr/bootloaders/custom.c
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2022-05-13 20:35:49 -0700
committerGitHub <noreply@github.com>2022-05-14 13:35:49 +1000
commit787a68948fa0d5e251e22a623071082c8c0561b1 (patch)
treecc28d2caa680b8eef62e4cfdd232dde66e43416a /platforms/avr/bootloaders/custom.c
parent425c54cf8c459b1cc33deaa53955e2db41aa0b01 (diff)
[Core] Add Reboot keycode to core (#15990)
Diffstat (limited to 'platforms/avr/bootloaders/custom.c')
-rw-r--r--platforms/avr/bootloaders/custom.c9
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) {
+ }
+}