2015-09-14 03:18 AM
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?
2015-09-15 02:38 AM
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 thehttp://www.st.com/web/en/resource/technical/document/programming_manual/DM00046982.pdf
-Syrine –