printf函数重定向【stm32】— > fputc()
#include "stm32f10x.h" #include "stdio.h" static GPIO_InitTypeDef GPIO_InitStructure; static NVIC_InitTypeDef NVIC_InitStructure;
#include "stm32f10x.h" #include "stdio.h" static GPIO_InitTypeDef GPIO_InitStructure; static NVIC_InitTypeDef NVIC_InitStructure;
#include "stm32f10x.h" #include "sys.h" static GPIO_InitTypeDef GPIO_InitStructure; static TIM_TimeBaseInitTypeDef TIM_TimeBaseStructure