/* Get the ENET instance from peripheral base address.  */
uint32_t ENET_GetInstance(ENET_Type *base)
/* Get the ENET instance from peripheral base address.  */
uint32_t ENET_GetInstance(ENET_Type *base)
{
    uint32_t instance;
    for (instance = 0; instance < ARRAY_SIZE(s_enetBases); instance++)
    {
        if (s_enetBases[instance] == base)
        {
            break;
        }
    }
    RT_ASSERT(instance < ARRAY_SIZE(s_enetBases));
    return instance;
}