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

Function uart_putc

bsp/ft2004/drivers/drv_usart.c:112–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112static 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
126static int uart_getc(struct rt_serial_device *serial)
127{

Callers

nothing calls this directly

Calls 1

FUart_SendByteFunction · 0.85

Tested by

no test coverage detected