/* Get the DMIC instance from peripheral base address. 
param base DMIC peripheral base address. return DMIC instance.  */
uint32_t DMIC_GetInstance(DMIC_Type *base)
/* Get the DMIC instance from peripheral base address. 
param base DMIC peripheral base address. return DMIC instance.  */
uint32_t DMIC_GetInstance(DMIC_Type *base)
{
    uint32_t instance;
    for (instance = 0; instance < ARRAY_SIZE(s_dmicBases); instance++)
    {
        if (s_dmicBases[instance] == base)
        {
            break;
        }
    }
    assert(instance < ARRAY_SIZE(s_dmicBases));
    return instance;
}