| |||
| Home > Cortex-M3 Peripherals > System control block > System Handler Priority Registers | |||
The SHPR1-SHPR3 registers set the priority level, 0 to 255, of the exception handlers that have configurable priority.
SHPR1-SHPR3 are byte accessible. See the register summary in Table 4.12 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.16 for more information.
The bit assignments are:
Table 4.21. SHPR1 register bit assignments
| Bits | Name | Function |
|---|---|---|
| [31:24] | PRI_7 | Reserved |
| [23:16] | PRI_6 | Priority of system handler 6, UsageFault |
| [15:8] | PRI_5 | Priority of system handler 5, BusFault |
| [7:0] | PRI_4 | Priority of system handler 4, MemManage |