/* Get the UART instance from peripheral base address.  */
static uint32_t smartcard_emvsim_GetInstance(EMVSIM_Type *base)
/* Get the UART instance from peripheral base address.  */
static uint32_t smartcard_emvsim_GetInstance(EMVSIM_Type *base)
{
    uint8_t instance          = 0;
    uint32_t emvsimArrayCount = (sizeof(s_emvsimBases) / sizeof(s_emvsimBases[0]));
    for (instance = 0; instance < emvsimArrayCount; instance++)
    {
        if (s_emvsimBases[instance] == base)
        {
            break;
        }
    }
    assert(instance < emvsimArrayCount);
    return instance;
}