Lines Matching refs:serial

29 static rt_err_t uart_configure(struct rt_serial_device *serial, struct serial_configure *cfg)  in uart_configure()  argument
35 RT_ASSERT(serial != RT_NULL); in uart_configure()
37 uart = rt_container_of(serial, struct drv_usart, serial); in uart_configure()
41 FUart_SetHandler(uart_ptr, Ft_Os_Uart_Callback, serial); in uart_configure()
57 static rt_err_t uart_control(struct rt_serial_device *serial, int cmd, void *arg) in uart_control() argument
61 RT_ASSERT(serial != RT_NULL); in uart_control()
63 uart = rt_container_of(serial, struct drv_usart, serial); in uart_control()
84 struct rt_serial_device *serial = (struct rt_serial_device *)Args; in Ft_Os_Uart_Callback() local
88 if (serial->serial_rx) in Ft_Os_Uart_Callback()
89 rt_hw_serial_isr(serial, RT_SERIAL_EVENT_RX_IND); in Ft_Os_Uart_Callback()
112 static int uart_putc(struct rt_serial_device *serial, char c) in uart_putc() argument
116 RT_ASSERT(serial != RT_NULL); in uart_putc()
118 uart = rt_container_of(serial, struct drv_usart, serial); in uart_putc()
126 static int uart_getc(struct rt_serial_device *serial) in uart_getc() argument
131 RT_ASSERT(serial != RT_NULL); in uart_getc()
133 uart = rt_container_of(serial, struct drv_usart, serial); in uart_getc()
168 _RtUart0.serial.ops = &_uart_ops; in rt_hw_uart_init()
169 _RtUart0.serial.config = config; in rt_hw_uart_init()
173 rt_hw_serial_register(&_RtUart0.serial, "uart0", in rt_hw_uart_init()
180 _RtUart1.serial.ops = &_uart_ops; in rt_hw_uart_init()
181 _RtUart1.serial.config = config; in rt_hw_uart_init()
184 rt_hw_serial_register(&_RtUart1.serial, "uart1", in rt_hw_uart_init()