/* brief Returns instance number for SPI peripheral base address.  */
uint32_t SPI_GetInstance(SPI_Type *base)
/* brief Returns instance number for SPI peripheral base address.  */
uint32_t SPI_GetInstance(SPI_Type *base)
{
    uint32_t i;
    for (i = 0U; i < (uint32_t)FSL_FEATURE_SOC_SPI_COUNT; i++)
    {
        if ((uint32_t)base == s_spiBaseAddrs[i])
        {
            break;
        }
    }
    assert(i < (uint32_t)FSL_FEATURE_SOC_SPI_COUNT);
    return i;
}