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:
authorDavid Crocker <dcrocker@eschertech.com>2021-09-07 18:05:44 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-09-07 18:05:44 +0300
commit0b669a089f7ddccd9104ed9f489b2501452e31ef (patch)
treebc22524bbfa2ee3cc92e5e1c905f9fe241de9f3c /src/Hardware/ExceptionHandlers.cpp
parentd831d1d89faca9860eb4baeaa6d07a463da8ba3f (diff)
Added missing include file following change to RRFLibraries
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 1413108d..84fce3a0 100644
--- a/src/Hardware/ExceptionHandlers.cpp
+++ b/src/Hardware/ExceptionHandlers.cpp
@@ -15,16 +15,18 @@
# include <Reset.h>
#endif
+#include <exception> // for std::terminate_handler
+
#if SAME5x
// Magic address and value to launch the uf2 bootloader on failure, see inc/uf2.h in uf2-samdx1 repository
# define DBL_TAP_PTR ((volatile uint32_t *)(HSRAM_ADDR + HSRAM_SIZE - 4))
-# define DBL_TAP_MAGIC 0xf01669ef // Randomly selected, adjusted to have first and last bit set
+# define DBL_TAP_MAGIC 0xf01669ef // Randomly selected, adjusted to have first and last bit set
#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
{
- IrqDisable(); // disable interrupts before we call any flash functions. We don't enable them again.
+ IrqDisable(); // disable interrupts before we call any flash functions. We don't enable them again.
WatchdogReset(); // kick the watchdog
#if SAME70 || SAM4E