/* param base GDET peripheral base address. return GDET instance.  */
static uint32_t GDET_GetInstance(GDET_Type *base)
/* param base GDET peripheral base address. return GDET instance.  */
static uint32_t GDET_GetInstance(GDET_Type *base)
{
    uint32_t instance;
    for (instance = 0U; instance < ARRAY_SIZE(s_gdetBases); instance++)
    {
        if (s_gdetBases[instance] == base)
        {
            break;
        }
    }
    assert(instance < ARRAY_SIZE(s_gdetBases));
    return instance;
}