Macros
CORTEX Preemption Priority Group
Peripheral Driver » HAL Driver » CORTEX » Defines » CORTEX Exported Constants

## Macros
#define | NVIC_PRIORITYGROUP_0 (0x00000007U)
#define | NVIC_PRIORITYGROUP_1 (0x00000006U)
#define | NVIC_PRIORITYGROUP_2 (0x00000005U)
#define | NVIC_PRIORITYGROUP_3 (0x00000004U)
#define | NVIC_PRIORITYGROUP_4 (0x00000003U)
#define | NVIC_PRIORITYGROUP_5 (0x00000002U)
#define | NVIC_PRIORITYGROUP_6 (0x00000001U)
#define | NVIC_PRIORITYGROUP_7 (0x00000000U)

## Detailed Description

## Macro Definition Documentation

## ◆ NVIC_PRIORITYGROUP_0

#define NVIC_PRIORITYGROUP_0 (0x00000007U)

0 bit for pre-emption priority, 8 bits for subpriority

## ◆ NVIC_PRIORITYGROUP_1

#define NVIC_PRIORITYGROUP_1 (0x00000006U)

1 bit for pre-emption priority, 7 bits for subpriority

## ◆ NVIC_PRIORITYGROUP_2

#define NVIC_PRIORITYGROUP_2 (0x00000005U)

2 bits for pre-emption priority, 6 bits for subpriority

## ◆ NVIC_PRIORITYGROUP_3

#define NVIC_PRIORITYGROUP_3 (0x00000004U)

3 bits for pre-emption priority, 5 bits for subpriority

## ◆ NVIC_PRIORITYGROUP_4

#define NVIC_PRIORITYGROUP_4 (0x00000003U)

4 bits for pre-emption priority, 4 bits for subpriority

## ◆ NVIC_PRIORITYGROUP_5

#define NVIC_PRIORITYGROUP_5 (0x00000002U)

5 bits for pre-emption priority, 3 bits for subpriority

## ◆ NVIC_PRIORITYGROUP_6

#define NVIC_PRIORITYGROUP_6 (0x00000001U)

6 bits for pre-emption priority, 2 bits for subpriority

## ◆ NVIC_PRIORITYGROUP_7

#define NVIC_PRIORITYGROUP_7 (0x00000000U)

7 bits for pre-emption priority, 1 bit for subpriority