aboutsummaryrefslogtreecommitdiffstats
path: root/src/fsm
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-22 09:22:27 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-22 09:22:27 +0100
commit89b7e785eef62fe36177c453a3c0e030dece6a76 (patch)
tree73908085843f88080d43d99ca8e5ccde31e4ba0d /src/fsm
parent02028ea4ef19631294981d9ec1ac34d2bfa531ac (diff)
downloadglutte-o-matic-89b7e785eef62fe36177c453a3c0e030dece6a76.tar.gz
glutte-o-matic-89b7e785eef62fe36177c453a3c0e030dece6a76.tar.bz2
glutte-o-matic-89b7e785eef62fe36177c453a3c0e030dece6a76.zip
Add missing hardfault.s file
Diffstat (limited to 'src/fsm')
-rw-r--r--src/fsm/hardfault.s13
1 files changed, 13 insertions, 0 deletions
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