MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / ls1c_uart_putc

Function ls1c_uart_putc

bsp/loongson/ls1cdev/drivers/drv_uart.c:69–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69static int ls1c_uart_putc(struct rt_serial_device *serial, char c)
70{
71 struct rt_uart_ls1c *uart_dev = RT_NULL;
72
73 RT_ASSERT(serial != RT_NULL);
74
75 uart_dev = (struct rt_uart_ls1c *)serial->parent.user_data;
76 uart_putc(uart_dev->UARTx, c);
77
78 return 1;
79}
80
81static int ls1c_uart_getc(struct rt_serial_device *serial)
82{

Callers

nothing calls this directly

Calls 1

uart_putcFunction · 0.50

Tested by

no test coverage detected