STM32新建工程出现已包含“stm32f10x.h”头文件但依然提示部分固件库变量未定义的问题
进入"stm32f10x.h"里面,有出现下列条件编译:
#ifdef USE_STDPERIPH_DRIVER
#include "stm32f10x_conf.h"
#endif
其中"stm32f10x_conf.h"含了所有固件库的头文件,如下图所示:
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __STM32F10x_CONF_H
#define __STM32F10x_CONF_H
/* Includes ------------------------------------------------------------------*/
/*