/* This function returns the split between preemptable priority levels and sub-priority levels in the interrupt priority specification. */
uint32_t IntPriorityGroupingGet(void)
/* This function returns the split between preemptable priority levels and sub-priority levels in the interrupt priority specification. */
uint32_t IntPriorityGroupingGet(void)
{
    uint32_t ui32Loop, ui32Value;
    ui32Value = HWREG(NVIC_APINT) & NVIC_APINT_PRIGROUP_M;
    for(ui32Loop = 0; ui32Loop < NUM_PRIORITY; ui32Loop++)
    {
        if(ui32Value == g_pui32Priority[ui32Loop])
        {
            break;
        }
    }
    return(ui32Loop);
}