aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-05 18:46:36 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-05 18:48:50 +0200
commit06a1141453ec00e24e211347f0ad71d152f16954 (patch)
tree2137504f65a94b4fdbc9ebcc677bcb0ded2d64ff
parentf07d70add2e16acba7be956ba232e18097a11676 (diff)
downloadglutte-o-matic-06a1141453ec00e24e211347f0ad71d152f16954.tar.gz
glutte-o-matic-06a1141453ec00e24e211347f0ad71d152f16954.tar.bz2
glutte-o-matic-06a1141453ec00e24e211347f0ad71d152f16954.zip
Add missing hardfault.s
-rw-r--r--src/glutt-o-logique/hardfault.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/glutt-o-logique/hardfault.s b/src/glutt-o-logique/hardfault.s
new file mode 100644
index 0000000..8570dcc
--- /dev/null
+++ b/src/glutt-o-logique/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