STM32标准外设库中USE_STDPERIPH_DRIVER, STM32F10X_MD的含义
来源:互联网 发布:淘宝订单支付方式记录 编辑:程序博客网 时间:2024/04/30 07:58
这两个的作用是什么呢?
1、 USE_STDPERIPH_DRIVER : to use or not the peripheral’s drivers in application code (i.e. code will be based on direct access to peripheral’s registers rather than drivers API) , this option is controlled by the#define USE_STDPERIPH_DRIVER
即这个定义控制了是否在应用中启用外设驱动。我们使用标准外设库本来就为了方便控制外设,所以要添加这个定义,以启用外设驱动。
2、STM32F10X_MD:
STM32有几个大类:
/* #define STM32F10X_LD_VL */ /*!< STM32 Low density Value line devices */ /* #define STM32F10X_LD */ /*!< STM32 Low density devices */ /* #define STM32F10X_MD_VL */ /*!< STM32 Medium density Value line devices */ /* #define STM32F10X_MD */ /*!< STM32 Medium density devices */ /* #define STM32F10X_HD_VL */ /*!< STM32 High density Value line devices */ /* #define STM32F10X_HD */ /*!< STM32 High density devices */ /* #define STM32F10X_XL */ /*!< STM32 XL density devices */ /* #define STM32F10X_CL */ /*!< STM32 Connectivity line devices */
每种类别都有所区别,例如sram或者flash或者外设数量不一样,所以stm32标准外设库必须根据你使用的处理器来做相应的预处理。
This define will control the declaration of the following part of the Standard Peripherals library:
- IRQ channel definition
- Peripheral memory mapping and physical registers address definition
- Peripheral pointer declaration and driver header file inclusion
- Product miscellaneous configuration: external quartz (HSE) value…
- Peripheral with Features w/ different/incompatible implementation across the family
Note :This define doesn’t apply to peripheral drivers, these drivers are always supporting features of the family’s superset.
User has only to select which device he will use by controlling preprocessor define declared instm32f10x.h file ( No selected device bydefault) then the library will be configured accordingly。
这两个定义都在stm32f10x.h里面,可以在这里面做定义(把注释去掉),不一定非要在option->C/C++那里添加.
- STM32标准外设库中USE_STDPERIPH_DRIVER, STM32F10X_MD的含义
- STM32标准外设库中USE_STDPERIPH_DRIVER, STM32F10X_MD的含义
- stm32标准外设库中USE_STDPERIPH_DRIVER, STM32F10X_MD的含义
- 关于STM32标准外设库中的 USE_STDPERIPH_DRIVER, STM32F10X_MD
- 关于STM32 MDK中USE_STDPERIPH_DRIVER问题及 STM32F10X_LD STM32F10X_MD STM32F10X_HD STM32F10X_CL宏定义的选择
- STM32标准外设库
- STM32标准外设库介绍
- STM32的USE_STDPERIPH_DRIVER
- stm32标准外设库使用详解
- stm32标准外设库使用详解 .
- stm32标准外设库使用详解
- stm32标准外设库使用详解
- stm32标准外设库使用详解
- stm32标准外设库使用详解
- stm32标准外设库使用详解
- 关于STM32 MDK中USE_STDPERIPH_DRIVER问题的解释
- 关于STM32 MDK中USE_STDPERIPH_DRIVER问题的解释(转)
- 关于STM32 MDK中USE_STDPERIPH_DRIVER问题的解释
- 提高题3-2
- jsonp导致程序的“异步”
- 高效的位运算
- Python
- Mac OS X 下sublime text3中编译执行Java程序的环境配置
- STM32标准外设库中USE_STDPERIPH_DRIVER, STM32F10X_MD的含义
- python 异常
- 混合高斯模型GMM
- c# 调取微信扫一扫接口
- LIGHTOJ 1410 - Consistent Verdicts【SET】
- 分享原生js代码实现图片放大境效果
- Java访问权限详解
- iOS:用UIWebView加载网页,退出控制器内存不减,每次加载持续增涨(内存警告)
- CorelDRAW中页面顺序该如何更改和管理