Lines Matching refs:serial_device
121 struct rt_serial_device serial_device; member
158 static rt_err_t swm_uart_configure(struct rt_serial_device *serial_device, struct serial_configure … in swm_uart_configure() argument
161 RT_ASSERT(serial_device != RT_NULL); in swm_uart_configure()
163 uart_cfg = serial_device->parent.user_data; in swm_uart_configure()
211 static rt_err_t swm_uart_control(struct rt_serial_device *serial_device, int cmd, void *arg) in swm_uart_control() argument
214 RT_ASSERT(serial_device != RT_NULL); in swm_uart_control()
215 uart_cfg = serial_device->parent.user_data; in swm_uart_control()
231 static int swm_uart_putc(struct rt_serial_device *serial_device, char c) in swm_uart_putc() argument
234 RT_ASSERT(serial_device != RT_NULL); in swm_uart_putc()
235 uart_cfg = serial_device->parent.user_data; in swm_uart_putc()
245 static int swm_uart_getc(struct rt_serial_device *serial_device) in swm_uart_getc() argument
249 RT_ASSERT(serial_device != RT_NULL); in swm_uart_getc()
250 uart_cfg = serial_device->parent.user_data; in swm_uart_getc()
273 static void rt_hw_uart_isr(struct rt_serial_device *serial_device) in rt_hw_uart_isr() argument
276 RT_ASSERT(serial_device != RT_NULL); in rt_hw_uart_isr()
277 uart_cfg = serial_device->parent.user_data; in rt_hw_uart_isr()
282 rt_hw_serial_isr(serial_device, RT_SERIAL_EVENT_RX_IND); in rt_hw_uart_isr()
292 rt_hw_uart_isr(&(uart_obj[UART0_INDEX].serial_device)); in UART0_Handler()
305 rt_hw_uart_isr(&(uart_obj[UART1_INDEX].serial_device)); in UART1_Handler()
318 rt_hw_uart_isr(&(uart_obj[UART2_INDEX].serial_device)); in UART2_Handler()
331 rt_hw_uart_isr(&(uart_obj[UART3_INDEX].serial_device)); in UART3_Handler()
364 uart_obj[i].serial_device.ops = &swm_uart_ops; in swm_uart_init()
365 uart_obj[i].serial_device.config = serial_cfg; in swm_uart_init()
367 result = rt_hw_serial_register(&uart_obj[i].serial_device, uart_obj[i].uart_cfg->name, in swm_uart_init()