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