diff options
author | Manuel Coenen <manuel@duet3d.com> | 2021-01-15 17:52:02 +0300 |
---|---|---|
committer | Manuel Coenen <manuel@duet3d.com> | 2021-01-19 13:22:32 +0300 |
commit | e48e001033e373a8c59cf7892d7a4b8a5a7c9283 (patch) | |
tree | 478ddabd2e224e73d0b17a822c05d92fe2b0919a /src/Hardware/ExceptionHandlers.cpp | |
parent | ed1f834bc57412ab58f3a9abb647e13f11e4b809 (diff) |
Fix all compiler bugs (linker still unhappy)
Diffstat (limited to 'src/Hardware/ExceptionHandlers.cpp')
-rw-r--r-- | src/Hardware/ExceptionHandlers.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Hardware/ExceptionHandlers.cpp b/src/Hardware/ExceptionHandlers.cpp index ce6d81bc..c1fa5186 100644 --- a/src/Hardware/ExceptionHandlers.cpp +++ b/src/Hardware/ExceptionHandlers.cpp @@ -10,6 +10,9 @@ #include <Platform.h> #include <Hardware/NonVolatileMemory.h> #include <Cache.h> +#if SAME70 || SAM4S || SAM4E +# include <Reset.h> +#endif // Perform a software reset. 'stk' points to the exception stack (r0 r1 r2 r3 r12 lr pc xPSR) if the cause is an exception, otherwise it is nullptr. [[noreturn]] void SoftwareReset(SoftwareResetReason initialReason, const uint32_t *stk) noexcept @@ -18,7 +21,7 @@ WatchdogReset(); // kick the watchdog #if SAM4E || SAME70 - rswdt_restart(RSWDT); // kick the secondary watchdog + WatchdogResetSecondary(); // kick the secondary watchdog #endif Cache::Disable(); |