串口(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
相關文章
相關標籤/搜索