Lines Matching full:uart
11 #include <drivers/uart.h>
14 /* UART REGISTERS DEFINITIONS */
159 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_poll_out() local
161 while (!(uart->status & STATUS_TXRDY_MASK)) { in uart_miv_poll_out()
164 uart->tx = c; in uart_miv_poll_out()
169 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_poll_in() local
171 if (uart->status & STATUS_RXFULL_MASK) { in uart_miv_poll_in()
172 *c = (unsigned char)(uart->rx & RXDATA_MASK); in uart_miv_poll_in()
181 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_err_check() local
182 uint32_t flags = uart->status; in uart_miv_err_check()
207 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_fifo_fill() local
210 for (i = 0; i < size && (uart->status & STATUS_TXRDY_MASK); i++) { in uart_miv_fifo_fill()
211 uart->tx = tx_data[i]; in uart_miv_fifo_fill()
221 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_fifo_read() local
225 if (uart->status & STATUS_RXFULL_MASK) { in uart_miv_fifo_read()
226 rx_data[i] = (unsigned char)(uart->rx & RXDATA_MASK); in uart_miv_fifo_read()
247 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_irq_tx_ready() local
249 return !(uart->status & STATUS_TXRDY_MASK); in uart_miv_irq_tx_ready()
271 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_irq_rx_ready() local
273 return !!(uart->status & STATUS_RXFULL_MASK); in uart_miv_irq_rx_ready()
288 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_irq_is_pending() local
290 return !!(uart->status & STATUS_RXFULL_MASK); in uart_miv_irq_is_pending()
317 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_rx_thread() local
328 if (uart->status & STATUS_RXFULL_MASK) { in uart_miv_rx_thread()
350 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_init() local
355 uart->ctrlreg1 = (uint8_t)(baud_value & BAUDVALUE_LSB); in uart_miv_init()
356 uart->ctrlreg2 = (uint8_t)(cfg->line_config) | in uart_miv_init()