CARME-M4 BSP  V1.5
MISC_Preemption_Priority_Group
+ Collaboration diagram for MISC_Preemption_Priority_Group:

Macros

#define NVIC_PriorityGroup_0   ((uint32_t)0x700)
 
#define NVIC_PriorityGroup_1   ((uint32_t)0x600)
 
#define NVIC_PriorityGroup_2   ((uint32_t)0x500)
 
#define NVIC_PriorityGroup_3   ((uint32_t)0x400)
 
#define NVIC_PriorityGroup_4   ((uint32_t)0x300)
 
#define IS_NVIC_PRIORITY_GROUP(GROUP)
 
#define IS_NVIC_PREEMPTION_PRIORITY(PRIORITY)   ((PRIORITY) < 0x10)
 
#define IS_NVIC_SUB_PRIORITY(PRIORITY)   ((PRIORITY) < 0x10)
 
#define IS_NVIC_OFFSET(OFFSET)   ((OFFSET) < 0x000FFFFF)
 

Detailed Description

Macro Definition Documentation

#define IS_NVIC_PRIORITY_GROUP (   GROUP)
Value:
(((GROUP) == NVIC_PriorityGroup_0) || \
((GROUP) == NVIC_PriorityGroup_1) || \
((GROUP) == NVIC_PriorityGroup_2) || \
((GROUP) == NVIC_PriorityGroup_3) || \
((GROUP) == NVIC_PriorityGroup_4))
#define NVIC_PriorityGroup_2
Definition: misc.h:118
#define NVIC_PriorityGroup_0
Definition: misc.h:112
#define NVIC_PriorityGroup_1
Definition: misc.h:115
#define NVIC_PriorityGroup_4
Definition: misc.h:124
#define NVIC_PriorityGroup_3
Definition: misc.h:121

Definition at line 128 of file misc.h.

#define NVIC_PriorityGroup_0   ((uint32_t)0x700)

0 bits for pre-emption priority 4 bits for subpriority

Definition at line 112 of file misc.h.

#define NVIC_PriorityGroup_1   ((uint32_t)0x600)

1 bits for pre-emption priority 3 bits for subpriority

Definition at line 115 of file misc.h.

#define NVIC_PriorityGroup_2   ((uint32_t)0x500)

2 bits for pre-emption priority 2 bits for subpriority

Definition at line 118 of file misc.h.

#define NVIC_PriorityGroup_3   ((uint32_t)0x400)

3 bits for pre-emption priority 1 bits for subpriority

Definition at line 121 of file misc.h.

#define NVIC_PriorityGroup_4   ((uint32_t)0x300)

4 bits for pre-emption priority 0 bits for subpriority

Definition at line 124 of file misc.h.