/* This function returns the split between preemptable priority levels and subpriority levels in the interrupt priority specification. */
unsigned long xIntPriorityGroupingGet(void)
/* This function returns the split between preemptable priority levels and subpriority levels in the interrupt priority specification. */
unsigned long xIntPriorityGroupingGet(void)
{
    unsigned long ulLoop, ulValue;
    ulValue = xHWREG(NVIC_APINT) & NVIC_APINT_PRIGROUP_M;
    for(ulLoop = 0; ulLoop < NUM_PRIORITY; ulLoop++)
    {
        if(ulValue == g_pulPriority[ulLoop])
        {
            break;
        }
    }
    return(ulLoop);
}