Signed-off-by: surenyi <surenyi82@qq.com>
@ -80,7 +80,7 @@ static Uart *__uarts[MAX_UARTS] = {
#define hUartRegs ((CSL_UartRegsOvly)_uart->regbase())
uart_t uart_init(int bus)
uart_t uart_open(int bus)
{
uart_t _uart = __uarts[bus];
_uart->doInit();
@ -19,7 +19,7 @@ extern "C" {
typedef struct Uart * uart_t;
uart_t uart_init(int uart);
uart_t uart_open(int uart);
/* data in */
int uart_is_ready(uart_t);