diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-11-10 19:52:37 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-11-10 19:52:37 +0100 |
commit | 1e9a571577c96fc9b5416d659ddd0fc6f6b878e5 (patch) | |
tree | 7fea193192a3456d78e3d44e80bde5fe6968d95e | |
parent | 261e6be038754388212e7a7b69da1318d6a171d2 (diff) |
Fixed system handler priority setting.
-rw-r--r-- | interrupt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interrupt.h b/interrupt.h index d628cdd..f817103 100644 --- a/interrupt.h +++ b/interrupt.h @@ -83,7 +83,7 @@ namespace Interrupt { } inline void set_priority(Exception n, uint8_t priority) { - SCB.SHPR[n >> 2] = (priority & 0xf) << ((n & 0x03) * 4); + SCB.SHPR[n - 4] = priority; } inline void set_priority(IRQ n, uint8_t priority) { |