diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-01-22 09:22:27 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-01-22 09:22:27 +0100 |
commit | 89b7e785eef62fe36177c453a3c0e030dece6a76 (patch) | |
tree | 73908085843f88080d43d99ca8e5ccde31e4ba0d /src/fsm | |
parent | 02028ea4ef19631294981d9ec1ac34d2bfa531ac (diff) | |
download | glutte-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.s | 13 |
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 |