/* param base The I2C peripheral base address. return I2C instance number starting from 0.  */
uint32_t I2C_GetInstance(I2C_Type *base)
/* param base The I2C peripheral base address. return I2C instance number starting from 0.  */
uint32_t I2C_GetInstance(I2C_Type *base)
{
    uint32_t i;
    for (i = 0; i < (uint32_t)FSL_FEATURE_SOC_I2C_COUNT; i++)
    {
        if ((uint32_t)base == s_i2cBaseAddrs[i])
        {
            break;
        }
    }
    assert(i < (uint32_t)FSL_FEATURE_SOC_I2C_COUNT);
    return i;
}