#include <stdint.h> #include <stdarg.h> extern int vsscanf(const char *, const char *, va_list); extern int vsprintf(const char *, const char *, va_list); int uart_scanf(const char *fmt, ...) { int i = 0; unsigned char ch; char buf[80]; va_list args; while(1) { ch = uart_getchar(); uart_putchar(ch); if(ch == ' ' || ch == ' ') { buf[i] = '