/* brief Returns instance number for FLEXCOMM module with given base address.  */
uint32_t FLEXCOMM_GetInstance(void *base)
/* brief Returns instance number for FLEXCOMM module with given base address.  */
uint32_t FLEXCOMM_GetInstance(void *base)
{
    uint32_t i;
    pvoid_to_u32_t BaseAddr;
    BaseAddr.pvoid = base;
    for (i = 0U; i < (uint32_t)FSL_FEATURE_SOC_FLEXCOMM_COUNT; i++)
    {
        if (BaseAddr.u32 == s_flexcommBaseAddrs[i])
        {
            break;
        }
    }
    assert(i < FSL_FEATURE_SOC_FLEXCOMM_COUNT);
    return i;
}