清除串口缓冲区内容

支持芯片: SHMICTRL系列芯片 ESP32-S3系列
void clearcom(int usartn);
//usartn =0 or 1 串口编号

示例

clearcom(0);

说明