summaryrefslogtreecommitdiff
path: root/platforms/avr/bootloaders/caterina.c
diff options
context:
space:
mode:
Diffstat (limited to 'platforms/avr/bootloaders/caterina.c')
-rw-r--r--platforms/avr/bootloaders/caterina.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/platforms/avr/bootloaders/caterina.c b/platforms/avr/bootloaders/caterina.c
index 82a16a3765..2b5f613d6d 100644
--- a/platforms/avr/bootloaders/caterina.c
+++ b/platforms/avr/bootloaders/caterina.c
@@ -37,3 +37,12 @@ __attribute__((weak)) void bootloader_jump(void) {
while (1) {
}
}
+
+__attribute__((weak)) void mcu_reset(void) {
+ // setup watchdog timeout
+ wdt_enable(WDTO_60MS);
+
+ // wait for watchdog timer to trigger
+ while (1) {
+ }
+}