* 打印一个字符串到指定串口 * @uartx 串口号 * @str 待打印的字符串 */
| 183 | * @str 待打印的字符串 |
| 184 | */ |
| 185 | void 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 | /* |
no test coverage detected