/* Get the MCAN instance from peripheral base address.  */
static uint32_t MCAN_GetInstance(CAN_Type *base)
/* Get the MCAN instance from peripheral base address.  */
static uint32_t MCAN_GetInstance(CAN_Type *base)
{
    uint32_t instance;
    for (instance = 0; instance < ARRAY_SIZE(s_mcanBases); instance++)
    {
        if (s_mcanBases[instance] == base)
        {
            break;
        }
    }
    assert(instance < ARRAY_SIZE(s_mcanBases));
    return instance;
}