cancel
Showing results for 
Search instead for 
Did you mean: 

About priority grouping

julienterrier39
Associate II
Posted on September 14, 2015 at 12:18

Hi ,

still with my STM32F429I disco-board project , I would know what is the return of this functions:

/** \brief Get Priority Grouping
The function reads the priority grouping field from the NVIC Interrupt Controller.
\return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field).
*/
__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void)
{
return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */
}

with:

#define SCB_AIRCR_PRIGROUP_Pos 8 /*!< SCB AIRCR: PRIGROUP Position */
#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */

I think thatSCB->AIRCR = 0x 0700 Do you agree with this value?
1 REPLY 1
Nesrine M_O
Lead II
Posted on September 15, 2015 at 11:38

Hi ulien.terrier,

This function returns the priority grouping (flag PRIGROUP in AIRCR[10:8]). By default, priority group setting is zero.

For more information, I suggest you to have a look to the Interrupt priority grouping on the

http://www.st.com/web/en/resource/technical/document/programming_manual/DM00046982.pdf

            

-Syrine –