Searched refs:read_uart_reg (Results 1 – 1 of 1) sorted by relevance
28 static inline unsigned char read_uart_reg(int port, uint reg) { in read_uart_reg() function123 while (!(read_uart_reg(port, UART_LSR) & (1<<6))) // wait for the last char to get out in uart_putc()131 while (!(read_uart_reg(port, UART_LSR) & (1<<0))) // wait for data to show up in the rx fifo in uart_getc()134 if (!(read_uart_reg(port, UART_LSR) & (1<<0))) in uart_getc()137 return read_uart_reg(port, UART_RHR); in uart_getc()141 while (!(read_uart_reg(port, UART_LSR) & (1<<6))) // wait for the last char to get out in uart_flush_tx()147 while (read_uart_reg(port, UART_LSR) & (1<<0)) { in uart_flush_rx()148 volatile char c = read_uart_reg(port, UART_RHR); in uart_flush_rx()
Completed in 2 milliseconds