在STM32CUBEMX生成的串口通信代码里实现printf输出

/* USER CODE BEGIN PV */ #include "stdio.h" #ifdef __GNUC__ #define PUTCHAR_PROTOTYPE int __io_putchar(int ch) #else #define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f) #endif PUTCHAR_PROTOTYPE {
相关文章
相关标签/搜索