/* Get the ACMP instance from the peripheral base address.  */
static uint32_t ACMP_GetInstance(CMP_Type *base)
/* Get the ACMP instance from the peripheral base address.  */
static uint32_t ACMP_GetInstance(CMP_Type *base)
{
    uint32_t instance = 0U;
    for (instance = 0; instance < ARRAY_SIZE(s_acmpBases); instance++)
    {
        if (s_acmpBases[instance] == base)
        {
            break;
        }
    }
    assert(instance < ARRAY_SIZE(s_acmpBases));
    return instance;
}