summaryrefslogtreecommitdiff
path: root/platforms/avr/bootloaders/bootloadhid.c
diff options
context:
space:
mode:
Diffstat (limited to 'platforms/avr/bootloaders/bootloadhid.c')
-rw-r--r--platforms/avr/bootloaders/bootloadhid.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/platforms/avr/bootloaders/bootloadhid.c b/platforms/avr/bootloaders/bootloadhid.c
index ae58760d7d..b91dca6d27 100644
--- a/platforms/avr/bootloaders/bootloadhid.c
+++ b/platforms/avr/bootloaders/bootloadhid.c
@@ -31,3 +31,10 @@ __attribute__((weak)) void bootloader_jump(void) {
for (;;)
;
}
+
+__attribute__((weak)) void mcu_reset(void) {
+ // watchdog reset
+ wdt_enable(WDTO_250MS);
+ for (;;)
+ ;
+}