/* brief Returns instance number for USART peripheral base address.  */
uint32_t USART_GetInstance(USART_Type *base)
/* brief Returns instance number for USART peripheral base address.  */
uint32_t USART_GetInstance(USART_Type *base)
{
    uint32_t i;
    for (i = 0; i < (uint32_t)FSL_FEATURE_SOC_USART_COUNT; i++)
    {
        if ((uint32_t)base == s_usartBaseAddrs[i])
        {
            break;
        }
    }
    assert(i < FSL_FEATURE_SOC_USART_COUNT);
    return i;
}