清除串口缓冲区内容

void clearcom(int usartn);
//usartn =0 or 1 串口编号

示例

clearcom(0);

说明