summaryrefslogtreecommitdiff
path: root/platforms/avr/bootloaders/custom.c
diff options
context:
space:
mode:
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) {
+ }
+}