/* Get instance number for DMA. 
Static table of descriptors. */
static uint32_t DMA_GetInstance(DMA_Type *base)
/* Get instance number for DMA. 
Static table of descriptors. */
static uint32_t DMA_GetInstance(DMA_Type *base)
{
    int32_t instance;
    for (instance = 0; instance < ARRAY_SIZE(s_dmaBases); instance++)
    {
        if (s_dmaBases[instance] == base)
        {
            break;
        }
    }
    assert(instance < ARRAY_SIZE(s_dmaBases));
    return instance;
}