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

Function uart_print

bsp/loongson/ls1cdev/libraries/ls1c_uart.c:185–194  ·  view source on GitHub ↗

* 打印一个字符串到指定串口 * @uartx 串口号 * @str 待打印的字符串 */

Source from the content-addressed store, hash-verified

183 * @str 待打印的字符串
184 */
185void uart_print(ls1c_uart_t uartx, const char *str)
186{
187 while ('\0' != *str) // 判断是否为字符串结束符
188 {
189 uart_putc(uartx, *str); // 发送一个字符
190 str++;
191 }
192
193 return ;
194}
195
196
197/*

Callers 2

uart2_printFunction · 0.70
uart_debug_printFunction · 0.70

Calls 1

uart_putcFunction · 0.70

Tested by

no test coverage detected