MDK Keil关于什么时候定义STM32F10X_MD,USE_STDPERIPH_DRIVER

简单来说:

1. STM32F10X_MD

  • 作用:指定 STM32F10x 系列中的 中等密度(Medium Density) 微控制器型号。

2. USE_STDPERIPH_DRIVER

  • 作用:启用 标准外设库,允许你使用 STM32 提供的一套高层次 API(如 GPIO_Init()USART_Init() 等)来操作外设。如果使用的是寄存器开发,则不需要定义。

总结:

  • STM32F10X_MD:指定 STM32F10x 系列中等密度型号(只在使用标准外设库时需要)。

  • USE_STDPERIPH_DRIVER:启用标准外设库,提供一套高层 API 操作外设。

Build started: Project: deepone *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\Program Files\MDK\Core\ARM\ARMCC\Bin' Build target 'Target 1' compiling main.c... D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h(8302): error: #5: cannot open source input file "stm32f10x_conf.h": No such file or directory #include "stm32f10x_conf.h" main.c: 0 warnings, 1 error compiling misc.c... D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h(8302): error: #5: cannot open source input file "stm32f10x_conf.h": No such file or directory #include "stm32f10x_conf.h" D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\Device\StdPeriph_Driver\src\misc.c: 0 warnings, 1 error compiling stm32f10x_gpio.c... D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h(8302): error: #5: cannot open source input file "stm32f10x_conf.h": No such file or directory #include "stm32f10x_conf.h" D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\Device\StdPeriph_Driver\src\stm32f10x_gpio.c: 0 warnings, 1 error compiling GPIO_STM32F10x.c... D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h(8302): error: #5: cannot open source input file "stm32f10x_conf.h": No such file or directory #include "stm32f10x_conf.h" D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\RTE_Driver\GPIO_STM32F10x.c: 0 warnings, 1 error compiling stm32f10x_rcc.c... D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h(8302): error: #5: cannot open source input file "stm32f10x_conf.h": No such file or directory #include "stm32f10x_conf.h" D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\Device\StdPeriph_Driver\src\stm32f10x_rcc.c: 0 warnings, 1 error ".\Objects\deepone.axf" - 5 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:01
03-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值