摘要:
#include <stdio.h>头文件#ifdef __GNUC__#define PUTCHAR_PROTOTYPE int __io_putchar(int ch)#else#define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f)#endifPUTCHAR_PROTOTYPE{USART_SendData(EVAL_COM1, (uint8_t) ch);while (USART_GetFlagStatus(EVAL_COM1, USART_FLAG_TC) == RESET){}return ch;}定义了以上的然后就可以调
阅读全文