__NVIC_SetPriorityGrouping() function
Set Priority Grouping Sets the priority grouping field using the required unlock sequence. The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. Only values from 0..7 are used. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.
__NVIC_SetPriorityGrouping() reads 1 variable and writes 1 variable:
![]()
__NVIC_SetPriorityGrouping()