/* param base FlexCAN peripheral base address. return FlexCAN instance.  */
uint32_t FLEXCAN_GetInstance(CAN_Type *base)
/* param base FlexCAN peripheral base address. return FlexCAN instance.  */
uint32_t FLEXCAN_GetInstance(CAN_Type *base)
{
    uint32_t instance;
    for (instance = 0; instance < ARRAY_SIZE(s_flexcanBases); instance++)
    {
        if (s_flexcanBases[instance] == base)
        {
            break;
        }
    }
    assert(instance < ARRAY_SIZE(s_flexcanBases));
    return instance;
}