From 1e9a571577c96fc9b5416d659ddd0fc6f6b878e5 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 10 Nov 2011 19:52:37 +0100 Subject: Fixed system handler priority setting. --- interrupt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3