From 52afd5e7f34200a7ae9d3d9b56e95acc5300c6d0 Mon Sep 17 00:00:00 2001 From: David Crocker Date: Fri, 2 Apr 2021 11:46:24 +0100 Subject: Use new interrupt enable/disable functions in CoreN2G --- src/Hardware/ExceptionHandlers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Hardware/ExceptionHandlers.cpp') diff --git a/src/Hardware/ExceptionHandlers.cpp b/src/Hardware/ExceptionHandlers.cpp index 24a25bba..7253f5cf 100644 --- a/src/Hardware/ExceptionHandlers.cpp +++ b/src/Hardware/ExceptionHandlers.cpp @@ -17,7 +17,7 @@ // 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 { - cpu_irq_disable(); // 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