Thirdparty/eta_ai_bsp/src/eta_bsp.c
/***************************************************************************/
/**
 *
 * EtaBspUartInit - Initialize the BSP UARTs.
 *
 * @param iBaud is the desired baud rate for the UARTs.
 *
 ******************************************************************************/
Initialize the BSP UARTs.
@param iBaud is the desired baud rate for the UARTs.
Initialize the BSP UARTs . @param iBaud is the desired baud rate for the UARTs .
void
EtaBspUartInit(tUartBaud iBaud)
{
     Init UART0 and UART1.
    EtaCspUartInit(&g_sUart0, eUartNum0, iBaud, eUartFlowControlNone);
    EtaCspUartInit(&g_sUart1, eUartNum1, iBaud, eUartFlowControlNone);
     Setup pins for UART1.
    EtaCspUartPinSelect(&g_sUart1, ETA_BSP_GPIO_UART1_TX, ETA_BSP_GPIO_UART1_RX,
                        ETA_BSP_GPIO_UART1_RTS, ETA_BSP_GPIO_UART1_CTS);
     Set the Printf UART.
     EtaCspIoPrintfRedirect(ETA_BSP_PRINTF_UART);
}
void EtaBspUartInit ( tUartBaud iBaud ) { EtaCspUartInit ( & g_sUart0 , eUartNum0 , iBaud , eUartFlowControlNone ) ; EtaCspUartInit ( & g_sUart1 , eUartNum1 , iBaud , eUartFlowControlNone ) ; EtaCspUartPinSelect ( & g_sUart1 , ETA_BSP_GPIO_UART1_TX , ETA_BSP_GPIO_UART1_RX , ETA_BSP_GPIO_UART1_RTS , ETA_BSP_GPIO_UART1_CTS ) ; }
EtaBspUartInit - Initialize the BSP UARTs.
EtaBspUartInit - Initialize the BSP UARTs .
// // Init UART0 and UART1. // // // Setup pins for UART1. // // // Set the Printf UART. // // EtaCspIoPrintfRedirect(ETA_BSP_PRINTF_UART);