AnsweredAssumed Answered

About priority grouping

Question asked by julien.terrier on Sep 14, 2015
Latest reply on Sep 15, 2015 by Nesrine M
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 */


#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 that SCB->AIRCR = 0x 0700

Do you agree with this value?