目的:在keil5中实现串口打印,debug信号 方法:
首先安装串口调试工具
添加#include <stdio.h>
重定向fputc函数:int fputc(int ch, FILE *f) ,得写内容例如
使用printf函数即可