| 110 | } |
| 111 | |
| 112 | static int uart_putc(struct rt_serial_device *serial, char c) |
| 113 | { |
| 114 | struct drv_usart *uart = RT_NULL; |
| 115 | Ft_Uart *uart_ptr = RT_NULL; |
| 116 | RT_ASSERT(serial != RT_NULL); |
| 117 | |
| 118 | uart = rt_container_of(serial, struct drv_usart, serial); |
| 119 | uart_ptr = uart->handle; |
| 120 | |
| 121 | FUart_SendByte(uart_ptr->Config.BaseAddress, c); |
| 122 | |
| 123 | return 1; |
| 124 | } |
| 125 | |
| 126 | static int uart_getc(struct rt_serial_device *serial) |
| 127 | { |
nothing calls this directly
no test coverage detected