Lines Matching full:uart

10 #include <zephyr/drivers/uart.h>
22 UART_T *uart; member
49 count = UART_Read(config->uart, c, 1); in uart_numaker_poll_in()
61 UART_Write(config->uart, &c, 1); in uart_numaker_poll_out()
67 UART_T *uart = config->uart; in uart_numaker_err_check() local
68 uint32_t flags = uart->FIFOSTS; in uart_numaker_err_check()
89 uart->FIFOSTS = (UART_FIFOSTS_BIF_Msk | UART_FIFOSTS_FEF_Msk | in uart_numaker_err_check()
161 UART_DisableFlowCtrl(config->uart); in uart_numaker_configure()
163 UART_EnableFlowCtrl(config->uart); in uart_numaker_configure()
170 UART_SetLineConfig(config->uart, cfg->baudrate, databits, parity, stopbits); in uart_numaker_configure()
229 /* Reset UART to default state */ in uart_numaker_init()
232 UART_Open(config->uart, pData->ucfg.baudrate); in uart_numaker_init()
247 UART_T *uart = config->uart; in uart_numaker_fifo_fill() local
251 while (((size - tx_bytes) > 0) && (!(uart->FIFOSTS & UART_FIFOSTS_TXFULL_Msk))) { in uart_numaker_fifo_fill()
253 uart->DAT = tx_data[tx_bytes++]; in uart_numaker_fifo_fill()
262 UART_T *uart = config->uart; in uart_numaker_fifo_read() local
266 while (((size - rx_bytes) > 0) && (!(uart->FIFOSTS & UART_FIFOSTS_RXEMPTY_Msk))) { in uart_numaker_fifo_read()
267 /* Read one byte from UART RX FIFO */ in uart_numaker_fifo_read()
268 rx_data[rx_bytes++] = (uint8_t)uart->DAT; in uart_numaker_fifo_read()
277 UART_T *uart = config->uart; in uart_numaker_irq_tx_enable() local
279 UART_EnableInt(uart, UART_INTEN_THREIEN_Msk); in uart_numaker_irq_tx_enable()
285 UART_T *uart = config->uart; in uart_numaker_irq_tx_disable() local
287 UART_DisableInt(uart, UART_INTEN_THREIEN_Msk); in uart_numaker_irq_tx_disable()
293 UART_T *uart = config->uart; in uart_numaker_irq_tx_ready() local
295 return ((!UART_IS_TX_FULL(uart)) && (uart->INTEN & UART_INTEN_THREIEN_Msk)); in uart_numaker_irq_tx_ready()
301 UART_T *uart = config->uart; in uart_numaker_irq_tx_complete() local
303 return (uart->INTSTS & UART_INTSTS_THREINT_Msk); in uart_numaker_irq_tx_complete()
309 UART_T *uart = config->uart; in uart_numaker_irq_rx_enable() local
311 UART_EnableInt(uart, UART_INTEN_RDAIEN_Msk); in uart_numaker_irq_rx_enable()
317 UART_T *uart = config->uart; in uart_numaker_irq_rx_disable() local
319 UART_DisableInt(uart, UART_INTEN_RDAIEN_Msk); in uart_numaker_irq_rx_disable()
325 UART_T *uart = config->uart; in uart_numaker_irq_rx_ready() local
327 return ((!UART_GET_RX_EMPTY(uart)) && (uart->INTEN & UART_INTEN_RDAIEN_Msk)); in uart_numaker_irq_rx_ready()
333 UART_T *uart = config->uart; in uart_numaker_irq_err_enable() local
335 UART_EnableInt(uart, UART_INTEN_BUFERRIEN_Msk | UART_INTEN_SWBEIEN_Msk); in uart_numaker_irq_err_enable()
341 UART_T *uart = config->uart; in uart_numaker_irq_err_disable() local
343 UART_DisableInt(uart, UART_INTEN_BUFERRIEN_Msk | UART_INTEN_SWBEIEN_Msk); in uart_numaker_irq_err_disable()
430 .uart = (UART_T *)DT_INST_REG_ADDR(inst), \