From 89b7e785eef62fe36177c453a3c0e030dece6a76 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 22 Jan 2016 09:22:27 +0100 Subject: Add missing hardfault.s file --- src/fsm/hardfault.s | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/fsm/hardfault.s (limited to 'src') diff --git a/src/fsm/hardfault.s b/src/fsm/hardfault.s new file mode 100644 index 0000000..8570dcc --- /dev/null +++ b/src/fsm/hardfault.s @@ -0,0 +1,13 @@ +.syntax unified +.cpu cortex-m3 +.thumb + +.global HardFault_Handler +.extern hard_fault_handler_c + +HardFault_Handler: + tst lr, #4 + ite eq + mrseq r0, msp + mrsne r0, psp + b hard_fault_handler_c -- cgit v1.2.3