Lines Matching +full:uart +full:- +full:dev
2 * @brief Pipe UART driver
4 * A pipe UART driver allowing application to handle all aspects of received
11 * SPDX-License-Identifier: Apache-2.0
19 #include <zephyr/drivers/uart.h>
32 static void uart_pipe_rx(const struct device *dev) in uart_pipe_rx() argument
38 int avail = recv_buf_len - recv_off; in uart_pipe_rx()
57 static void uart_pipe_isr(const struct device *dev, void *user_data) in uart_pipe_isr() argument
61 uart_irq_update(dev); in uart_pipe_isr()
63 if (uart_irq_rx_ready(dev)) { in uart_pipe_isr()
64 uart_pipe_rx(dev); in uart_pipe_isr()
72 while (len--) { in uart_pipe_send()
79 static void uart_pipe_setup(const struct device *uart) in uart_pipe_setup() argument
83 uart_irq_rx_disable(uart); in uart_pipe_setup()
84 uart_irq_tx_disable(uart); in uart_pipe_setup()
87 while (uart_fifo_read(uart, &c, 1)) { in uart_pipe_setup()
91 uart_irq_callback_set(uart, uart_pipe_isr); in uart_pipe_setup()
93 uart_irq_rx_enable(uart); in uart_pipe_setup()