Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Hardware/ExceptionHandlers.cpp')
-rw-r--r--src/Hardware/ExceptionHandlers.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Hardware/ExceptionHandlers.cpp b/src/Hardware/ExceptionHandlers.cpp
index c1fa5186..17c5c4b5 100644
--- a/src/Hardware/ExceptionHandlers.cpp
+++ b/src/Hardware/ExceptionHandlers.cpp
@@ -20,8 +20,10 @@
cpu_irq_disable(); // disable interrupts before we call any flash functions. We don't enable them again.
WatchdogReset(); // kick the watchdog
-#if SAM4E || SAME70
- WatchdogResetSecondary(); // kick the secondary watchdog
+#if SAM4E
+ rswdt_restart(RSWDT); // kick the secondary watchdog
+#elif SAME70
+ WatchdogResetSecondary(); // kick the secondary watchdog
#endif
Cache::Disable();