stm32 串口重定向使用printf

1,#include "stdio.h" 2,重寫宏 int fputc(int ch, FILE *f) {         /* ·¢ËÍÒ»¸ö×Ö½ÚÊý¾Ýµ½USART1 */         USART_SendData(USART3, (uint8_t) ch);                  /* µÈ´ý·¢ËÍÍê±Ï */         while (USART_Ge
相關文章
相關標籤/搜索