In ADI UART test examples we have:
/* NVIC initialization */
but inside NVIC_SetPriorityGrouping() function is written:
The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field.
Only values from 0..7 are used.
Why the parameter is 12 in case that it is written that can be from 0 to 7 ???
This may be legacy code from another part. It appears that it is not necessary in this example.