Browse Source

change uart_init() to uart_open() match open/close

Signed-off-by: surenyi <surenyi82@qq.com>
master
surenyi 6 years ago
parent
commit
5fb82b0c23
  1. 2
      packages/vsky/libdsp/driver/uart.cpp
  2. 2
      packages/vsky/libdsp/inc/uart.h

2
packages/vsky/libdsp/driver/uart.cpp

@ -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();

2
packages/vsky/libdsp/inc/uart.h

@ -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);

Loading…
Cancel
Save