Updated SCB_AIRCR_PRIGROUP bit definitions to be more consistent with the style the library.

This commit is contained in:
Piotr Esden-Tempski 2012-02-24 16:21:23 -08:00
parent 1c5dfd9d22
commit c5e5c0fdab
3 changed files with 21 additions and 18 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)