From 0b669a089f7ddccd9104ed9f489b2501452e31ef Mon Sep 17 00:00:00 2001 From: David Crocker Date: Tue, 7 Sep 2021 16:05:44 +0100 Subject: Added missing include file following change to RRFLibraries --- src/Hardware/ExceptionHandlers.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Hardware/ExceptionHandlers.cpp') 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 #endif +#include // 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 -- cgit v1.2.3