static uint32_t EDMA_GetInstance(DMA_Type *base)
{
uint32_t instance;
/* Find the instance index from base address mappings. */
for (instance = 0; instance < FSL_FEATURE_SOC_EDMA_COUNT; instance++)
{
if (s_edmaBases[instance] == base)
{
break;
}
}
assert(instance < FSL_FEATURE_SOC_EDMA_COUNT);
return instance;
}
|