MDK中Preprocessor Symbols是什么东西,为什么加上才可以通过编译

[复制链接]
 楼主| sunmeat 发表于 2014-8-24 19:13 | 显示全部楼层 |阅读模式
如题,在GD32中,必须在Preprocessor Symbols的Define中加上USE_STDPERIPH_DRIVER才可以通过编译,否则就不可以,这是为什么呢?
 楼主| sunmeat 发表于 2014-8-24 19:15 | 显示全部楼层
在文件中找到这样的宏定义,#if !defined  USE_STDPERIPH_DRIVER
/**
* @brief Comment the line below if you will not use the peripherals drivers.
   In this case, these drivers will not be included and the application code will
   be based on direct access to peripherals registers
   */
  /*#define USE_STDPERIPH_DRIVER*/
#endif /* USE_STDPERIPH_DRIVER */
 楼主| sunmeat 发表于 2014-8-27 08:41 | 显示全部楼层
https://bbs.21ic.com/icview-791644-1-1.html
STM32F0xx的头文件USE_STDPERIPH_DRIVER宏的作用,网上找到的一篇**,完美解决我的这个问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则

208

主题

2132

帖子

13

粉丝
快速回复 在线客服 返回列表 返回顶部