拘束的意思
STM32F10X_XX宏定义的选择及含义
IAR编译器中STM32F10X_XX宏定义的选择
美赛官网
dumbledore其中USE_STDPERIPH_DRIVER和STM32F10X_HD什么意思?
(1)USE_STDPERIPH_DRIVER
to u or not the peripheral’s drivers in application code (i.e. code will be bad on direct access to peripheral’s registers rather than drivers API) , this option is controlled by the #define USE_STDPERIPH_DRIVER
上海培训班即这个定义控制了是否在应⽤中启⽤外设驱动。我们使⽤标准外设库本来就为了⽅便控制外设,所以要添加这个定义,以启⽤外设驱动。
(2)STM32F10X_HD
如果你使⽤stm32f10x_stdperiph_lib,会发现在stm32f10x.h⽂件会有⼀段关于宏选择的代码,如:
#if !defined (STM32F10X_LD) && !defined (STM32F10X_MD) && !defined (STM32F10X_HD) && !defined (STM32F10X_CL)
/* #define STM32F10X_LD */ /*!< STM32F10X_LD: STM32 Low density devices */chine food
/* #define STM32F10X_MD */ /*!< STM32F10X_MD: STM32 Medium density devices */
初三数学教案/* #define STM32F10X_HD */ /*!< STM32F10X_HD: STM32 High density devices */
#define STM32F10X_CL /*!< STM32F10X_CL: STM32 Connectivity line devices */
#endif
camel toe⾄于要使⽤哪个宏,则需要根据具体的芯⽚来进⾏选择。如果是STM32F105xx和STM32F107xx,是Connectivity Line Devices,则宏定义选择的是STM32F10X_CL;如果是别的型号,则根据FLASH的容量来进⾏选择。可能⽂字写的有点不太清楚,还是以表格来说明:
宏MCU 型号FLASH⼤⼩
STM32F10X_LD STM32F101xx
天津环球雅思
皮肤毛孔大怎么办STM32F102xx
STM32F103xx
16 ~ 32 Kbytes
STM32F10X_MD STM32F101xx
STM32F102xx
STM32F103xx
64 ~ 128 Kbytes
STM32F10X_HD STM32F101xx
STM32F103xx
256 ~ 512 Kbytes
STM32F10X_CL STM32F105xx
STM32F107xx
盛行忽略