/* Gets the GPIO instance according to the GPIO base.  */
static uint32_t GPIO_GetInstance(GPIO_Type *base)
/* Gets the GPIO instance according to the GPIO base.  */
static uint32_t GPIO_GetInstance(GPIO_Type *base)
{
    uint32_t instance;
    for (instance = 0; instance < FSL_FEATURE_SOC_GPIO_COUNT; instance++)
    {
        if (s_gpioBases[instance] == base)
        {
            break;
        }
    }
    assert(instance < FSL_FEATURE_SOC_GPIO_COUNT);
    return instance;
}