STM32F10x Standard Peripherals Firmware Library

STM32F10x Standard Peripherals Firmware Library(STM32F10x标准外设固件库)

The STM32F10x Standard Peripherals Library is a complete package, consisting of device drivers for all of the standard device peripherals, for STM32 Value line(High, Medium and Low), Connectivity line, XL-, High-, Medium- and Low- Density Devices 32-bit Flash microcontrollers.

 STM32F10x Standard Peripherals Library 是一个完整的包,包括所有标准外设的设备驱动,且适用于STM32整个价值线(value line产品系列?),连接线(什么是connectivity连接线?),加大码、高、中、低密度的32位flash微控制器。

This library is a firmware package which contains a collection of routines, data structures and macros covering the features of STM32 peripherals. It includes a description of the device drivers plus a set of examples for each peripheral. The firmware library allows any device to be used in the user application without the need for in-depth study of each peripheral’s specifications.

 函数库是一个固件包,含有表征STM32外设特征的例程(routines),数据结构和宏(macros)。针对每个外设都包括设备描述与一些例子程序。这个固件函数库可以在应用程序开发时不需要深入理解每个外设的特征(说明书)。

Using the Standard Peripherals Library has two advantages: it saves significant time that would otherwise be spent in coding, while simultaneously reducing application development and integration costs.

 The STM32F10x Standard Peripherals Library is full CMSIS compliant. 完全支持CMSIS。
ARM Cortex™ 微控制器软件接口标准(CMSIS:Cortex Microcontroller Software Interface Standard) 是 Cortex-M 处理器系列的与供应商无关的软件抽象层。 使用CMSIS,可以为处理器和外设实现一致且简单的软件接口,从而简化软件的重用、缩短微控制器新开发人员的学习过程,并缩短新设备的上市时间。软件的创建被嵌入式行业公认为主要成本系数。通过在所有Cortex-M 芯片供应商产品中标准化软件接口,这一成本会明显降低,尤其是在创建新项目或将现有软件迁移到新设备时。最新版本的CMSIS为3.5。
以上是对STM32F10x标准外设固件库的简介。具体对此函数库的深入学习,先提供以下资料链接。
1、ST公司官网:http://www2.st.com/content/st_com/en.html,搜索并下载STSW-STM32054
2、百度云盘下载:http://pan.baidu.com/s/1pL8DTb1

今后有对STM32固件库的学习,在此博文更新。
STM32固件库配置底层寄存器原理:
1、固件库将外设的所有寄存器配置字进行宏定义,并封装在结构体或枚举变量中
2、用户调用相应的固件库函数时,会根据用户传入的参数(宏定义的参数值)写入封装好的结构体变量中,再根据结构体变量的地址写入寄存器,完成对寄存器的配置。
参考原文:《STM32自学笔记》P353
对固件库的深入学习的要点是:
1、弄明白各个外设的工作原理以及如何配置其寄存器
2、根据以上知识去理解为什么在固件库中会定义相应的宏、结构体和函数,还有可以经一步分析出宏定义的值是如何根据外设寄存器的配置原理来设置的。
提供STM3210X固件库中文版下载链接:http://pan.baidu.com/s/1slaK3Ml
STM32F103RBTC的中文数据手册:http://pan.baidu.com/s/1pLJ3QZL
STM32F103RBTC的英文数据手册:http://pan.baidu.com/s/1nvH6gkx
posted @ 2016-04-22 10:55  LoveYaner  阅读(1498)  评论(0编辑  收藏  举报