diff options
Diffstat (limited to 'src/Hardware/ExceptionHandlers.cpp')
-rw-r--r-- | src/Hardware/ExceptionHandlers.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Hardware/ExceptionHandlers.cpp b/src/Hardware/ExceptionHandlers.cpp index 11958f11..eb936130 100644 --- a/src/Hardware/ExceptionHandlers.cpp +++ b/src/Hardware/ExceptionHandlers.cpp @@ -142,8 +142,13 @@ void WDT_IRQHandler() noexcept { LPC_WDT->MOD &=~((uint32_t)(1<<2)); //SD::clear timout flag before resetting to prevent the Smoothie bootloader going into DFU mode #else +# if SAME70 // SAME70 has a separate interrupt line for the RSWDT +extern "C" [[noreturn]] void RSWDT_Handler() noexcept __attribute__((naked)); +void RSWDT_Handler() noexcept +# else extern "C" [[noreturn]] void WDT_Handler() noexcept __attribute__((naked)); void WDT_Handler() noexcept +# endif { #endif __asm volatile |