摘要: 串口发送 重写fputc函数 /* 优点 直接使用printf函数,发送数据长度无限制,不需要额外的数组空间 缺点 只能对应一个串口,暂时没想到解决方案 */ //头文件中要包含 stdio.h 然后就可以正常使用printf了 int fputc(int ch ,FILE *F) { HAL_UA 阅读全文
posted @ 2020-07-23 17:37 chilkings 阅读(3120) 评论(0) 推荐(0)