You copied the Doc URL to your clipboard.
The SHPR2-SHPR3 registers set the priority level, 0 to 192, of the exception handlers that have configurable priority.
SHPR2-SHPR3 are word accessible. See the register summary in Table 4.9 for their attributes.
To access to the system exception priority level using CMSIS, use the following CMSIS functions:
uint32_t NVIC_GetPriority(IRQn_Type IRQn)
void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
The input parameter IRQn
is the IRQ
number, see Table 2.11 for
more information.
The system fault handlers, and the priority field and register for each handler are:
Handler | Field | Register description |
---|---|---|
SVCall | PRI_11 | System Handler Priority Register 2 |
PendSV | PRI_14 | System Handler Priority Register 3 |
SysTick | PRI_15 |
Each PRI_N field is 8 bits wide, but the processor implements only bits[7:6] of each field, and bits[5:0] read as zero and ignore writes.
The bit assignments are:
Bits | Name | Function |
---|---|---|
[31:24] | PRI_11 | Priority of system handler 11, SVCall |
[23:0] | - | Reserved |