STM32F103标准库开发—目录
Uart 串口调试助手+串口驱动 点击下载
一、printf()函数重定向
方法一:使用MicroLIB库
1. 勾选 Use MicroLIB
具体如下图所示:
2. 重定向 fputc 函数
具体代码如下:
#include <stdio.h>//需要调用stdio.h文件
/**********************printf重定向****************************/
int
STM32F103标准库开发—目录
Uart 串口调试助手+串口驱动 点击下载
具体如下图所示:
具体代码如下:
#include <stdio.h>//需要调用stdio.h文件
/**********************printf重定向****************************/
int