/* Sets the priority grouping of the interrupt controller. */
void xIntPriorityGroupingSet(unsigned long ulBits)
/* Sets the priority grouping of the interrupt controller. */
void xIntPriorityGroupingSet(unsigned long ulBits)
{
    xASSERT(ulBits < NUM_PRIORITY);
    xHWREG(NVIC_APINT) = NVIC_APINT_VECTKEY | g_pulPriority[ulBits];
}