其他分享
首页 > 其他分享> > STM32建库工程模板

STM32建库工程模板

作者:互联网

 1。建四个文件夹 USER OBJ CORE FWLIB如图:

 
2.在USER中放

 其main.c    stm32f10x_conf.h     stm32f10x_it.c     stm32f10x_it.h     system_stm32f10x.c
 
main.c: 主函数
stm32f10x_conf.h :包含外设.h文件
 stm32f10x_it.c    stm32f10x_it.h:编写中断服务函数
system_stm32f10x.c :提供了系统初始化SystemInit(): ,还有系统滴答初始化,变量SystemCoreClock variable:的设置 
打开到:

拷贝到USER中

3.在CORE中,放core_cm3.c    core_cm3.h    startup_stm32f10x_hd.s


 core_cm3.c    core_cm3.h:内核文件

 startup_stm32f10x_hd.s:启动文件

4.在FWLIB中放二个文件夹  inc  src

 
在后面的知识中,慢慢介绍着二个文件夹

标签:core,stm32f10x,startup,STM32,文件夹,USER,cm3,模板,建库
来源: https://www.cnblogs.com/lailai518/p/14892369.html