串口(printf)重定向

本文对应的开发板是:stm32函数 在kail环境中(参考野火f429源代码):ui #include<stdio.h> //重写printf的底层函数fputc int fputc(int ch, FILE *f) { /* 等待串口发送寄存器为空 */ while (USART_GetFlagStatus(DEBUG_USART, USART_FLAG_TXE) == RE
相关文章
相关标签/搜索