aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/stm32/f4
diff options
context:
space:
mode:
authorPiotr Esden-Tempski2012-02-24 16:21:23 -0800
committerPiotr Esden-Tempski2012-02-24 16:21:23 -0800
commitc5e5c0fdabd7cde54bb0b0ffae2a47b4172f6042 (patch)
tree9e10f082a548610c175dfd7ebcb181ed5a9295b1 /include/libopencm3/stm32/f4
parent1c5dfd9d224c5baa259edafeaa130b4094dbde2c (diff)
Updated SCB_AIRCR_PRIGROUP bit definitions to be more consistent with the style the library.
Diffstat (limited to 'include/libopencm3/stm32/f4')
-rw-r--r--include/libopencm3/stm32/f4/scb.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/libopencm3/stm32/f4/scb.h b/include/libopencm3/stm32/f4/scb.h
index b73ada3..5c965be 100644
--- a/include/libopencm3/stm32/f4/scb.h
+++ b/include/libopencm3/stm32/f4/scb.h
@@ -127,12 +127,13 @@
#define SCB_AIRCR_ENDIANESS (1 << 15)
/* Bits [14:11]: reserved - must be kept cleared */
/* PRIGROUP[10:8]: Interrupt priority grouping field */
-#define SCB_AIRCR_PRIGROUP_LSB 8
-#define SCB_AIRCR_PRIGROUP_GROUP16_NOSUB 0x3
-#define SCB_AIRCR_PRIGROUP_GROUP8_SUB2 0x4
-#define SCB_AIRCR_PRIGROUP_GROUP4_SUB4 0x5
-#define SCB_AIRCR_PRIGROUP_GROUP2_SUB8 0x6
-#define SCB_AIRCR_PRIGROUP_NOGROUP_SUB16 0x7
+#define SCB_AIRCR_PRIGROUP_GROUP16_NOSUB (0x3 << 8)
+#define SCB_AIRCR_PRIGROUP_GROUP8_SUB2 (0x4 << 8)
+#define SCB_AIRCR_PRIGROUP_GROUP4_SUB4 (0x5 << 8)
+#define SCB_AIRCR_PRIGROUP_GROUP2_SUB8 (0x6 << 8)
+#define SCB_AIRCR_PRIGROUP_NOGROUP_SUB16 (0x7 << 8)
+#define SCB_AIRCR_PRIGROUP_MASK (0x7 << 8)
+#define SCB_AIRCR_PRIGROUP_SHIFT 8
/* Bits [7:3]: reserved - must be kept cleared */
/* SYSRESETREQ System reset request */
#define SCB_AIRCR_SYSRESETREQ (1 << 2)