2、ST的STM32的库从3.0开始兼容SMSIS,名字也变为STM32F10xxx standard peripheral library(STM32F10xxx标准外设库)。之前的版本名字叫STM32F10xxx firmware library(STM32F10xxx固件库)。
3、STM32F10xxx firmware library:It is a collection of routines, data structures and macros that covers the features of all peripherals. It includes drivers and a set of examples for all the standard device peripherals.
4、STM32F10xxx standard peripheral library(STM32F10xxx标准外设库)在STM32F10xxx firmware library的基础上有如下升级:兼容CMSIS,源文件以Doxygen的格式提供。
5、建立新项目的时候,可以以STM32F10xxx standard peripheral library里面的Template为模板,加以配置,来开始新项目。
6、但由于STM32F10xxx standard peripheral library的通用性,必然带来一些性能的下降,所以在性能要求严格的场合,可使用直接访问寄存器的方法进行外设的配置、访问。
Since the Standard Peripherals Library is generic and covers all peripheral functionalities, the size and/or execution speed of the application code may not be optimized. For many applications, the library may be used as is. However, for applications having tough constraints in terms of code size and/or execution speed, the library drivers should be used as a reference on how to configure the peripheral and tailor them to specific application requirements