Lines Matching refs:serial
20 struct rt_serial_device *serial; variable
23 static rt_err_t uart_configure(struct rt_serial_device *serial, struct serial_configure *cfg);
24 static rt_err_t uart_control(struct rt_serial_device *serial, int cmd, void *arg);
25 static int uart_putc(struct rt_serial_device *serial, char c);
26 static int uart_getc(struct rt_serial_device *serial);
27 static rt_ssize_t uart_dma_transmit(struct rt_serial_device *serial, rt_uint8_t *buf, rt_size_t siz…
40 static void uart_isr(struct rt_serial_device *serial);
60 serial = &serial0; in rt_hw_uart_init()
61 serial->ops = &_uart_ops; in rt_hw_uart_init()
62 serial->config = config; in rt_hw_uart_init()
65 rt_hw_serial_register(serial, in rt_hw_uart_init()
76 static rt_err_t uart_configure(struct rt_serial_device *serial, struct serial_configure *cfg) in uart_configure() argument
79 RT_ASSERT(serial != RT_NULL); in uart_configure()
85 static rt_err_t uart_control(struct rt_serial_device *serial, int cmd, void *arg) in uart_control() argument
87 RT_ASSERT(serial != RT_NULL); in uart_control()
92 static int uart_putc(struct rt_serial_device *serial, char c) in uart_putc() argument
95 RT_ASSERT(serial != RT_NULL); in uart_putc()
102 static int uart_getc(struct rt_serial_device *serial) in uart_getc() argument
106 RT_ASSERT(serial != RT_NULL); in uart_getc()
118 static rt_ssize_t uart_dma_transmit(struct rt_serial_device *serial, rt_uint8_t *buf, rt_size_t siz… in uart_dma_transmit() argument
129 static void uart_isr(struct rt_serial_device *serial) in uart_isr() argument
131 RT_ASSERT(serial != RT_NULL); in uart_isr()
135 rt_hw_serial_isr(serial, RT_SERIAL_EVENT_RX_IND); in uart_isr()