AnsweredAssumed Answered

NVIC_SetPriorityGrouping(12);

Question asked by gugi on Nov 28, 2015
Latest reply on Dec 16, 2015 by emoloney

Hello,

In ADI UART test examples we have:  

/* NVIC initialization */

    NVIC_SetPriorityGrouping(12);

 

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 ???

 

Thank you

Outcomes