活动介绍

E:\1-1.c(8): warning: #223-D: function "HAL_GPIO_ReadPin" declared implicitly

时间: 2025-07-26 21:36:52 浏览: 38
<think>我们正在解决一个C语言编译警告:E:\1-1.c(8):warning #223-D: function'HAL_GPIO_ReadPin'declared implicitly这个警告的意思是:函数'HAL_GPIO_ReadPin'被隐式声明。在C语言中,当调用一个函数之前没有看到它的声明或定义时,编译器会进行隐式声明(假设函数返回int类型,参数类型由实际调用参数推导)。这可能导致错误,特别是当函数实际返回类型不是int或参数不匹配时。根据引用[1]和引用[2]的类似问题,以及引用[4]的解释,这个警告通常有两个原因:1.没有包含声明该函数的头文件。2.包含了头文件,但头文件中没有正确声明该函数(或者函数名拼写错误,或者条件编译导致声明未被包含)。具体到'HAL_GPIO_ReadPin'函数,它是STM32 HAL库中用于读取GPIO引脚状态的函数。因此,正确的解决步骤应该是:步骤1:确保包含了正确的头文件该函数声明在stm32f1xx_hal_gpio.h中(具体型号可能略有不同,如f1xx可能是f4xx等)。因此,在调用该函数的源文件(1-1.c)中,应该包含:#include"stm32f1xx_hal_gpio.h"步骤2:检查头文件路径确保头文件所在的目录已经包含在编译器的头文件搜索路径中。在Keil中,可以通过以下步骤设置:-右键点击工程-> Optionsfor Target-> C/C++-> IncludePaths添加包含头文件的目录。步骤3:检查宏定义根据引用[3],STM32的外设库通常需要通过宏定义来启用。例如,使用HAL库需要定义USE_HAL_DRIVER,同时还要定义芯片型号(如STM32F103xE)。这些宏定义通常在编译器的预定义符号中设置。-在Keil中:Optionsfor Target-> C/C++-> Preprocessor Symbols-> Define中添加:USE_HAL_DRIVER, STM32F103xE(根据实际芯片型号选择)步骤4:检查函数名拼写在头文件中检查函数名是否拼写正确。根据引用[2]的经验,有时可能是函数名拼写错误(比如将Data写成Date)。因此,检查头文件中的函数声明是否与调用一致。在stm32f1xx_hal_gpio.h中,应该有以下声明:GPIO_PinStateHAL_GPIO_ReadPin(GPIO_TypeDef*GPIOx, uint16_tGPIO_Pin);步骤5:检查函数调用确保调用函数时参数类型和数量正确。HAL_GPIO_ReadPin需要两个参数:GPIO端口(如GPIOA)和引脚号(如GPIO_PIN_0)。步骤6:如果以上步骤都正确,考虑重新生成HAL库配置如果是使用STM32CubeMX生成的代码,可以尝试重新生成并替换相关文件。示例代码:#include"stm32f1xx_hal.h"//这个头文件通常会包含所有HAL模块的头文件,包括hal_gpio.h//或者直接包含 #include "stm32f1xx_hal_gpio.h"int main(void){HAL_Init();//...初始化GPIO等GPIO_PinState pinState =HAL_GPIO_ReadPin(GPIOA,GPIO_PIN_0);//...}注意:如果只包含"stm32f1xx_hal.h",它内部会包含所有已启用的外设头文件(包括hal_gpio.h),所以通常不需要单独包含hal_gpio.h。但前提是已经通过宏定义启用了GPIO模块(默认是启用的)。如果问题仍然存在,请检查是否在包含头文件之前调用了函数。确保在调用函数之前有函数声明(即头文件包含在调用之前)。引用[3]中提到的USE_STDPERIPH_DRIVER是针对标准外设库(StdPeriph)的,而HAL库对应的是USE_HAL_DRIVER。所以这里我们应该使用USE_HAL_DRIVER。因此,总结解决方法:1.在1-1.c文件开头包含HAL GPIO头文件:`#include"stm32f1xx_hal_gpio.h"`2.在编译器预定义中添加USE_HAL_DRIVER和芯片型号宏(如STM32F103xE)。3.检查头文件路径。如果用户使用的是标准外设库(StdPeriph),那么函数可能是`GPIO_ReadInputDataBit`,对应的头文件是`stm32f10x_gpio.h`,预定义宏是USE_STDPERIPH_DRIVER。但根据函数名'HAL_GPIO_ReadPin',可以确定是HAL库,因此按上述步骤处理。相关问题:1.如何正确配置STM32HAL库的编译环境?2.在Keil MDK中如何设置全局宏定义?3.隐式函数声明会导致哪些运行时错误?4.STM32 HAL库与标准外设库在函数命名上有何区别?注意:在引用中,我们参考了[1][2][3][4]的类似问题和解决方法,但具体到这个函数,我们按照HAL库的配置来处理。</think>### 解决 `warning #223-D: function 'HAL_GPIO_ReadPin' declared implicitly` 警告 此警告表示编译器在调用 `HAL_GPIO_ReadPin` 函数时未找到其声明。以下是系统化的解决方案: #### 1. **包含正确的头文件**(最常见原因) - 添加 HAL 库的 GPIO 头文件: ```c #include "stm32fxxx_hal_gpio.h" // 替换 xxx 为你的芯片系列(如 f1/f4/f7) ``` - 若不确定芯片系列,可包含通用 HAL 头文件: ```c #include "stm32fxxx_hal.h" // 包含所有 HAL 模块 ``` #### 2. **检查全局宏定义**(关键步骤) 在工程配置中添加必需的宏定义: - **Keil MDK**: 1. 右键工程 → `Options for Target` → `C/C++` 选项卡 2. 在 `Define` 输入框添加(以 STM32F103 为例): ``` USE_HAL_DRIVER, STM32F103xE ``` ![Keil 宏定义设置](https://i.imgur.com/5XrRk9M.png) [^3] - **其他 IDE**: 在编译参数中添加: ```bash -DUSE_HAL_DRIVER -DSTM32F103xE ``` #### 3. **验证函数声明** 在头文件中检查函数声明: ```c // stm32fxxx_hal_gpio.h 中应有: GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin); ``` 若声明缺失: - 重新安装/更新 HAL 库 - 检查文件路径是否正确 #### 4. **检查调用语法** 确保调用参数匹配: ```c // 正确调用方式(两个参数:端口 + 引脚号) GPIO_PinState state = HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_5); ``` #### 5. **验证头文件包含顺序** 确保 HAL 头文件在用户代码之前: ```c // 正确顺序 #include "stm32f1xx_hal.h" // HAL 库 #include "your_header.h" // 用户头文件 ``` #### 根本原因分析 - **隐式声明**:当编译器未找到函数声明时,会假设函数返回 `int` 类型,导致潜在的类型不匹配风险。 - **HAL 库机制**:STM32 HAL 库通过 `USE_HAL_DRIVER` 宏控制函数声明的启用[^3]。 - **芯片标识**:`STM32F103xE` 等宏确保正确定位芯片专属外设。 ### 相关问题 1. 如何验证 STM32 HAL 库的版本兼容性? 2. `USE_HAL_DRIVER` 宏在 HAL 库内部如何控制函数声明? 3. STM32 不同系列(F1/F4/F7)的 HAL 库函数有何差异? 4. 当出现多个未声明函数警告时,如何批量解决?
阅读全文

相关推荐

*** Using Compiler 'V5.06 update 5 (build 528)', folder: 'D:\Keil_v5\ARM\ARMCC\Bin' Rebuild target 'Target 1' assembling startup_stm32f10x_md.s... compiling core_cm3.c... compiling stm32f10x_it.c... compiling main.c... User\main.c(3): error: #5: cannot open source input file "ssd1306.h": No such file or directory #include "ssd1306.h" User\main.c: 0 warnings, 1 error compiling dht11.c... User\dht11.c(12): error: #20: identifier "GPIO_PIN_0" is undefined .Pin = HT11_PIN, User\dht11.c(13): error: #20: identifier "GPIO_MODE_OUTPUT_OD" is undefined .Mode = GPIO_MODE_OUTPUT_OD, User\dht11.c(14): error: #20: identifier "GPIO_PULLUP" is undefined .Pull = GPIO_PULLUP, User\dht11.c(15): error: #20: identifier "GPIO_SPEED_FREQ_LOW" is undefined .Speed = GPIO_SPEED_FREQ_LOW User\dht11.c(12): error: #136: struct "<unnamed>" has no field "Pin" .Pin = DHT11_PIN, User\dht11.c(17): warning: #223-D: function "HAL_GPIO_Init" declared implicitly HAL_GPIO_Init(DHT11_PORT, &GPIO_InitStruct); User\dht11.c(18): warning: #223-D: function "HAL_GPIO_WritePin" declared implicitly HAL_GPIO_WritePin(DHT11_PORT, DHT11_PIN, GPIO_PIN_SET); User\dht11.c(18): error: #20: identifier "GPIO_PIN_SET" is undefined HAL_GPIO_WritePin( HT11_PORT, HT11_PIN, GPIO_PIN_SET); User\dht11.c(27): warning: #223-D: function "HAL_GPIO_WritePin" declared implicitly HAL_GPIO_WritePin(DHT11_PORT, DHT11_PIN, GPIO_PIN_RESET); User\dht11.c(27): error: #20: identifier "GPIO_PIN_0" is undefined HAL_GPIO_WritePin( HT11_PORT, HT11_PIN, GPIO_PIN_RESET); User\dht11.c(27): error: #20: identifier "GPIO_PIN_RESET" is undefined HAL_GPIO_WritePin( HT11_PORT, HT11_PIN, GPIO_PIN_RESET); User\dht11.c(29): error: #20: identifier "GPIO_PIN_SET" is undefined HAL_GPIO_WritePin( HT11_PORT, HT11_PIN, GPIO_PIN_SET); User\dht11.c(35): error: #20: identifier "GPIO_MODE_INPUT" is undefined .Mode = GPIO_MODE_INPUT, User\dht11.c(36): error: #20: identifier "GPIO_PULLUP" is undefined .Pull = GPIO_PULLUP User\dht11.c(34): error: #136: struct "<unnamed>" has no field "Pin" .Pin = DHT11_PIN, User\dht11.c(38): warning: #223-D: function "HAL_GPIO_Init" declared implicitly HAL_GPIO_Init(DHT11_PORT, &GPIO_InitStruct); User\dht11.c(41): warning: #223-D: function "HAL_GPIO_ReadPin" declared implicitly if(HAL_GPIO_ReadPin(DHT11_PORT, DHT11_PIN) != GPIO_PIN_RESET) return 0; User\dht11.c(43): warning: #223-D: function "HAL_GPIO_ReadPin" declared implicitly if(HAL_GPIO_ReadPin(DHT11_PORT, DHT11_PIN) != GPIO_PIN_SET) return 0; User\dht11.c(49): warning: #223-D: function "HAL_GPIO_ReadPin" declared implicitly while(HAL_GPIO_ReadPin(DHT11_PORT, DHT11_PIN) == GPIO_PIN_RESET); User\dht11.c(52): warning: #223-D: function "HAL_GPIO_ReadPin" declared implicitly if(HAL_GPIO_ReadPin(DHT11_PORT, DHT11_PIN) == GPIO_PIN_SET) User\dht11.c(55): warning: #223-D: function "HAL_GPIO_ReadPin" declared implicitly while(HAL_GPIO_ReadPin(DHT11_PORT, DHT11_PIN) == GPIO_PIN_SET); User\dht11.c: 9 warnings, 12 errors compiling misc.c... compiling system_stm32f10x.c... compiling stm32f10x_adc.c... compiling stm32f10x_bkp.c... compiling stm32f10x_cec.c... compiling stm32f10x_can.c... compiling stm32f10x_dbgmcu.c... compiling stm32f10x_crc.c... compiling stm32f10x_dac.c... compiling stm32f10x_dma.c... compiling stm32f10x_exti.c... compiling stm32f10x_fsmc.c... compiling stm32f10x_gpio.c... compiling stm32f10x_flash.c... compiling stm32f10x_i2c.c... compiling stm32f10x_pwr.c... compiling stm32f10x_rcc.c... compiling stm32f10x_iwdg.c... compiling stm32f10x_rtc.c... compiling stm32f10x_sdio.c... compiling stm32f10x_spi.c... compiling stm32f10x_wwdg.c... compiling stm32f10x_usart.c... compiling stm32f10x_tim.c... ".\Output\工程模板.axf" - 13 Error(s), 9 Warning(s). Target not created. Build Time Elapsed: 00:00:02

Build started: Project: iSO-STM32 *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Build target '代码模板' compiling main.c... ..\..\User\main.c(3): error: #5: cannot open source input file "lcd.h": No such file or directory #include "lcd.h" ..\..\User\main.c: 0 warnings, 1 error compiling system_stm32f10x.c... compiling misc.c... ..\..\Libraries\FWlib\src\misc.c(99): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_NVIC_PRIORITY_GROUP(NVIC_PriorityGroup)); ..\..\Libraries\FWlib\src\misc.c(117): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NVIC_InitStruct->NVIC_IRQChannelCmd)); ..\..\Libraries\FWlib\src\misc.c(159): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_NVIC_VECTTAB(NVIC_VectTab)); ..\..\Libraries\FWlib\src\misc.c(178): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_NVIC_LP(LowPowerMode)); ..\..\Libraries\FWlib\src\misc.c(202): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_SYSTICK_CLK_SOURCE(SysTick_CLKSource)); ..\..\Libraries\FWlib\src\misc.c: 5 warnings, 0 errors compiling stm32f10x_rcc.c... ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(273): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_HSE(RCC_HSE)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(338): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_CALIBRATION_VALUE(HSICalibrationValue)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(357): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(383): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_PLL_SOURCE(RCC_PLLSource)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(404): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(568): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_SYSCLK_SOURCE(RCC_SYSCLKSource)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(612): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_HCLK(RCC_SYSCLK)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(638): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_PCLK(RCC_HCLK)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(664): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_PCLK(RCC_HCLK)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(703): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_IT(RCC_IT)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(731): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_USBCLK_SOURCE(RCC_USBCLKSource)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(770): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_ADCCLK(RCC_PCLK2)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(832): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_LSE(RCC_LSE)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(865): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(882): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_RTCCLK_SOURCE(RCC_RTCCLKSource)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(896): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(1067): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_AHB_PERIPH(RCC_AHBPeriph)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(1098): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(1129): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(1188): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(1219): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(1240): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(1253): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(1285): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_MCO(RCC_MCO)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(1332): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_FLAG(RCC_FLAG)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(1406): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_GET_IT(RCC_IT)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c(1451): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_CLEAR_IT(RCC_IT)); ..\..\Libraries\FWlib\src\stm32f10x_rcc.c: 27 warnings, 0 errors compiling stm32f10x_gpio.c... ..\..\Libraries\src\stm32f10x_gpio.c(111): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\src\stm32f10x_gpio.c(178): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\src\stm32f10x_gpio.c(286): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\src\stm32f10x_gpio.c(308): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\src\stm32f10x_gpio.c(324): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\src\stm32f10x_gpio.c(346): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\src\stm32f10x_gpio.c(361): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\src\stm32f10x_gpio.c(377): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\src\stm32f10x_gpio.c(397): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\src\stm32f10x_gpio.c(420): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\src\stm32f10x_gpio.c(437): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\src\stm32f10x_gpio.c(466): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_EVENTOUT_PORT_SOURCE(GPIO_PortSource)); ..\..\Libraries\src\stm32f10x_gpio.c(486): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); ..\..\Libraries\src\stm32f10x_gpio.c(554): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_REMAP(GPIO_Remap)); ..\..\Libraries\src\stm32f10x_gpio.c(613): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_EXTI_PORT_SOURCE(GPIO_PortSource)); ..\..\Libraries\src\stm32f10x_gpio.c(632): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ETH_MEDIA_INTERFACE(GPIO_ETH_MediaInterface)); ..\..\Libraries\src\stm32f10x_gpio.c: 16 warnings, 0 errors compiling stm32f10x_rcc.c... ..\..\Libraries\src\stm32f10x_rcc.c(273): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_HSE(RCC_HSE)); ..\..\Libraries\src\stm32f10x_rcc.c(338): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_CALIBRATION_VALUE(HSICalibrationValue)); ..\..\Libraries\src\stm32f10x_rcc.c(357): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); ..\..\Libraries\src\stm32f10x_rcc.c(383): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_PLL_SOURCE(RCC_PLLSource)); ..\..\Libraries\src\stm32f10x_rcc.c(404): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); ..\..\Libraries\src\stm32f10x_rcc.c(568): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_SYSCLK_SOURCE(RCC_SYSCLKSource)); ..\..\Libraries\src\stm32f10x_rcc.c(612): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_HCLK(RCC_SYSCLK)); ..\..\Libraries\src\stm32f10x_rcc.c(638): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_PCLK(RCC_HCLK)); ..\..\Libraries\src\stm32f10x_rcc.c(664): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_PCLK(RCC_HCLK)); ..\..\Libraries\src\stm32f10x_rcc.c(703): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_IT(RCC_IT)); ..\..\Libraries\src\stm32f10x_rcc.c(731): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_USBCLK_SOURCE(RCC_USBCLKSource)); ..\..\Libraries\src\stm32f10x_rcc.c(770): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_ADCCLK(RCC_PCLK2)); ..\..\Libraries\src\stm32f10x_rcc.c(832): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_LSE(RCC_LSE)); ..\..\Libraries\src\stm32f10x_rcc.c(865): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); ..\..\Libraries\src\stm32f10x_rcc.c(882): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_RTCCLK_SOURCE(RCC_RTCCLKSource)); ..\..\Libraries\src\stm32f10x_rcc.c(896): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); ..\..\Libraries\src\stm32f10x_rcc.c(1067): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_AHB_PERIPH(RCC_AHBPeriph)); ..\..\Libraries\src\stm32f10x_rcc.c(1098): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph)); ..\..\Libraries\src\stm32f10x_rcc.c(1129): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph)); ..\..\Libraries\src\stm32f10x_rcc.c(1188): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph)); ..\..\Libraries\src\stm32f10x_rcc.c(1219): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph)); ..\..\Libraries\src\stm32f10x_rcc.c(1240): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); ..\..\Libraries\src\stm32f10x_rcc.c(1253): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); ..\..\Libraries\src\stm32f10x_rcc.c(1285): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_MCO(RCC_MCO)); ..\..\Libraries\src\stm32f10x_rcc.c(1332): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_FLAG(RCC_FLAG)); ..\..\Libraries\src\stm32f10x_rcc.c(1406): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_GET_IT(RCC_IT)); ..\..\Libraries\src\stm32f10x_rcc.c(1451): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_CLEAR_IT(RCC_IT)); ..\..\Libraries\src\stm32f10x_rcc.c: 27 warnings, 0 errors compiling stm32f10x_gpio.c... ..\..\Libraries\FWlib\src\stm32f10x_gpio.c(111): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\FWlib\src\stm32f10x_gpio.c(178): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\FWlib\src\stm32f10x_gpio.c(286): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\FWlib\src\stm32f10x_gpio.c(308): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\FWlib\src\stm32f10x_gpio.c(324): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\FWlib\src\stm32f10x_gpio.c(346): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\FWlib\src\stm32f10x_gpio.c(361): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\FWlib\src\stm32f10x_gpio.c(377): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\FWlib\src\stm32f10x_gpio.c(397): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\FWlib\src\stm32f10x_gpio.c(420): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\FWlib\src\stm32f10x_gpio.c(437): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..\..\Libraries\FWlib\src\stm32f10x_gpio.c(466): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_EVENTOUT_PORT_SOURCE(GPIO_PortSource)); ..\..\Libraries\FWlib\src\stm32f10x_gpio.c(486): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); ..\..\Libraries\FWlib\src\stm32f10x_gpio.c(554): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_REMAP(GPIO_Remap)); ..\..\Libraries\FWlib\src\stm32f10x_gpio.c(613): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_EXTI_PORT_SOURCE(GPIO_PortSource)); ..\..\Libraries\FWlib\src\stm32f10x_gpio.c(632): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ETH_MEDIA_INTERFACE(GPIO_ETH_MediaInterface)); ..\..\Libraries\FWlib\src\stm32f10x_gpio.c: 16 warnings, 0 errors compiling core_cm3.c... compiling stm32f10x_tim.c... ..\..\Libraries\src\stm32f10x_tim.c(125): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(231): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(284): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST8_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(367): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST6_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(449): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(528): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(590): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_CHANNEL(TIM_ICInitStruct->TIM_Channel)); ..\..\Libraries\src\stm32f10x_tim.c(659): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST6_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(715): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST2_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(809): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(834): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST2_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(875): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(912): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(940): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST4_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(967): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST9_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(992): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST6_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1011): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST6_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1039): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST6_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1080): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1121): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1153): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1179): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1203): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1233): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST6_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1272): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST5_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1319): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST8_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1343): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST6_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1367): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1391): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1412): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1436): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST2_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1461): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST4_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1486): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST5_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1513): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST8_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1538): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST6_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1562): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1586): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1610): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST8_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1636): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST6_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1661): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1686): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1711): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1737): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1761): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1785): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1809): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST8_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1832): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST2_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1856): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST6_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1879): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST1_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1903): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1927): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST1_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1951): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(1979): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST8_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2009): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST2_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2051): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST8_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2095): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2123): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2147): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST6_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2173): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2205): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST7_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2228): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST6_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2249): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST6_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2267): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2281): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2295): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST8_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2309): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST6_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2323): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2337): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2356): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST8_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2378): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST6_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2400): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2422): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2444): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST8_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2460): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST8_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2473): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST6_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2486): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2499): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_LIST3_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2512): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2525): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2560): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2603): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2637): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c(2679): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_TIM_ALL_PERIPH(TIMx)); ..\..\Libraries\src\stm32f10x_tim.c: 83 warnings, 0 errors "..\..\Output\Hex_ZH.axf" - 1 Error(s), 174 Warning(s). Target not created. Build Time Elapsed: 00:00:02

*** Using Compiler ‘V5.06 update 1 (build 61)’, folder: ‘D:\Keil_v5\ARM\ARMCC\Bin’ Rebuild target ‘ADC-DEMO’ assembling startup_stm32f10x_md.s… compiling main.c… compiling led.c… compiling usart1.c… compiling delay.c… compiling dht11.c… dht11.c(18): warning: #188-D: enumerated type mixed with another type HT11_DQ_OUT(0); //拉??DQ dht11.c(20): warning: #188-D: enumerated type mixed with another type HT11_DQ_OUT(1); //DQ=1 dht11.c: 2 warnings, 0 errors compiling sys.c… compiling stm32f10x_it.c… compiling adc.c… adc.h(41): error: #20: identifier “ADC_HandleTypeDef” is undefined void adc_channel_set(ADC_HandleTypeDef adc_handle, uint32_t ch,uint32_t rank, uint32_t stime); / ADC通??? / adc.c(25): error: #20: identifier “ADC_HandleTypeDef” is undefined ADC_HandleTypeDef g_adc_handle; / ADC?浔? / adc.c(38): error: #20: identifier “ADC_DATAALIGN_RIGHT” is undefined g_adc_handle.Init.DataAlign = ADC_DATAALIGN_RIGHT; / ?荻??敕?式:?叶??? / adc.c(39): error: #20: identifier “ADC_SCAN_DISABLE” is undefined g_adc_handle.Init.ScanConvMode = ADC_SCAN_DISABLE; / ??扫??模式,???玫?一??通?? / adc.c(44): error: #20: identifier “ADC_SOFTWARE_START” is undefined g_adc_handle.Init.ExternalTrigConv = ADC_SOFTWARE_START; / 触发转换方式:?砑シ? / adc.c(45): warning: #223-D: function “HAL_ADC_Init” declared implicitly HAL_ADC_Init(&g_adc_handle); / ??始化 / adc.c(47): warning: #223-D: function “HAL_ADCEx_Calibration_Start” declared implicitly HAL_ADCEx_Calibration_Start(&g_adc_handle); / 校准ADC */ adc.c(56): error: #20: identifier “ADC_HandleTypeDef” is undefined void HAL_ADC_MspInit(ADC_HandleTypeDef *hadc) adc.c(61): error: #20: identifier “RCC_PeriphCLKInitTypeDef” is undefined RCC_PeriphCLKInitTypeDef adc_clk_init = {0}; adc.c(63): warning: #223-D: function “__HAL_RCC_ADC1_CLK_ENABLE” declared implicitly DC_ADCX_CHY_CLK_ENABLE(); /* 使??ADCx时?? */ adc.c(64): warning: #223-D: function “__HAL_RCC_GPIOA_CLK_ENABLE” declared implicitly DC_ADCX_CHY_GPIO_CLK_ENABLE(); /* 开??GPIO时?? / adc.c(67): error: #20: identifier “RCC_PERIPHCLK_ADC” is undefined adc_clk_init.PeriphClockSelection = RCC_PERIPHCLK_ADC; / ADC???时?? / adc.c(68): error: #20: identifier “RCC_ADCPCLK2_DIV6” is undefined adc_clk_init.AdcClockSelection = RCC_ADCPCLK2_DIV6; / ??频???6时??为72M/6=12MHz / adc.c(69): warning: #223-D: function “HAL_RCCEx_PeriphCLKConfig” declared implicitly HAL_RCCEx_PeriphCLKConfig(&adc_clk_init); / ???ADC时?? / adc.c(72): error: #136: struct “” has no field “Pin” gpio_init_struct.Pin = ADC_ADCX_CHY_GPIO_PIN; / ADC通??IO?? / adc.c(72): error: #20: identifier “GPIO_PIN_2” is undefined gpio_init_struct.Pin = DC_ADCX_CHY_GPIO_PIN; / ADC通??IO?? / adc.c(73): error: #136: struct “” has no field “Mode” gpio_init_struct.Mode = GPIO_MODE_ANALOG; / 模?? / adc.c(73): error: #20: identifier “GPIO_MODE_ANALOG” is undefined gpio_init_struct.Mode = GPIO_MODE_ANALOG; / 模?? */ adc.c(74): warning: #223-D: function “HAL_GPIO_Init” declared implicitly HAL_GPIO_Init(ADC_ADCX_CHY_GPIO_PORT, &gpio_init_struct); adc.c(94): error: #20: identifier “ADC_HandleTypeDef” is undefined void adc_channel_set(ADC_HandleTypeDef adc_handle, uint32_t ch, uint32_t rank, uint32_t stime) adc.c(96): error: #20: identifier “ADC_ChannelConfTypeDef” is undefined ADC_ChannelConfTypeDef adc_ch_conf; adc.c(101): warning: #223-D: function “HAL_ADC_ConfigChannel” declared implicitly HAL_ADC_ConfigChannel(adc_handle, &adc_ch_conf); / 通??? / adc.c(111): error: #20: identifier “ADC_REGULAR_RANK_1” is undefined adc_channel_set(&g_adc_handle , ch, ADC_REGULAR_RANK_1, ADC_SAMPLETIME_239CYCLES_5); / ???通?溃???泻筒???时?? / adc.c(111): error: #20: identifier “ADC_SAMPLETIME_239CYCLES_5” is undefined adc_channel_set(&g_adc_handle , ch, ADC_REGULAR_RANK_1, ADC_SAMPLETIME_239CYCLES_5); / ???通?溃???泻筒???时?? / adc.c(113): warning: #223-D: function “HAL_ADC_Start” declared implicitly HAL_ADC_Start(&g_adc_handle); / 开??ADC / adc.c(114): warning: #223-D: function “HAL_ADC_PollForConversion” declared implicitly HAL_ADC_PollForConversion(&g_adc_handle, 10); / ??询转换 / adc.c(115): warning: #223-D: function “HAL_ADC_GetValue” declared implicitly return (uint16_t)HAL_ADC_GetValue(&g_adc_handle); / 返???罱?一??ADC1???榈?转换?峁? / adc.c(132): warning: #223-D: function “delay_ms” declared implicitly delay_ms(5); adc.c: 11 warnings, 17 errors compiling atim.c… atim.h(44): error: #20: identifier “TIM_HandleTypeDef” is undefined extern TIM_HandleTypeDef g_timx_cplm_pwm_handle; / 定时??x?浔? / atim.c(26): error: #20: identifier “TIM_HandleTypeDef” is undefined TIM_HandleTypeDef g_timx_cplm_pwm_handle; / 定时??x?浔? */ atim.c(46): error: #20: identifier “TIM_OC_InitTypeDef” is undefined TIM_OC_InitTypeDef tim_oc_cplm_pwm = {0}; atim.c(48): warning: #223-D: function “__HAL_RCC_TIM1_CLK_ENABLE” declared implicitly TIM_TIMX_CPLM_CLK_ENABLE(); /* TIMx 时??使?? */ atim.c(49): warning: #223-D: function “__HAL_RCC_GPIOA_CLK_ENABLE” declared implicitly TIM_TIMX_CPLM_CHY_GPIO_CLK_ENABLE(); /* 通??X??应IO??时??使?? */ atim.c(50): warning: #223-D: function “__HAL_RCC_GPIOB_CLK_ENABLE” declared implicitly TIM_TIMX_CPLM_CHYN_GPIO_CLK_ENABLE(); /* 通??X互补通?蓝?应IO??时??使?? / atim.c(52): error: #136: struct “” has no field “Pin” gpio_init_struct.Pin = ATIM_TIMX_CPLM_CHY_GPIO_PIN; atim.c(52): error: #20: identifier “GPIO_PIN_8” is undefined gpio_init_struct.Pin = TIM_TIMX_CPLM_CHY_GPIO_PIN; atim.c(53): error: #136: struct “” has no field “Mode” gpio_init_struct.Mode = GPIO_MODE_AF_PP; atim.c(53): error: #20: identifier “GPIO_MODE_AF_PP” is undefined gpio_init_struct.Mode = GPIO_MODE_AF_PP; atim.c(54): error: #136: struct “” has no field “Pull” gpio_init_struct.Pull = GPIO_PULLDOWN; atim.c(54): error: #20: identifier “GPIO_PULLDOWN” is undefined gpio_init_struct.Pull = GPIO_PULLDOWN; atim.c(55): error: #136: struct “” has no field “Speed” gpio_init_struct.Speed = GPIO_SPEED_FREQ_HIGH ; atim.c(55): error: #20: identifier “GPIO_SPEED_FREQ_HIGH” is undefined gpio_init_struct.Speed = GPIO_SPEED_FREQ_HIGH ; atim.c(56): warning: #223-D: function “HAL_GPIO_Init” declared implicitly HAL_GPIO_Init(ATIM_TIMX_CPLM_CHY_GPIO_PORT, &gpio_init_struct); atim.c(58): error: #136: struct “” has no field “Pin” gpio_init_struct.Pin = ATIM_TIMX_CPLM_CHYN_GPIO_PIN; atim.c(58): error: #20: identifier “GPIO_PIN_13” is undefined gpio_init_struct.Pin = TIM_TIMX_CPLM_CHYN_GPIO_PIN; atim.c(63): error: #20: identifier “TIM_COUNTERMODE_UP” is undefined g_timx_cplm_pwm_handle.Init.CounterMode = TIM_COUNTERMODE_UP; / ???黾???模式 / atim.c(65): error: #20: identifier “TIM_CLOCKDIVISION_DIV4” is undefined g_timx_cplm_pwm_handle.Init.ClockDivision = TIM_CLOCKDIVISION_DIV4; / CKD[1:0] = 10, tDTS = 4 * tCK_INT = Ft / 4 = 18Mhz / atim.c(66): error: #20: identifier “TIM_AUTORELOAD_PRELOAD_ENABLE” is undefined g_timx_cplm_pwm_handle.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE; / 使??影?蛹拇???TIMx_ARR / atim.c(67): warning: #223-D: function “HAL_TIM_PWM_Init” declared implicitly HAL_TIM_PWM_Init(&g_timx_cplm_pwm_handle); atim.c(69): error: #20: identifier “TIM_OCMODE_PWM1” is undefined tim_oc_cplm_pwm.OCMode = TIM_OCMODE_PWM1; / PWM模式1 / atim.c(70): error: #20: identifier “TIM_OCPOLARITY_HIGH” is undefined tim_oc_cplm_pwm.OCPolarity = TIM_OCPOLARITY_HIGH; / OCy ?偷?平??效 / atim.c(71): error: #20: identifier “TIM_OCNPOLARITY_HIGH” is undefined tim_oc_cplm_pwm.OCNPolarity = TIM_OCNPOLARITY_HIGH; / OCyN ?偷?平??效 / atim.c(72): error: #20: identifier “TIM_OCIDLESTATE_RESET” is undefined tim_oc_cplm_pwm.OCIdleState = TIM_OCIDLESTATE_RESET; / 当MOE=0,OCx=1 / atim.c(73): error: #20: identifier “TIM_OCNIDLESTATE_RESET” is undefined tim_oc_cplm_pwm.OCNIdleState = TIM_OCNIDLESTATE_RESET; / 当MOE=0,OCxN=1 / atim.c(75): warning: #223-D: function “HAL_TIM_PWM_ConfigChannel” declared implicitly HAL_TIM_PWM_ConfigChannel(&g_timx_cplm_pwm_handle, &tim_oc_cplm_pwm, ATIM_TIMX_CPLM_CHY); atim.c(75): error: #20: identifier “TIM_CHANNEL_1” is undefined HAL_TIM_PWM_ConfigChannel(&g_timx_cplm_pwm_handle, &tim_oc_cplm_pwm, TIM_TIMX_CPLM_CHY); atim.c(77): warning: #223-D: function “HAL_TIM_PWM_Start” declared implicitly HAL_TIM_PWM_Start(&g_timx_cplm_pwm_handle, ATIM_TIMX_CPLM_CHY); / 使??OCy?涑? / atim.c(78): warning: #223-D: function “HAL_TIMEx_PWMN_Start” declared implicitly HAL_TIMEx_PWMN_Start(&g_timx_cplm_pwm_handle, ATIM_TIMX_CPLM_CHY); / 使??OCyN?涑? / atim.c: 8 warnings, 22 errors compiling atk_fan.c… atim.h(44): error: #20: identifier “TIM_HandleTypeDef” is undefined extern TIM_HandleTypeDef g_timx_cplm_pwm_handle; / 定时??x?浔? / atk_fan.c(43): warning: #223-D: function “HAL_TIM_PWM_Stop” declared implicitly HAL_TIM_PWM_Stop(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1); / ?乇???通???涑? / atk_fan.c(43): error: #20: identifier “TIM_CHANNEL_1” is undefined HAL_TIM_PWM_Stop(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1); / ?乇???通???涑? / atk_fan.c(44): warning: #223-D: function “HAL_TIMEx_PWMN_Stop” declared implicitly HAL_TIMEx_PWMN_Stop(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1); / ?乇栈ゲ?通???涑? / atk_fan.c(55): warning: #223-D: function “HAL_TIM_PWM_Stop” declared implicitly HAL_TIM_PWM_Stop(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1); / ?乇???通???涑? / atk_fan.c(55): error: #20: identifier “TIM_CHANNEL_1” is undefined HAL_TIM_PWM_Stop(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1); / ?乇???通???涑? / atk_fan.c(56): warning: #223-D: function “HAL_TIMEx_PWMN_Stop” declared implicitly HAL_TIMEx_PWMN_Stop(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1); / ?乇栈ゲ?通???涑? / atk_fan.c(60): warning: #223-D: function “HAL_TIM_PWM_Start” declared implicitly HAL_TIM_PWM_Start(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1); / 开???通???涑? / atk_fan.c(64): warning: #223-D: function “HAL_TIMEx_PWMN_Start” declared implicitly HAL_TIMEx_PWMN_Start(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1); / 开?艋ゲ?通???涑? / atk_fan.c(75): warning: #223-D: function “__HAL_TIM_GetAutoreload” declared implicitly if (para < (__HAL_TIM_GetAutoreload(&g_timx_cplm_pwm_handle))) / ??? */ atk_fan.c(77): warning: #223-D: function “__HAL_TIM_SetCompare” declared implicitly __HAL_TIM_SetCompare(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1, para); atk_fan.c(77): error: #20: identifier “TIM_CHANNEL_1” is undefined __HAL_TIM_SetCompare(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1, para); atk_fan.c: 8 warnings, 4 errors compiling atk_light.c… adc.h(41): error: #20: identifier “ADC_HandleTypeDef” is undefined void adc_channel_set(ADC_HandleTypeDef adc_handle, uint32_t ch,uint32_t rank, uint32_t stime); / ADC通??? */ atk_light.c(33): warning: #223-D: function “__HAL_RCC_GPIOA_CLK_ENABLE” declared implicitly TK_LIGHT_DO_GPIO_CLK_ENABLE(); /* DO时??使?? / atk_light.c(35): error: #136: struct “” has no field “Pin” gpio_init_struct.Pin = ATK_LIGHT_DO_GPIO_PIN; / DO?? / atk_light.c(35): error: #20: identifier “GPIO_PIN_3” is undefined gpio_init_struct.Pin = TK_LIGHT_DO_GPIO_PIN; / DO?? / atk_light.c(36): error: #136: struct “” has no field “Mode” gpio_init_struct.Mode = GPIO_MODE_INPUT; / ??? / atk_light.c(36): error: #20: identifier “GPIO_MODE_INPUT” is undefined gpio_init_struct.Mode = GPIO_MODE_INPUT; / ??? / atk_light.c(37): error: #136: struct “” has no field “Pull” gpio_init_struct.Pull = GPIO_NOPULL; / ???拉 / atk_light.c(37): error: #20: identifier “GPIO_NOPULL” is undefined gpio_init_struct.Pull = GPIO_NOPULL; / ???拉 / atk_light.c(38): warning: #223-D: function “HAL_GPIO_Init” declared implicitly HAL_GPIO_Init(ATK_LIGHT_DO_GPIO_PORT, &gpio_init_struct); / DO?懦?始化 / atk_light.c(51): error: #20: identifier “ADC_CHANNEL_2” is undefined temp_val = adc_get_result_average( DC_ADCX_CHY, 10); / ??取平??值 */ atk_light.c: 2 warnings, 8 errors compiling stm32f10x_gpio.c… compiling stm32f10x_rcc.c… compiling stm32f10x_usart.c… compiling stm32f10x_adc.c… compiling stm32f10x_dma.c… compiling stm32f10x_flash.c… compiling stm32f10x_rtc.c… compiling misc.c… compiling stm32f10x_tim.c… compiling stm32f10x_exti.c… compiling core_cm3.c… compiling system_stm32f10x.c… “.\STM32-DEMO.axf” - 51 Error(s), 31 Warning(s). Target not created. Build Time Elapsed: 00:00:06

*** Using Compiler 'V5.06 update 1 (build 61)', folder: 'D:\Keil_v5\ARM\ARMCC\Bin' Rebuild target 'ADC-DEMO' assembling startup_stm32f10x_md.s... compiling main.c... compiling led.c... compiling usart1.c... compiling delay.c... compiling dht11.c... dht11.c(18): warning: #188-D: enumerated type mixed with another type HT11_DQ_OUT(0); //拉??DQ dht11.c(20): warning: #188-D: enumerated type mixed with another type HT11_DQ_OUT(1); //DQ=1 dht11.c: 2 warnings, 0 errors compiling sys.c... compiling stm32f10x_it.c... compiling adc.c... adc.h(41): error: #20: identifier "ADC_HandleTypeDef" is undefined void adc_channel_set(ADC_HandleTypeDef *adc_handle, uint32_t ch,uint32_t rank, uint32_t stime); /* ADC通?????? */ adc.c(25): error: #20: identifier "ADC_HandleTypeDef" is undefined ADC_HandleTypeDef g_adc_handle; /* ADC?浔? */ adc.c(38): error: #20: identifier "ADC_DATAALIGN_RIGHT" is undefined g_adc_handle.Init.DataAlign = ADC_DATAALIGN_RIGHT; /* ?荻??敕?式:?叶??? */ adc.c(39): error: #20: identifier "ADC_SCAN_DISABLE" is undefined g_adc_handle.Init.ScanConvMode = ADC_SCAN_DISABLE; /* ??扫??模式,???玫?一??通?? */ adc.c(44): error: #20: identifier "ADC_SOFTWARE_START" is undefined g_adc_handle.Init.ExternalTrigConv = ADC_SOFTWARE_START; /* 触发转换方式:?砑シ? */ adc.c(45): warning: #223-D: function "HAL_ADC_Init" declared implicitly HAL_ADC_Init(&g_adc_handle); /* ??始化 */ adc.c(47): warning: #223-D: function "HAL_ADCEx_Calibration_Start" declared implicitly HAL_ADCEx_Calibration_Start(&g_adc_handle); /* 校准ADC */ adc.c(56): error: #20: identifier "ADC_HandleTypeDef" is undefined void HAL_ADC_MspInit(ADC_HandleTypeDef *hadc) adc.c(61): error: #20: identifier "RCC_PeriphCLKInitTypeDef" is undefined RCC_PeriphCLKInitTypeDef adc_clk_init = {0}; adc.c(63): warning: #223-D: function "__HAL_RCC_ADC1_CLK_ENABLE" declared implicitly DC_ADCX_CHY_CLK_ENABLE(); /* 使??ADCx时?? */ adc.c(64): warning: #223-D: function "__HAL_RCC_GPIOA_CLK_ENABLE" declared implicitly DC_ADCX_CHY_GPIO_CLK_ENABLE(); /* 开??GPIO时?? */ adc.c(67): error: #20: identifier "RCC_PERIPHCLK_ADC" is undefined adc_clk_init.PeriphClockSelection = RCC_PERIPHCLK_ADC; /* ADC????时?? */ adc.c(68): error: #20: identifier "RCC_ADCPCLK2_DIV6" is undefined adc_clk_init.AdcClockSelection = RCC_ADCPCLK2_DIV6; /* ??频????6时??为72M/6=12MHz */ adc.c(69): warning: #223-D: function "HAL_RCCEx_PeriphCLKConfig" declared implicitly HAL_RCCEx_PeriphCLKConfig(&adc_clk_init); /* ????ADC时?? */ adc.c(72): error: #136: struct "<unnamed>" has no field "Pin" gpio_init_struct.Pin = ADC_ADCX_CHY_GPIO_PIN; /* ADC通??IO?? */ adc.c(72): error: #20: identifier "GPIO_PIN_2" is undefined gpio_init_struct.Pin = DC_ADCX_CHY_GPIO_PIN; /* ADC通??IO?? */ adc.c(73): error: #136: struct "<unnamed>" has no field "Mode" gpio_init_struct.Mode = GPIO_MODE_ANALOG; /* 模?? */ adc.c(73): error: #20: identifier "GPIO_MODE_ANALOG" is undefined gpio_init_struct.Mode = GPIO_MODE_ANALOG; /* 模?? */ adc.c(74): warning: #223-D: function "HAL_GPIO_Init" declared implicitly HAL_GPIO_Init(ADC_ADCX_CHY_GPIO_PORT, &gpio_init_struct); adc.c(94): error: #20: identifier "ADC_HandleTypeDef" is undefined void adc_channel_set(ADC_HandleTypeDef *adc_handle, uint32_t ch, uint32_t rank, uint32_t stime) adc.c(96): error: #20: identifier "ADC_ChannelConfTypeDef" is undefined ADC_ChannelConfTypeDef adc_ch_conf; adc.c(101): warning: #223-D: function "HAL_ADC_ConfigChannel" declared implicitly HAL_ADC_ConfigChannel(adc_handle, &adc_ch_conf); /* 通?????? */ adc.c(111): error: #20: identifier "ADC_REGULAR_RANK_1" is undefined adc_channel_set(&g_adc_handle , ch, ADC_REGULAR_RANK_1, ADC_SAMPLETIME_239CYCLES_5); /* ????通?溃????泻筒???时?? */ adc.c(111): error: #20: identifier "ADC_SAMPLETIME_239CYCLES_5" is undefined adc_channel_set(&g_adc_handle , ch, ADC_REGULAR_RANK_1, ADC_SAMPLETIME_239CYCLES_5); /* ????通?溃????泻筒???时?? */ adc.c(113): warning: #223-D: function "HAL_ADC_Start" declared implicitly HAL_ADC_Start(&g_adc_handle); /* 开??ADC */ adc.c(114): warning: #223-D: function "HAL_ADC_PollForConversion" declared implicitly HAL_ADC_PollForConversion(&g_adc_handle, 10); /* ??询转换 */ adc.c(115): warning: #223-D: function "HAL_ADC_GetValue" declared implicitly return (uint16_t)HAL_ADC_GetValue(&g_adc_handle); /* 返???罱?一??ADC1?????榈?转换?峁? */ adc.c(132): warning: #223-D: function "delay_ms" declared implicitly delay_ms(5); adc.c: 11 warnings, 17 errors compiling atim.c... atim.h(44): error: #20: identifier "TIM_HandleTypeDef" is undefined extern TIM_HandleTypeDef g_timx_cplm_pwm_handle; /* 定时??x?浔? */ atim.c(26): error: #20: identifier "TIM_HandleTypeDef" is undefined TIM_HandleTypeDef g_timx_cplm_pwm_handle; /* 定时??x?浔? */ atim.c(46): error: #20: identifier "TIM_OC_InitTypeDef" is undefined TIM_OC_InitTypeDef tim_oc_cplm_pwm = {0}; atim.c(48): warning: #223-D: function "__HAL_RCC_TIM1_CLK_ENABLE" declared implicitly TIM_TIMX_CPLM_CLK_ENABLE(); /* TIMx 时??使?? */ atim.c(49): warning: #223-D: function "__HAL_RCC_GPIOA_CLK_ENABLE" declared implicitly TIM_TIMX_CPLM_CHY_GPIO_CLK_ENABLE(); /* 通??X??应IO??时??使?? */ atim.c(50): warning: #223-D: function "__HAL_RCC_GPIOB_CLK_ENABLE" declared implicitly TIM_TIMX_CPLM_CHYN_GPIO_CLK_ENABLE(); /* 通??X互补通?蓝?应IO??时??使?? */ atim.c(52): error: #136: struct "<unnamed>" has no field "Pin" gpio_init_struct.Pin = ATIM_TIMX_CPLM_CHY_GPIO_PIN; atim.c(52): error: #20: identifier "GPIO_PIN_8" is undefined gpio_init_struct.Pin = TIM_TIMX_CPLM_CHY_GPIO_PIN; atim.c(53): error: #136: struct "<unnamed>" has no field "Mode" gpio_init_struct.Mode = GPIO_MODE_AF_PP; atim.c(53): error: #20: identifier "GPIO_MODE_AF_PP" is undefined gpio_init_struct.Mode = GPIO_MODE_AF_PP; atim.c(54): error: #136: struct "<unnamed>" has no field "Pull" gpio_init_struct.Pull = GPIO_PULLDOWN; atim.c(54): error: #20: identifier "GPIO_PULLDOWN" is undefined gpio_init_struct.Pull = GPIO_PULLDOWN; atim.c(55): error: #136: struct "<unnamed>" has no field "Speed" gpio_init_struct.Speed = GPIO_SPEED_FREQ_HIGH ; atim.c(55): error: #20: identifier "GPIO_SPEED_FREQ_HIGH" is undefined gpio_init_struct.Speed = GPIO_SPEED_FREQ_HIGH ; atim.c(56): warning: #223-D: function "HAL_GPIO_Init" declared implicitly HAL_GPIO_Init(ATIM_TIMX_CPLM_CHY_GPIO_PORT, &gpio_init_struct); atim.c(58): error: #136: struct "<unnamed>" has no field "Pin" gpio_init_struct.Pin = ATIM_TIMX_CPLM_CHYN_GPIO_PIN; atim.c(58): error: #20: identifier "GPIO_PIN_13" is undefined gpio_init_struct.Pin = TIM_TIMX_CPLM_CHYN_GPIO_PIN; atim.c(63): error: #20: identifier "TIM_COUNTERMODE_UP" is undefined g_timx_cplm_pwm_handle.Init.CounterMode = TIM_COUNTERMODE_UP; /* ???黾???模式 */ atim.c(65): error: #20: identifier "TIM_CLOCKDIVISION_DIV4" is undefined g_timx_cplm_pwm_handle.Init.ClockDivision = TIM_CLOCKDIVISION_DIV4; /* CKD[1:0] = 10, tDTS = 4 * tCK_INT = Ft / 4 = 18Mhz */ atim.c(66): error: #20: identifier "TIM_AUTORELOAD_PRELOAD_ENABLE" is undefined g_timx_cplm_pwm_handle.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE; /* 使??影?蛹拇???TIMx_ARR */ atim.c(67): warning: #223-D: function "HAL_TIM_PWM_Init" declared implicitly HAL_TIM_PWM_Init(&g_timx_cplm_pwm_handle); atim.c(69): error: #20: identifier "TIM_OCMODE_PWM1" is undefined tim_oc_cplm_pwm.OCMode = TIM_OCMODE_PWM1; /* PWM模式1 */ atim.c(70): error: #20: identifier "TIM_OCPOLARITY_HIGH" is undefined tim_oc_cplm_pwm.OCPolarity = TIM_OCPOLARITY_HIGH; /* OCy ?偷?平??效 */ atim.c(71): error: #20: identifier "TIM_OCNPOLARITY_HIGH" is undefined tim_oc_cplm_pwm.OCNPolarity = TIM_OCNPOLARITY_HIGH; /* OCyN ?偷?平??效 */ atim.c(72): error: #20: identifier "TIM_OCIDLESTATE_RESET" is undefined tim_oc_cplm_pwm.OCIdleState = TIM_OCIDLESTATE_RESET; /* 当MOE=0,OCx=1 */ atim.c(73): error: #20: identifier "TIM_OCNIDLESTATE_RESET" is undefined tim_oc_cplm_pwm.OCNIdleState = TIM_OCNIDLESTATE_RESET; /* 当MOE=0,OCxN=1 */ atim.c(75): warning: #223-D: function "HAL_TIM_PWM_ConfigChannel" declared implicitly HAL_TIM_PWM_ConfigChannel(&g_timx_cplm_pwm_handle, &tim_oc_cplm_pwm, ATIM_TIMX_CPLM_CHY); atim.c(75): error: #20: identifier "TIM_CHANNEL_1" is undefined HAL_TIM_PWM_ConfigChannel(&g_timx_cplm_pwm_handle, &tim_oc_cplm_pwm, TIM_TIMX_CPLM_CHY); atim.c(77): warning: #223-D: function "HAL_TIM_PWM_Start" declared implicitly HAL_TIM_PWM_Start(&g_timx_cplm_pwm_handle, ATIM_TIMX_CPLM_CHY); /* 使??OCy?涑? */ atim.c(78): warning: #223-D: function "HAL_TIMEx_PWMN_Start" declared implicitly HAL_TIMEx_PWMN_Start(&g_timx_cplm_pwm_handle, ATIM_TIMX_CPLM_CHY); /* 使??OCyN?涑? */ atim.c: 8 warnings, 22 errors compiling atk_fan.c... atim.h(44): error: #20: identifier "TIM_HandleTypeDef" is undefined extern TIM_HandleTypeDef g_timx_cplm_pwm_handle; /* 定时??x?浔? */ atk_fan.c(43): warning: #223-D: function "HAL_TIM_PWM_Stop" declared implicitly HAL_TIM_PWM_Stop(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1); /* ?乇???通???涑? */ atk_fan.c(43): error: #20: identifier "TIM_CHANNEL_1" is undefined HAL_TIM_PWM_Stop(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1); /* ?乇???通???涑? */ atk_fan.c(44): warning: #223-D: function "HAL_TIMEx_PWMN_Stop" declared implicitly HAL_TIMEx_PWMN_Stop(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1); /* ?乇栈ゲ?通???涑? */ atk_fan.c(55): warning: #223-D: function "HAL_TIM_PWM_Stop" declared implicitly HAL_TIM_PWM_Stop(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1); /* ?乇???通???涑? */ atk_fan.c(55): error: #20: identifier "TIM_CHANNEL_1" is undefined HAL_TIM_PWM_Stop(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1); /* ?乇???通???涑? */ atk_fan.c(56): warning: #223-D: function "HAL_TIMEx_PWMN_Stop" declared implicitly HAL_TIMEx_PWMN_Stop(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1); /* ?乇栈ゲ?通???涑? */ atk_fan.c(60): warning: #223-D: function "HAL_TIM_PWM_Start" declared implicitly HAL_TIM_PWM_Start(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1); /* 开????通???涑? */ atk_fan.c(64): warning: #223-D: function "HAL_TIMEx_PWMN_Start" declared implicitly HAL_TIMEx_PWMN_Start(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1); /* 开?艋ゲ?通???涑? */ atk_fan.c(75): warning: #223-D: function "__HAL_TIM_GetAutoreload" declared implicitly if (para < (__HAL_TIM_GetAutoreload(&g_timx_cplm_pwm_handle))) /* ???? */ atk_fan.c(77): warning: #223-D: function "__HAL_TIM_SetCompare" declared implicitly __HAL_TIM_SetCompare(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1, para); atk_fan.c(77): error: #20: identifier "TIM_CHANNEL_1" is undefined __HAL_TIM_SetCompare(&g_timx_cplm_pwm_handle, TIM_CHANNEL_1, para); atk_fan.c: 8 warnings, 4 errors compiling atk_light.c... adc.h(41): error: #20: identifier "ADC_HandleTypeDef" is undefined void adc_channel_set(ADC_HandleTypeDef *adc_handle, uint32_t ch,uint32_t rank, uint32_t stime); /* ADC通?????? */ atk_light.c(33): warning: #223-D: function "__HAL_RCC_GPIOA_CLK_ENABLE" declared implicitly TK_LIGHT_DO_GPIO_CLK_ENABLE(); /* DO时??使?? */ atk_light.c(35): error: #136: struct "<unnamed>" has no field "Pin" gpio_init_struct.Pin = ATK_LIGHT_DO_GPIO_PIN; /* DO?? */ atk_light.c(35): error: #20: identifier "GPIO_PIN_3" is undefined gpio_init_struct.Pin = TK_LIGHT_DO_GPIO_PIN; /* DO?? */ atk_light.c(36): error: #136: struct "<unnamed>" has no field "Mode" gpio_init_struct.Mode = GPIO_MODE_INPUT; /* ???? */ atk_light.c(36): error: #20: identifier "GPIO_MODE_INPUT" is undefined gpio_init_struct.Mode = GPIO_MODE_INPUT; /* ???? */ atk_light.c(37): error: #136: struct "<unnamed>" has no field "Pull" gpio_init_struct.Pull = GPIO_NOPULL; /* ??????拉 */ atk_light.c(37): error: #20: identifier "GPIO_NOPULL" is undefined gpio_init_struct.Pull = GPIO_NOPULL; /* ??????拉 */ atk_light.c(38): warning: #223-D: function "HAL_GPIO_Init" declared implicitly HAL_GPIO_Init(ATK_LIGHT_DO_GPIO_PORT, &gpio_init_struct); /* DO?懦?始化 */ atk_light.c(51): error: #20: identifier "ADC_CHANNEL_2" is undefined temp_val = adc_get_result_average( DC_ADCX_CHY, 10); /* ??取平??值 */ atk_light.c: 2 warnings, 8 errors compiling stm32f10x_gpio.c... compiling stm32f10x_rcc.c... compiling stm32f10x_usart.c... compiling stm32f10x_adc.c... compiling stm32f10x_dma.c... compiling stm32f10x_flash.c... compiling stm32f10x_rtc.c... compiling misc.c... compiling stm32f10x_tim.c... compiling stm32f10x_exti.c... compiling core_cm3.c... compiling system_stm32f10x.c... ".\STM32-DEMO.axf" - 51 Error(s), 31 Warning(s). Target not created. Build Time Elapsed: 00:00:06

Build target 'Target 1' compiling MAIN.c... main.h(4): error: #5: cannot open source input file "stm32f1xx_hal.h": No such file or directory #include "stm32f1xx_hal.h" MAIN.c: 0 warnings, 1 error compiling DHT11.c... dht11.h(4): error: #5: cannot open source input file "stm32f1xx_hal.h": No such file or directory #include "stm32f1xx_hal.h" DHT11.c: 0 warnings, 1 error compiling TFT_GFX.c... tft_gfx.h(4): error: #5: cannot open source input file "stm32f1xx_hal.h": No such file or directory #include "stm32f1xx_hal.h" TFT_GFX.c: 0 warnings, 1 error compiling BUZZER.c... buzzer.h(4): error: #5: cannot open source input file "stm32f1xx_hal.h": No such file or directory #include "stm32f1xx_hal.h" BUZZER.c: 0 warnings, 1 error compiling misc.c... C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c(99): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_NVIC_PRIORITY_GROUP(NVIC_PriorityGroup)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c(117): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NVIC_InitStruct->NVIC_IRQChannelCmd)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c(159): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_NVIC_VECTTAB(NVIC_VectTab)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c(178): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_NVIC_LP(LowPowerMode)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c(202): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_SYSTICK_CLK_SOURCE(SysTick_CLKSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c: 5 warnings, 0 errors compiling stm32f10x_gpio.c... C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(111): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(178): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(286): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(308): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(324): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(346): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(361): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(377): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(397): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(420): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(437): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(466): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_EVENTOUT_PORT_SOURCE(GPIO_PortSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(486): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(554): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_REMAP(GPIO_Remap)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(613): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_EXTI_PORT_SOURCE(GPIO_PortSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(632): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ETH_MEDIA_INTERFACE(GPIO_ETH_MediaInterface)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c: 16 warnings, 0 errors compiling stm32f10x_rcc.c... C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(273): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_HSE(RCC_HSE)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(338): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_CALIBRATION_VALUE(HSICalibrationValue)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(357): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(383): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_PLL_SOURCE(RCC_PLLSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(404): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(568): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_SYSCLK_SOURCE(RCC_SYSCLKSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(612): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_HCLK(RCC_SYSCLK)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(638): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_PCLK(RCC_HCLK)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(664): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_PCLK(RCC_HCLK)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(703): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_IT(RCC_IT)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(731): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_USBCLK_SOURCE(RCC_USBCLKSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(770): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_ADCCLK(RCC_PCLK2)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(832): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_LSE(RCC_LSE)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(865): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(882): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_RTCCLK_SOURCE(RCC_RTCCLKSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(896): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1067): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_AHB_PERIPH(RCC_AHBPeriph)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1098): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1129): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1188): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1219): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1240): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1253): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1285): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_MCO(RCC_MCO)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1332): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_FLAG(RCC_FLAG)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1406): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_GET_IT(RCC_IT)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1451): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_CLEAR_IT(RCC_IT)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c: 27 warnings, 0 errors assembling startup_stm32f10x_hd.s... compiling system_stm32f10x.c... ".\Objects\01.axf" - 4 Error(s), 48 Warning(s). Target not created. Build Time Elapsed: 00:00:07

Build started: Project: LCD1602 *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\迅雷下载\keil ruanj\ARM\ARMCC\Bin' Build target 'Target 1' compiling i2c.c... User\i2c.c(7): error: #20: identifier "GPIO_InitTypeDef" is undefined GPIO_InitTypeDef GPIO_InitStructure; User\i2c.c(10): warning: #223-D: function "RCC_APB2PeriphClockCmd" declared implicitly RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO | I2C_CLOCK, ENABLE); User\i2c.c(10): error: #20: identifier "RCC_APB2Periph_AFIO" is undefined RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO | I2C_CLOCK, ENABLE); User\i2c.c(10): error: #20: identifier "RCC_APB2Periph_GPIOB" is undefined RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO | I2C_CLOCK, ENABLE); User\i2c.c(13): error: #20: identifier "GPIO_Pin_6" is undefined GPIO_InitStructure.GPIO_Pin = I2C_SCL_PIN | I2C_SDA_PIN; User\i2c.c(13): error: #20: identifier "GPIO_Pin_7" is undefined GPIO_InitStructure.GPIO_Pin = I2C_SCL_PIN | I2C_SDA_PIN; User\i2c.c(14): error: #20: identifier "GPIO_Mode_Out_OD" is undefined GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_OD; User\i2c.c(15): error: #20: identifier "GPIO_Speed_50MHz" is undefined GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; User\i2c.c(16): warning: #223-D: function "GPIO_Init" declared implicitly GPIO_Init(I2C_PORT, &GPIO_InitStructure); User\i2c.c(19): warning: #223-D: function "GPIO_SetBits" declared implicitly SCL_HIGH(); User\i2c.c(25): warning: #223-D: function "GPIO_SetBits" declared implicitly SDA_HIGH(); User\i2c.c(25): error: #20: identifier "GPIO_Pin_7" is undefined SDA_HIGH(); User\i2c.c(26): error: #20: identifier "GPIO_Pin_6" is undefined SCL_HIGH(); User\i2c.c(28): warning: #223-D: function "GPIO_ResetBits" declared implicitly SDA_LOW(); User\i2c.c(35): warning: #223-D: function "GPIO_ResetBits" declared implicitly SDA_LOW(); User\i2c.c(35): error: #20: identifier "GPIO_Pin_7" is undefined SDA_LOW(); User\i2c.c(36): error: #20: identifier "GPIO_Pin_6" is undefined SCL_LOW(); User\i2c.c(38): warning: #223-D: function "GPIO_SetBits" declared implicitly SCL_HIGH(); User\i2c.c(49): warning: #223-D: function "GPIO_SetBits" declared implicitly SDA_HIGH(); // 释放数据线 User\i2c.c(49): error: #20: identifier "GPIO_Pin_7" is undefined SDA_HIGH(); // 释放数据线 User\i2c.c(51): error: #20: identifier "GPIO_Pin_6" is undefined SCL_HIGH(); User\i2c.c(54): warning: #223-D: function "GPIO_ReadInputDataBit" declared implicitly while(SDA_READ()) { User\i2c.c(63): warning: #223-D: function "GPIO_ResetBits" declared implicitly SCL_LOW(); User\i2c.c(69): warning: #223-D: function "GPIO_ResetBits" declared implicitly SCL_LOW(); User\i2c.c(69): error: #20: identifier "GPIO_Pin_6" is undefined SCL_LOW(); User\i2c.c(70): error: #20: identifier "GPIO_Pin_7" is undefined SDA_LOW(); User\i2c.c(72): warning: #223-D: function "GPIO_SetBits" declared implicitly SCL_HIGH(); User\i2c.c(79): warning: #223-D: function "GPIO_ResetBits" declared implicitly SCL_LOW(); User\i2c.c(79): error: #20: identifier "GPIO_Pin_6" is undefined SCL_LOW(); User\i2c.c(80): warning: #223-D: function "GPIO_SetBits" declared implicitly SDA_HIGH(); User\i2c.c(80): error: #20: identifier "GPIO_Pin_7" is undefined SDA_HIGH(); User\i2c.c(91): warning: #223-D: function "GPIO_ResetBits" declared implicitly SCL_LOW(); // 拉低时钟开始数据传输 User\i2c.c(91): error: #20: identifier "GPIO_Pin_6" is undefined SCL_LOW(); // 拉低时钟开始数据传输 User\i2c.c(95): warning: #223-D: function "GPIO_SetBits" declared implicitly SDA_HIGH(); User\i2c.c(95): error: #20: identifier "GPIO_Pin_7" is undefined SDA_HIGH(); User\i2c.c(97): error: #20: identifier "GPIO_Pin_7" is undefined SDA_LOW(); User\i2c.c(101): warning: #223-D: function "GPIO_SetBits" declared implicitly SCL_HIGH(); User\i2c.c(113): warning: #223-D: function "GPIO_SetBits" declared implicitly SDA_HIGH(); // 释放数据线 User\i2c.c(113): error: #20: identifier "GPIO_Pin_7" is undefined SDA_HIGH(); // 释放数据线 User\i2c.c(117): warning: #223-D: function "GPIO_ResetBits" declared implicitly SCL_LOW(); User\i2c.c(117): error: #20: identifier "GPIO_Pin_6" is undefined SCL_LOW(); User\i2c.c(122): warning: #223-D: function "GPIO_ReadInputDataBit" declared implicitly if(SDA_READ()) User\i2c.c: 20 warnings, 22 errors ".\Objects\LCD1602.axf" - 22 Error(s), 20 Warning(s). Target not created. Build Time Elapsed: 00:00:00

compiling adc.c... ..\Drivers\BSP\ADC\adc.h(41): error: #20: identifier "ADC_HandleTypeDef" is undefined void adc_channel_set(ADC_HandleTypeDef *adc_handle, uint32_t ch,uint32_t rank, uint32_t stime); /* ADC通?????? */ ..\Drivers\BSP\ADC\adc.c(25): error: #20: identifier "ADC_HandleTypeDef" is undefined ADC_HandleTypeDef g_adc_handle; /* ADC?浔? */ ..\Drivers\BSP\ADC\adc.c(38): error: #20: identifier "ADC_DATAALIGN_RIGHT" is undefined g_adc_handle.Init.DataAlign = ADC_DATAALIGN_RIGHT; /* ?荻??敕?式:?叶??? */ ..\Drivers\BSP\ADC\adc.c(39): error: #20: identifier "ADC_SCAN_DISABLE" is undefined g_adc_handle.Init.ScanConvMode = ADC_SCAN_DISABLE; /* ??扫??模式,???玫?一??通?? */ ..\Drivers\BSP\ADC\adc.c(44): error: #20: identifier "ADC_SOFTWARE_START" is undefined g_adc_handle.Init.ExternalTrigConv = ADC_SOFTWARE_START; /* 触发转换方式:?砑シ? */ ..\Drivers\BSP\ADC\adc.c(45): warning: #223-D: function "HAL_ADC_Init" declared implicitly HAL_ADC_Init(&g_adc_handle); /* ??始化 */ ..\Drivers\BSP\ADC\adc.c(47): warning: #223-D: function "HAL_ADCEx_Calibration_Start" declared implicitly HAL_ADCEx_Calibration_Start(&g_adc_handle); /* 校准ADC */ ..\Drivers\BSP\ADC\adc.c(56): error: #20: identifier "ADC_HandleTypeDef" is undefined void HAL_ADC_MspInit(ADC_HandleTypeDef *hadc) ..\Drivers\BSP\ADC\adc.c(61): error: #20: identifier "RCC_PeriphCLKInitTypeDef" is undefined RCC_PeriphCLKInitTypeDef adc_clk_init = {0}; ..\Drivers\BSP\ADC\adc.c(63): warning: #223-D: function "__HAL_RCC_ADC1_CLK_ENABLE" declared implicitly DC_ADCX_CHY_CLK_ENABLE(); /* 使??ADCx时?? */ ..\Drivers\BSP\ADC\adc.c(64): warning: #223-D: function "__HAL_RCC_GPIOA_CLK_ENABLE" declared implicitly DC_ADCX_CHY_GPIO_CLK_ENABLE(); /* 开??GPIO时?? */ ..\Drivers\BSP\ADC\adc.c(67): error: #20: identifier "RCC_PERIPHCLK_ADC" is undefined adc_clk_init.PeriphClockSelection = RCC_PERIPHCLK_ADC; /* ADC????时?? */ ..\Drivers\BSP\ADC\adc.c(68): error: #20: identifier "RCC_ADCPCLK2_DIV6" is undefined adc_clk_init.AdcClockSelection = RCC_ADCPCLK2_DIV6; /* ??频????6时??为72M/6=12MHz */ ..\Drivers\BSP\ADC\adc.c(69): warning: #223-D: function "HAL_RCCEx_PeriphCLKConfig" declared implicitly HAL_RCCEx_PeriphCLKConfig(&adc_clk_init); /* ????ADC时?? */ ..\Drivers\BSP\ADC\adc.c(72): error: #136: struct "<unnamed>" has no field "Pin" gpio_init_struct.Pin = ADC_ADCX_CHY_GPIO_PIN; /* ADC通??IO?? */ ..\Drivers\BSP\ADC\adc.c(72): error: #20: identifier "GPIO_PIN_2" is undefined gpio_init_struct.Pin = DC_ADCX_CHY_GPIO_PIN; /* ADC通??IO?? */ ..\Drivers\BSP\ADC\adc.c(73): error: #136: struct "<unnamed>" has no field "Mode" gpio_init_struct.Mode = GPIO_MODE_ANALOG; /* 模?? */ ..\Drivers\BSP\ADC\adc.c(73): error: #20: identifier "GPIO_MODE_ANALOG" is undefined gpio_init_struct.Mode = GPIO_MODE_ANALOG; /* 模?? */ ..\Drivers\BSP\ADC\adc.c(74): warning: #223-D: function "HAL_GPIO_Init" declared implicitly HAL_GPIO_Init(ADC_ADCX_CHY_GPIO_PORT, &gpio_init_struct); ..\Drivers\BSP\ADC\adc.c(94): error: #20: identifier "ADC_HandleTypeDef" is undefined void adc_channel_set(ADC_HandleTypeDef *adc_handle, uint32_t ch, uint32_t rank, uint32_t stime) ..\Drivers\BSP\ADC\adc.c(96): error: #20: identifier "ADC_ChannelConfTypeDef" is undefined ADC_ChannelConfTypeDef adc_ch_conf; ..\Drivers\BSP\ADC\adc.c(101): warning: #223-D: function "HAL_ADC_ConfigChannel" declared implicitly HAL_ADC_ConfigChannel(adc_handle, &adc_ch_conf); /* 通?????? */ ..\Drivers\BSP\ADC\adc.c(111): error: #20: identifier "ADC_REGULAR_RANK_1" is undefined adc_channel_set(&g_adc_handle , ch, ADC_REGULAR_RANK_1, ADC_SAMPLETIME_239CYCLES_5); /* ????通?溃????泻筒???时?? */ ..\Drivers\BSP\ADC\adc.c(111): error: #20: identifier "ADC_SAMPLETIME_239CYCLES_5" is undefined adc_channel_set(&g_adc_handle , ch, ADC_REGULAR_RANK_1, ADC_SAMPLETIME_239CYCLES_5); /* ????通?溃????泻筒???时?? */ ..\Drivers\BSP\ADC\adc.c(113): warning: #223-D: function "HAL_ADC_Start" declared implicitly HAL_ADC_Start(&g_adc_handle); /* 开??ADC */ ..\Drivers\BSP\ADC\adc.c(114): warning: #223-D: function "HAL_ADC_PollForConversion" declared implicitly HAL_ADC_PollForConversion(&g_adc_handle, 10); /* ??询转换 */ ..\Drivers\BSP\ADC\adc.c(115): warning: #223-D: function "HAL_ADC_GetValue" declared implicitly return (uint16_t)HAL_ADC_GetValue(&g_adc_handle); /* 返???罱?一??ADC1?????榈?转换?峁? */ ..\Drivers\BSP\ADC\adc.c(132): warning: #223-D: function "delay_ms" declared implicitly delay_ms(5); ..\Drivers\BSP\ADC\adc.c: 11 warnings, 17 errors compiling atk_fan.c... ..\Drivers\BSP\ATK_FAN\atk_fan.c(22): error: #5: cannot open source input file "atim.h": No such file or directory #include "atim.h" ..\Drivers\BSP\ATK_FAN\atk_fan.c: 0 warnings, 1 error compiling atk_light.c... ..\Drivers\BSP\ATK_LIGHT\atk_light.c(22): error: #5: cannot open source input file "adc.h": No such file or directory #include "adc.h" ..\Drivers\BSP\ATK_LIGHT\atk_light.c: 0 warnings, 1 error compiling atim.c... ..\Drivers\BSP\TIM\atim.h(44): error: #20: identifier "TIM_HandleTypeDef" is undefined extern TIM_HandleTypeDef g_timx_cplm_pwm_handle; /* 定时??x?浔? */ ..\Drivers\BSP\TIM\atim.c(26): error: #20: identifier "TIM_HandleTypeDef" is undefined TIM_HandleTypeDef g_timx_cplm_pwm_handle; /* 定时??x?浔? */ ..\Drivers\BSP\TIM\atim.c(46): error: #20: identifier "TIM_OC_InitTypeDef" is undefined TIM_OC_InitTypeDef tim_oc_cplm_pwm = {0}; ..\Drivers\BSP\TIM\atim.c(48): warning: #223-D: function "__HAL_RCC_TIM1_CLK_ENABLE" declared implicitly TIM_TIMX_CPLM_CLK_ENABLE(); /* TIMx 时??使?? */ ..\Drivers\BSP\TIM\atim.c(49): warning: #223-D: function "__HAL_RCC_GPIOA_CLK_ENABLE" declared implicitly TIM_TIMX_CPLM_CHY_GPIO_CLK_ENABLE(); /* 通??X??应IO??时??使?? */ ..\Drivers\BSP\TIM\atim.c(50): warning: #223-D: function "__HAL_RCC_GPIOB_CLK_ENABLE" declared implicitly TIM_TIMX_CPLM_CHYN_GPIO_CLK_ENABLE(); /* 通??X互补通?蓝?应IO??时??使?? */ ..\Drivers\BSP\TIM\atim.c(52): error: #136: struct "<unnamed>" has no field "Pin" gpio_init_struct.Pin = ATIM_TIMX_CPLM_CHY_GPIO_PIN; ..\Drivers\BSP\TIM\atim.c(52): error: #20: identifier "GPIO_PIN_8" is undefined gpio_init_struct.Pin = TIM_TIMX_CPLM_CHY_GPIO_PIN; ..\Drivers\BSP\TIM\atim.c(53): error: #136: struct "<unnamed>" has no field "Mode" gpio_init_struct.Mode = GPIO_MODE_AF_PP; ..\Drivers\BSP\TIM\atim.c(53): error: #20: identifier "GPIO_MODE_AF_PP" is undefined gpio_init_struct.Mode = GPIO_MODE_AF_PP; ..\Drivers\BSP\TIM\atim.c(54): error: #136: struct "<unnamed>" has no field "Pull" gpio_init_struct.Pull = GPIO_PULLDOWN; ..\Drivers\BSP\TIM\atim.c(54): error: #20: identifier "GPIO_PULLDOWN" is undefined gpio_init_struct.Pull = GPIO_PULLDOWN; ..\Drivers\BSP\TIM\atim.c(55): error: #136: struct "<unnamed>" has no field "Speed" gpio_init_struct.Speed = GPIO_SPEED_FREQ_HIGH ; ..\Drivers\BSP\TIM\atim.c(55): error: #20: identifier "GPIO_SPEED_FREQ_HIGH" is undefined gpio_init_struct.Speed = GPIO_SPEED_FREQ_HIGH ; ..\Drivers\BSP\TIM\atim.c(56): warning: #223-D: function "HAL_GPIO_Init" declared implicitly HAL_GPIO_Init(ATIM_TIMX_CPLM_CHY_GPIO_PORT, &gpio_init_struct); ..\Drivers\BSP\TIM\atim.c(58): error: #136: struct "<unnamed>" has no field "Pin" gpio_init_struct.Pin = ATIM_TIMX_CPLM_CHYN_GPIO_PIN; ..\Drivers\BSP\TIM\atim.c(58): error: #20: identifier "GPIO_PIN_13" is undefined gpio_init_struct.Pin = TIM_TIMX_CPLM_CHYN_GPIO_PIN; ..\Drivers\BSP\TIM\atim.c(63): error: #20: identifier "TIM_COUNTERMODE_UP" is undefined g_timx_cplm_pwm_handle.Init.CounterMode = TIM_COUNTERMODE_UP; /* ???黾???模式 */ ..\Drivers\BSP\TIM\atim.c(65): error: #20: identifier "TIM_CLOCKDIVISION_DIV4" is undefined g_timx_cplm_pwm_handle.Init.ClockDivision = TIM_CLOCKDIVISION_DIV4; /* CKD[1:0] = 10, tDTS = 4 * tCK_INT = Ft / 4 = 18Mhz */ ..\Drivers\BSP\TIM\atim.c(66): error: #20: identifier "TIM_AUTORELOAD_PRELOAD_ENABLE" is undefined g_timx_cplm_pwm_handle.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE; /* 使??影?蛹拇???TIMx_ARR */ ..\Drivers\BSP\TIM\atim.c(67): warning: #223-D: function "HAL_TIM_PWM_Init" declared implicitly HAL_TIM_PWM_Init(&g_timx_cplm_pwm_handle); ..\Drivers\BSP\TIM\atim.c(69): error: #20: identifier "TIM_OCMODE_PWM1" is undefined tim_oc_cplm_pwm.OCMode = TIM_OCMODE_PWM1; /* PWM模式1 */ ..\Drivers\BSP\TIM\atim.c(70): error: #20: identifier "TIM_OCPOLARITY_HIGH" is undefined tim_oc_cplm_pwm.OCPolarity = TIM_OCPOLARITY_HIGH; /* OCy ?偷?平??效 */ ..\Drivers\BSP\TIM\atim.c(71): error: #20: identifier "TIM_OCNPOLARITY_HIGH" is undefined tim_oc_cplm_pwm.OCNPolarity = TIM_OCNPOLARITY_HIGH; /* OCyN ?偷?平??效 */ ..\Drivers\BSP\TIM\atim.c(72): error: #20: identifier "TIM_OCIDLESTATE_RESET" is undefined tim_oc_cplm_pwm.OCIdleState = TIM_OCIDLESTATE_RESET; /* 当MOE=0,OCx=1 */ ..\Drivers\BSP\TIM\atim.c(73): error: #20: identifier "TIM_OCNIDLESTATE_RESET" is undefined tim_oc_cplm_pwm.OCNIdleState = TIM_OCNIDLESTATE_RESET; /* 当MOE=0,OCxN=1 */ ..\Drivers\BSP\TIM\atim.c(75): warning: #223-D: function "HAL_TIM_PWM_ConfigChannel" declared implicitly HAL_TIM_PWM_ConfigChannel(&g_timx_cplm_pwm_handle, &tim_oc_cplm_pwm, ATIM_TIMX_CPLM_CHY); ..\Drivers\BSP\TIM\atim.c(75): error: #20: identifier "TIM_CHANNEL_1" is undefined HAL_TIM_PWM_ConfigChannel(&g_timx_cplm_pwm_handle, &tim_oc_cplm_pwm, TIM_TIMX_CPLM_CHY); ..\Drivers\BSP\TIM\atim.c(77): warning: #223-D: function "HAL_TIM_PWM_Start" declared implicitly HAL_TIM_PWM_Start(&g_timx_cplm_pwm_handle, ATIM_TIMX_CPLM_CHY); /* 使??OCy?涑? */ ..\Drivers\BSP\TIM\atim.c(78): warning: #223-D: function "HAL_TIMEx_PWMN_Start" declared implicitly HAL_TIMEx_PWMN_Start(&g_timx_cplm_pwm_handle, ATIM_TIMX_CPLM_CHY); /* 使??OCyN?涑? */ ..\Drivers\BSP\TIM\atim.c: 8 warnings, 22 errors ".\STM32-DEMO.axf" - 41 Error(s), 21 Warning(s). Target not created. Build Time Elapsed: 00:00:06

Build started: Project: bbss *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'D:\k5\ARM\ARMCC\Bin' Build target 'bbss' Note: source file '../Core/Src/system_stm32f4xx.c' - object file renamed from 'bbss\system_stm32f4xx.o' to 'bbss\system_stm32f4xx_1.o'. compiling adc.c... compiling tim.c... compiling stm32f4xx_hal_msp.c... compiling i2c.c... compiling dac.c... compiling gpio.c... compiling system_stm32f4xx.c... compiling main.c... ..\Core\Src\main.c(24): warning: #223-D: function "SystemClock_Config" declared implicitly SystemClock_Config(); ..\Core\Src\main.c(33): warning: #223-D: function "OLED_Init" declared implicitly OLED_Init(); ..\Core\Src\main.c(34): warning: #223-D: function "OLED_Clear" declared implicitly OLED_Clear(); ..\Core\Src\main.c(80): warning: #223-D: function "OLED_ShowString" declared implicitly OLED_ShowString(0, 0, "Timeout "); ..\Core\Src\main.c(82): warning: #223-D: function "OLED_ShowString" declared implicitly OLED_ShowString(0, 0, "Hi "); ..\Core\Src\main.c(84): warning: #223-D: function "sprintf" declared implicitly sprintf(buffer, "%.1f kΩ", resistance); ..\Core\Src\main.c(85): warning: #223-D: function "OLED_ShowString" declared implicitly OLED_ShowString(0, 0, buffer); ..\Core\Src\main.c(106): warning: #223-D: function "fabs" declared implicitly if (fabs(current_resistance - prev_resistance) < 0.1f) { ..\Core\Src\main.c(122): warning: #223-D: function "OLED_ShowString" declared implicitly OLED_ShowString(0, 0, "Timeout "); ..\Core\Src\main.c(124): warning: #1-D: last line of file ends without a newline } ..\Core\Src\main.c(18): warning: #550-D: variable "stability_counter" was set but never used static uint32_t stability_counter = 0; ..\Core\Src\main.c: 11 warnings, 0 errors

Build target 'Target 1' compiling main.c... dht11.h(10): error: #20: identifier "uint8_t" is undefined uint8_t DHT11_Read(float *temp, float *humid); main.c(8): error: #20: identifier "RCC" is undefined RCC->CR |= RCC_CR_HSEON; main.c(8): error: #20: identifier "RCC_CR_HSEON" is undefined RCC->CR |= RCC_CR_HSEON; main.c(9): error: #20: identifier "RCC_CR_HSERDY" is undefined while (!(RCC->CR & RCC_CR_HSERDY)); main.c(12): error: #20: identifier "RCC_CFGR_PLLMULL9" is undefined RCC->CFGR |= RCC_CFGR_PLLMULL9 | RCC_CFGR_PLLSRC; main.c(12): error: #20: identifier "RCC_CFGR_PLLSRC" is undefined RCC->CFGR |= RCC_CFGR_PLLMULL9 | RCC_CFGR_PLLSRC; main.c(15): error: #20: identifier "RCC_CR_PLLON" is undefined RCC->CR |= RCC_CR_PLLON; main.c(16): error: #20: identifier "RCC_CR_PLLRDY" is undefined while (!(RCC->CR & RCC_CR_PLLRDY)); main.c(19): error: #20: identifier "RCC_CFGR_SW_PLL" is undefined RCC->CFGR |= RCC_CFGR_SW_PLL; main.c(20): error: #20: identifier "RCC_CFGR_SWS" is undefined while ((RCC->CFGR & RCC_CFGR_SWS) != RCC_CFGR_SWS_PLL); main.c(20): error: #20: identifier "RCC_CFGR_SWS_PLL" is undefined while ((RCC->CFGR & RCC_CFGR_SWS) != RCC_CFGR_SWS_PLL); main.c(23): error: #20: identifier "RCC_CFGR_PPRE1_DIV2" is undefined RCC->CFGR |= RCC_CFGR_PPRE1_DIV2 | RCC_CFGR_PPRE2_DIV1; main.c(23): error: #20: identifier "RCC_CFGR_PPRE2_DIV1" is undefined RCC->CFGR |= RCC_CFGR_PPRE1_DIV2 | RCC_CFGR_PPRE2_DIV1; main.c(29): error: #20: identifier "RCC" is undefined RCC->APB2ENR |= RCC_APB2ENR_IOPAEN | RCC_APB2ENR_IOPBEN | RCC_APB2ENR_IOPCEN; main.c(29): error: #20: identifier "RCC_APB2ENR_IOPAEN" is undefined RCC->APB2ENR |= RCC_APB2ENR_IOPAEN | RCC_APB2ENR_IOPBEN | RCC_APB2ENR_IOPCEN; main.c(29): error: #20: identifier "RCC_APB2ENR_IOPBEN" is undefined RCC->APB2ENR |= RCC_APB2ENR_IOPAEN | RCC_APB2ENR_IOPBEN | RCC_APB2ENR_IOPCEN; main.c(29): error: #20: identifier "RCC_APB2ENR_IOPCEN" is undefined RCC->APB2ENR |= RCC_APB2ENR_IOPAEN | RCC_APB2ENR_IOPBEN | RCC_APB2ENR_IOPCEN; main.c(32): error: #20: identifier "GPIOA" is undefined GPIOA->CRL &= ~(0x0F << (BUTTON_PIN * 4)); // ???? main.c(36): error: #20: identifier "GPIOC" is undefined GPIOC->CRH &= ~(0xFF << 0); // ???? main.c(40): error: #20: identifier "GPIOB" is undefined GPIOB->CRH &= ~(0x0F << 0); main.c(48): warning: #223-D: function "__NOP" declared implicitly __NOP(); main.c(54): error: #20: identifier "GPIOB" is undefined GPIOB->BSRR = (1 << BUZZER_PIN); // ?? main.c(63): error: #20: identifier "GPIOC" is undefined GPIOC->BSRR = (1 << FAN_PIN1); // ?? main.c(66): error: #20: identifier "GPIOC" is undefined GPIOC->BRR = (1 << FAN_PIN1); // ?? main.c(70): error: #20: identifier "GPIOC" is undefined GPIOC->BRR = (1 << FAN_PIN1) | (1 << FAN_PIN2); // ?? main.c(82): error: #268: declaration may not appear after executable statement in block uint8_t fan_state = 0; main.c(83): error: #268: declaration may not appear after executable statement in block uint8_t fan_direction = 1; // 1=??, 0=?? main.c(97): warning: #223-D: function "sprintf" declared implicitly sprintf(buffer, "Temp: %.1fC", temp); main.c(113): error: #20: identifier "GPIOA" is undefined if ((GPIOA->IDR & (1 << BUTTON_PIN)) == 0) { // ????(???) main.c: 2 warnings, 27 errors compiling dht11.c... dht11.h(10): error: #20: identifier "uint8_t" is undefined uint8_t DHT11_Read(float *temp, float *humid); dht11.c(7): error: #20: identifier "GPIOA" is undefined GPIOA->CRL &= ~(0x0F << (4 * DHT11_PIN)); // ???? dht11.c(15): error: #20: identifier "uint8_t" is undefined uint8_t DHT11_Read(float *temp, float *humid) { dht11.c(16): error: #20: identifier "uint8_t" is undefined uint8_t data[5] = {0}; dht11.c(17): error: #20: identifier "uint8_t" is undefined uint8_t i, j; dht11.c(20): error: #20: identifier "GPIOA" is undefined GPIOA->CRL &= ~(0x0F << (4 * DHT11_PIN)); // ???? dht11.c(22): warning: #223-D: function "Delay_ms" declared implicitly Delay_ms(18); dht11.c(41): error: #268: declaration may not appear after executable statement in block uint32_t count = 0; dht11.c(41): error: #20: identifier "uint32_t" is undefined uint32_t count = 0; dht11.c: 1 warning, 8 errors compiling tft_gfx.c... tft_gfx.c(11): error: #20: identifier "RCC" is undefined RCC->APB2ENR |= RCC_APB2ENR_SPI1EN; tft_gfx.c(11): error: #20: identifier "RCC_APB2ENR_SPI1EN" is undefined RCC->APB2ENR |= RCC_APB2ENR_SPI1EN; tft_gfx.c(14): error: #20: identifier "GPIOA" is undefined GPIOA->CRL &= ~(0xFFF << 20); // ??PA5, PA6, PA7?? tft_gfx.c(14): warning: #61-D: integer operation result is out of range GPIOA->CRL &= ~(0xFFF << 20); // ??PA5, PA6, PA7?? tft_gfx.c(18): error: #20: identifier "SPI1" is undefined SPI1->CR1 = SPI_CR1_MSTR | SPI_CR1_SPE | SPI_CR1_SSM | SPI_CR1_SSI; tft_gfx.c(18): error: #20: identifier "SPI_CR1_MSTR" is undefined SPI1->CR1 = SPI_CR1_MSTR | SPI_CR1_SPE | SPI_CR1_SSM | SPI_CR1_SSI; tft_gfx.c(18): error: #20: identifier "SPI_CR1_SPE" is undefined SPI1->CR1 = SPI_CR1_MSTR | SPI_CR1_SPE | SPI_CR1_SSM | SPI_CR1_SSI; tft_gfx.c(18): error: #20: identifier "SPI_CR1_SSM" is undefined SPI1->CR1 = SPI_CR1_MSTR | SPI_CR1_SPE | SPI_CR1_SSM | SPI_CR1_SSI; tft_gfx.c(18): error: #20: identifier "SPI_CR1_SSI" is undefined SPI1->CR1 = SPI_CR1_MSTR | SPI_CR1_SPE | SPI_CR1_SSM | SPI_CR1_SSI; tft_gfx.c(19): error: #20: identifier "SPI_CR1_BR_0" is undefined SPI1->CR1 |= SPI_CR1_BR_0; // 36MHz/4 = 9MHz tft_gfx.c(25): error: #20: identifier "GPIOA" is undefined GPIOA->CRL &= ~(0xFF << (4 * TFT_CS_PIN)); tft_gfx.c(33): warning: #223-D: function "Delay_ms" declared implicitly Delay_ms(100); tft_gfx.c(43): error: #20: identifier "SPI1" is undefined while (!(SPI1->SR & SPI_SR_TXE)); // ???????? tft_gfx.c(43): error: #20: identifier "SPI_SR_TXE" is undefined while (!(SPI1->SR & SPI_SR_TXE)); // ???????? tft_gfx.c(45): error: #20: identifier "SPI_SR_BSY" is undefined while (SPI1->SR & SPI_SR_BSY); // ?????? tft_gfx.c(50): error: #20: identifier "GPIOA" is undefined GPIOA->BRR = (1 << TFT_DC_PIN); // DC=0(??) tft_gfx.c(58): error: #20: identifier "GPIOA" is undefined GPIOA->BSRR = (1 << TFT_DC_PIN); // DC=1(??) tft_gfx.c(85): error: #20: identifier "GPIOA" is undefined GPIOA->BSRR = (1 << TFT_DC_PIN); // DC=1(??) tft_gfx.c(88): error: #254: type name is not allowed for (uint32_t i = 0; i < 320 * 240; i++) { tft_gfx.c(88): error: #65: expected a ";" for (uint32_t i = 0; i < 320 * 240; i++) { tft_gfx.c(88): error: #20: identifier "i" is undefined for (uint32_t i = 0; i < 320 * 240; i++) { tft_gfx.c(103): warning: #223-D: function "TFT_DrawChar" declared implicitly TFT_DrawChar(x, y, *str, font, color); tft_gfx.c(100): warning: #177-D: variable "char_height" was declared but never referenced uint8_t char_height = font->height; tft_gfx.c(110): error: #159: declaration is incompatible with previous "TFT_DrawChar" (declared at line 103) void TFT_DrawChar(uint16_t x, uint16_t y, char c, FontDef *font, uint16_t color) { tft_gfx.c(114): error: #254: type name is not allowed for (uint8_t row = 0; row < font->height; row++) { tft_gfx.c(114): error: #65: expected a ";" for (uint8_t row = 0; row < font->height; row++) { tft_gfx.c(114): error: #20: identifier "row" is undefined for (uint8_t row = 0; row < font->height; row++) { tft_gfx.c(116): error: #254: type name is not allowed for (uint8_t col = 0; col < font->width; col++) { tft_gfx.c(116): error: #65: expected a ";" for (uint8_t col = 0; col < font->width; col++) { tft_gfx.c(116): error: #20: identifier "col" is undefined for (uint8_t col = 0; col < font->width; col++) { tft_gfx.c(118): warning: #223-D: function "TFT_DrawPixel" declared implicitly TFT_DrawPixel(x + col, y + row, color); tft_gfx.c(125): error: #159: declaration is incompatible with previous "TFT_DrawPixel" (declared at line 118) void TFT_DrawPixel(uint16_t x, uint16_t y, uint16_t color) { tft_gfx.c(135): error: #20: identifier "GPIOA" is undefined GPIOA->BSRR = (1 << TFT_DC_PIN); // DC=1(??) tft_gfx.c(138): error: #254: type name is not allowed for (uint32_t i = 0; i < w * h; i++) { tft_gfx.c(138): error: #65: expected a ";" for (uint32_t i = 0; i < w * h; i++) { tft_gfx.c: 5 warnings, 30 errors compiling system_stm32f10x.c... compiling fonts.c... fonts.c(29): error: #20: identifier "NULL" is undefined FontDef Font_16x26 = {16, 26, NULL}; // ?????????? fonts.c: 0 warnings, 1 error compiling misc.c... C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c(99): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_NVIC_PRIORITY_GROUP(NVIC_PriorityGroup)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c(117): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NVIC_InitStruct->NVIC_IRQChannelCmd)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c(159): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_NVIC_VECTTAB(NVIC_VectTab)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c(178): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_NVIC_LP(LowPowerMode)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c(202): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_SYSTICK_CLK_SOURCE(SysTick_CLKSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c: 5 warnings, 0 errors compiling stm32f10x_gpio.c... C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(111): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(178): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(286): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(308): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(324): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(346): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(361): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(377): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(397): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(420): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(437): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(466): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_EVENTOUT_PORT_SOURCE(GPIO_PortSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(486): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(554): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_REMAP(GPIO_Remap)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(613): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_EXTI_PORT_SOURCE(GPIO_PortSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(632): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ETH_MEDIA_INTERFACE(GPIO_ETH_MediaInterface)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c: 16 warnings, 0 errors compiling stm32f10x_rcc.c... C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(273): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_HSE(RCC_HSE)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(338): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_CALIBRATION_VALUE(HSICalibrationValue)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(357): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(383): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_PLL_SOURCE(RCC_PLLSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(404): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(568): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_SYSCLK_SOURCE(RCC_SYSCLKSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(612): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_HCLK(RCC_SYSCLK)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(638): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_PCLK(RCC_HCLK)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(664): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_PCLK(RCC_HCLK)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(703): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_IT(RCC_IT)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(731): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_USBCLK_SOURCE(RCC_USBCLKSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(770): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_ADCCLK(RCC_PCLK2)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(832): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_LSE(RCC_LSE)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(865): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(882): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_RTCCLK_SOURCE(RCC_RTCCLKSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(896): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1067): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_AHB_PERIPH(RCC_AHBPeriph)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1098): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1129): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1188): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1219): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1240): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1253): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1285): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_MCO(RCC_MCO)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1332): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_FLAG(RCC_FLAG)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1406): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_GET_IT(RCC_IT)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1451): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_CLEAR_IT(RCC_IT)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c: 27 warnings, 0 errors assembling startup_stm32f10x_hd.s... compiling system_stm32f10x.c... ".\Objects\01.axf" - 66 Error(s), 56 Warning(s). Target not created. Build Time Elapsed: 00:00:20

Build target 'Target 1' compiling main.c... ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(46): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory #include "stm32f1xx_hal_conf.h" main.c: 0 warnings, 1 error compiling dht11.c... ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(46): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory #include "stm32f1xx_hal_conf.h" dht11.c: 0 warnings, 1 error compiling buzzer.c... buzzer.c(6): warning: #223-D: function "GPIO_SetBits" declared implicitly GPIO_SetBits(GPIOC, GPIO_Pin_7); buzzer.c(6): error: #20: identifier "GPIO_Pin_7" is undefined GPIO_SetBits(GPIOC, GPIO_Pin_7); buzzer.c(11): warning: #223-D: function "GPIO_ResetBits" declared implicitly GPIO_ResetBits(GPIOC, GPIO_Pin_7); buzzer.c(11): error: #20: identifier "GPIO_Pin_7" is undefined GPIO_ResetBits(GPIOC, GPIO_Pin_7); buzzer.c: 2 warnings, 2 errors compiling TFT_GFX.c... ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(46): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory #include "stm32f1xx_hal_conf.h" TFT_GFX.c: 0 warnings, 1 error compiling TFT_FONTS.c... TFT_FONTS.c(23): error: #29: expected an expression .width = 8, TFT_FONTS.c(24): error: #29: expected an expression .height = 16, TFT_FONTS.c(25): error: #29: expected an expression .data = Font8x16_Data TFT_FONTS.c: 0 warnings, 3 errors ".\Objects\zuoye.axf" - 8 Error(s), 2 Warning(s). Target not created. Build Time Elapsed: 00:00:02

Build target 'Target 1' compiling main.c... ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(296): error: #20: identifier "HAL_StatusTypeDef" is undefined HAL_StatusTypeDef HAL_Init(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(297): error: #20: identifier "HAL_StatusTypeDef" is undefined HAL_StatusTypeDef HAL_DeInit(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(300): error: #20: identifier "HAL_StatusTypeDef" is undefined HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(300): error: #20: identifier "uint32_t" is undefined HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(310): error: #20: identifier "uint32_t" is undefined void HAL_Delay(uint32_t Delay); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(311): error: #20: identifier "uint32_t" is undefined uint32_t HAL_GetTick(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(312): error: #20: identifier "uint32_t" is undefined uint32_t HAL_GetTickPrio(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(313): error: #20: identifier "HAL_StatusTypeDef" is undefined HAL_StatusTypeDef HAL_SetTickFreq(HAL_TickFreqTypeDef Freq); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(317): error: #20: identifier "uint32_t" is undefined uint32_t HAL_GetHalVersion(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(318): error: #20: identifier "uint32_t" is undefined uint32_t HAL_GetREVID(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(319): error: #20: identifier "uint32_t" is undefined uint32_t HAL_GetDEVID(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(326): error: #20: identifier "uint32_t" is undefined void HAL_GetUID(uint32_t *UID); dht11.h(12): error: #20: identifier "GPIO_TypeDef" is undefined void DHT11_Init(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); dht11.h(12): error: #20: identifier "uint16_t" is undefined void DHT11_Init(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); dht11.h(13): error: #20: identifier "uint8_t" is undefined DHT11_Status DHT11_Read(uint8_t *temperature, uint8_t *humidity); dht11.h(13): error: #20: identifier "uint8_t" is undefined DHT11_Status DHT11_Read(uint8_t *temperature, uint8_t *humidity); main.c(9): error: #20: identifier "SPI_HandleTypeDef" is undefined extern SPI_HandleTypeDef hspi1; main.c(10): error: #20: identifier "TIM_HandleTypeDef" is undefined extern TIM_HandleTypeDef htim2; main.c(15): warning: #223-D: function "SystemClock_Config" declared implicitly SystemClock_Config(); main.c(16): warning: #223-D: function "MX_GPIO_Init" declared implicitly MX_GPIO_Init(); main.c(17): warning: #223-D: function "MX_SPI1_Init" declared implicitly MX_SPI1_Init(); // ??SPI??? main.c(18): warning: #223-D: function "MX_TIM2_Init" declared implicitly MX_TIM2_Init(); // ??TIM2??? main.c(24): error: #159: declaration is incompatible with previous "MX_TIM2_Init" (declared at line 18) static void MX_TIM2_Init(void) { main.c(25): error: #20: identifier "TIM_ClockConfigTypeDef" is undefined TIM_ClockConfigTypeDef sClockSourceConfig = {0}; main.c(26): error: #20: identifier "TIM_MasterConfigTypeDef" is undefined TIM_MasterConfigTypeDef sMasterConfig = {0}; main.c(28): error: #20: identifier "TIM2" is undefined htim2.Instance = TIM2; main.c(30): error: #20: identifier "TIM_COUNTERMODE_UP" is undefined htim2.Init.CounterMode = TIM_COUNTERMODE_UP; main.c(32): error: #20: identifier "TIM_CLOCKDIVISION_DIV1" is undefined htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; main.c(33): error: #20: identifier "TIM_AUTORELOAD_PRELOAD_DISABLE" is undefined htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; main.c(34): warning: #223-D: function "HAL_TIM_Base_Init" declared implicitly if (HAL_TIM_Base_Init(&htim2) != HAL_OK) { main.c(34): error: #20: identifier "HAL_OK" is undefined if (HAL_TIM_Base_Init(&htim2) != HAL_OK) { main.c(35): warning: #223-D: function "Error_Handler" declared implicitly Error_Handler(); main.c(37): error: #20: identifier "TIM_CLOCKSOURCE_INTERNAL" is undefined sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; main.c(38): warning: #223-D: function "HAL_TIM_ConfigClockSource" declared implicitly if (HAL_TIM_ConfigClockSource(&htim2, &sClockSourceConfig) != HAL_OK) { main.c(38): error: #20: identifier "HAL_OK" is undefined if (HAL_TIM_ConfigClockSource(&htim2, &sClockSourceConfig) != HAL_OK) { main.c(39): warning: #223-D: function "Error_Handler" declared implicitly Error_Handler(); main.c(41): error: #20: identifier "TIM_TRGO_RESET" is undefined sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; main.c(42): error: #20: identifier "TIM_MASTERSLAVEMODE_DISABLE" is undefined sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; main.c: 8 warnings, 30 errors compiling dht11.c... ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(296): error: #20: identifier "HAL_StatusTypeDef" is undefined HAL_StatusTypeDef HAL_Init(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(297): error: #20: identifier "HAL_StatusTypeDef" is undefined HAL_StatusTypeDef HAL_DeInit(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(300): error: #20: identifier "HAL_StatusTypeDef" is undefined HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(300): error: #20: identifier "uint32_t" is undefined HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(310): error: #20: identifier "uint32_t" is undefined void HAL_Delay(uint32_t Delay); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(311): error: #20: identifier "uint32_t" is undefined uint32_t HAL_GetTick(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(312): error: #20: identifier "uint32_t" is undefined uint32_t HAL_GetTickPrio(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(313): error: #20: identifier "HAL_StatusTypeDef" is undefined HAL_StatusTypeDef HAL_SetTickFreq(HAL_TickFreqTypeDef Freq); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(317): error: #20: identifier "uint32_t" is undefined uint32_t HAL_GetHalVersion(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(318): error: #20: identifier "uint32_t" is undefined uint32_t HAL_GetREVID(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(319): error: #20: identifier "uint32_t" is undefined uint32_t HAL_GetDEVID(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(326): error: #20: identifier "uint32_t" is undefined void HAL_GetUID(uint32_t *UID); dht11.h(12): error: #20: identifier "GPIO_TypeDef" is undefined void DHT11_Init(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); dht11.h(12): error: #20: identifier "uint16_t" is undefined void DHT11_Init(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); dht11.h(13): error: #20: identifier "uint8_t" is undefined DHT11_Status DHT11_Read(uint8_t *temperature, uint8_t *humidity); dht11.h(13): error: #20: identifier "uint8_t" is undefined DHT11_Status DHT11_Read(uint8_t *temperature, uint8_t *humidity); dht11.c(7): warning: #223-D: function "__HAL_TIM_SET_COUNTER" declared implicitly __HAL_TIM_SET_COUNTER(&htim2, 0); dht11.c(7): error: #20: identifier "htim2" is undefined __HAL_TIM_SET_COUNTER(&htim2, 0); dht11.c(8): warning: #223-D: function "HAL_TIM_Base_Start" declared implicitly HAL_TIM_Base_Start(&htim2); dht11.c(9): warning: #223-D: function "__HAL_TIM_GET_COUNTER" declared implicitly while (__HAL_TIM_GET_COUNTER(&htim2) < us); dht11.c(10): warning: #223-D: function "HAL_TIM_Base_Stop" declared implicitly HAL_TIM_Base_Stop(&htim2); dht11.c(6): warning: #177-D: function "delay_us" was declared but never referenced static void delay_us(uint16_t us) { dht11.c: 5 warnings, 17 errors compiling buzzer.c... ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f1xx.h(159): error: #35: #error directive: "Please select first the target STM32F1xx device used in your application (in stm32f1xx.h file)" #error "Please select first the target STM32F1xx device used in your application (in stm32f1xx.h file)" buzzer.c: 0 warnings, 1 error compiling TFT_GFX.c... ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(296): error: #20: identifier "HAL_StatusTypeDef" is undefined HAL_StatusTypeDef HAL_Init(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(297): error: #20: identifier "HAL_StatusTypeDef" is undefined HAL_StatusTypeDef HAL_DeInit(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(300): error: #20: identifier "HAL_StatusTypeDef" is undefined HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(300): error: #20: identifier "uint32_t" is undefined HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(310): error: #20: identifier "uint32_t" is undefined void HAL_Delay(uint32_t Delay); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(311): error: #20: identifier "uint32_t" is undefined uint32_t HAL_GetTick(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(312): error: #20: identifier "uint32_t" is undefined uint32_t HAL_GetTickPrio(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(313): error: #20: identifier "HAL_StatusTypeDef" is undefined HAL_StatusTypeDef HAL_SetTickFreq(HAL_TickFreqTypeDef Freq); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(317): error: #20: identifier "uint32_t" is undefined uint32_t HAL_GetHalVersion(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(318): error: #20: identifier "uint32_t" is undefined uint32_t HAL_GetREVID(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(319): error: #20: identifier "uint32_t" is undefined uint32_t HAL_GetDEVID(void); ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(326): error: #20: identifier "uint32_t" is undefined void HAL_GetUID(uint32_t *UID); TFT_GFX.c(2): error: #5: cannot open source input file "spi.h": No such file or directory #include "spi.h" TFT_GFX.c: 0 warnings, 13 errors compiling TFT_FONTS.c... TFT_FONTS.c(5): error: #20: identifier "Font8x16_Data" is undefined FontDef Font_8x16 = {8, 16, Font8x16_Data}; TFT_FONTS.c: 0 warnings, 1 error ".\Objects\zuoye.axf" - 62 Error(s), 13 Warning(s). Target not created. Build Time Elapsed: 00:00:01

*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'D:\Keil_v5\ARM\ARMCC\Bin' Build target 'Target 1' compiling LightSensor.c... Hardware\LightSensor.c(2): error: #5: cannot open source input file "light_sensor.h": No such file or directory #include "light_sensor.h" Hardware\LightSensor.c: 0 warnings, 1 error compiling myi2c.c... Hardware\myi2c.c(25): warning: #223-D: function "Delay_us" declared implicitly Delay_us(4); Hardware\myi2c.c(35): warning: #223-D: function "Delay_us" declared implicitly Delay_us(4); Hardware\myi2c.c(45): warning: #223-D: function "Delay_us" declared implicitly Delay_us(2); Hardware\myi2c.c(54): warning: #223-D: function "Delay_us" declared implicitly Delay_us(2); Hardware\myi2c.c: 4 warnings, 0 errors compiling Delay.c... compiling LED.c... Hardware\LED.c(37): error: #20: identifier "KEY_S0" is undefined if(key_val == KEY_S0) { Hardware\LED.c(38): warning: #188-D: enumerated type mixed with another type flowMode = (flowMode + 1) % 3; Hardware\LED.c(53): error: #20: identifier "KEY_S1" is undefined if(key_val == KEY_S1) { Hardware\LED.c(54): warning: #188-D: enumerated type mixed with another type breathState = (breathState + 1) % 3; Hardware\LED.c(75): warning: #223-D: function "HAL_GetTick" declared implicitly if(flowMode != LED_FLOW_OFF && (HAL_GetTick() - lastUpdate > 200)) { Hardware\LED.c(93): warning: #223-D: function "HAL_GetTick" declared implicitly if(breathState == BREATH_ON && (HAL_GetTick() - lastUpdate > 10)) { Hardware\LED.c(34): warning: #177-D: variable "flowDir" was declared but never referenced static uint8_t flowDir = 0; // 0:宸︹啋鍙? 1:鍙斥啋宸? Hardware\LED.c: 5 warnings, 2 errors compiling Buzzer.c... Hardware\Buzzer.c(28): error: #20: identifier "KEY_S2" is undefined if(key_val == KEY_S2) { Hardware\Buzzer.c(36): warning: #223-D: function "HAL_GetTick" declared implicitly if(buzzerState && (HAL_GetTick() - lastToggle > 500)) { Hardware\Buzzer.c(38): warning: #223-D: function "GPIO_ToggleBits" declared implicitly GPIO_ToggleBits(BUZZER_PORT, BUZZER_PIN); // 鍒囨崲鐘舵€? Hardware\Buzzer.c: 2 warnings, 1 error compiling OLED.c... Hardware\OLED.c(3): error: #5: cannot open source input file "light_sensor.h": No such file or directory #include "light_sensor.h" Hardware\OLED.c: 0 warnings, 1 error compiling Key.c... Hardware\Key.c(38): warning: #223-D: function "Delay_ms" declared implicitly Delay_ms(10); // 娑堟姈寤舵椂 Hardware\Key.c: 1 warning, 0 errors compiling PWM.c... Hardware\common.h(6): error: #101: "RESET" has already been declared in the current scope typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; Hardware\common.h(6): error: #101: "SET" has already been declared in the current scope typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; Hardware\common.h(6): error: #256: invalid redeclaration of type name "FlagStatus" (declared at line 519 of ".\Start\stm32f10x.h") typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; Hardware\common.h(6): error: #256: invalid redeclaration of type name "ITStatus" (declared at line 519 of ".\Start\stm32f10x.h") typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; Hardware\common.h(8): error: #101: "DISABLE" has already been declared in the current scope typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState; Hardware\common.h(8): error: #101: "ENABLE" has already been declared in the current scope typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState; Hardware\common.h(8): error: #256: invalid redeclaration of type name "FunctionalState" (declared at line 521 of ".\Start\stm32f10x.h") typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState; Hardware\PWM.c(25): error: #20: identifier "LED1_PIN" is undefined GPIO_ResetBits(LED_PORT, LED1_PIN | LED2_PIN | LED3_PIN | LED4_PIN | LED5_PIN | LED6_PIN | LED7_PIN); Hardware\PWM.c(25): error: #20: identifier "LED2_PIN" is undefined GPIO_ResetBits(LED_PORT, LED1_PIN | LED2_PIN | LED3_PIN | LED4_PIN | LED5_PIN | LED6_PIN | LED7_PIN); Hardware\PWM.c(25): error: #20: identifier "LED3_PIN" is undefined GPIO_ResetBits(LED_PORT, LED1_PIN | LED2_PIN | LED3_PIN | LED4_PIN | LED5_PIN | LED6_PIN | LED7_PIN); Hardware\PWM.c(25): error: #20: identifier "LED4_PIN" is undefined GPIO_ResetBits(LED_PORT, LED1_PIN | LED2_PIN | LED3_PIN | LED4_PIN | LED5_PIN | LED6_PIN | LED7_PIN); Hardware\PWM.c(25): error: #20: identifier "LED5_PIN" is undefined GPIO_ResetBits(LED_PORT, LED1_PIN | LED2_PIN | LED3_PIN | LED4_PIN | LED5_PIN | LED6_PIN | LED7_PIN); Hardware\PWM.c(25): error: #20: identifier "LED6_PIN" is undefined GPIO_ResetBits(LED_PORT, LED1_PIN | LED2_PIN | LED3_PIN | LED4_PIN | LED5_PIN | LED6_PIN | LED7_PIN); Hardware\PWM.c(25): error: #20: identifier "LED7_PIN" is undefined GPIO_ResetBits(LED_PORT, LED1_PIN | LED2_PIN | LED3_PIN | LED4_PIN | LED5_PIN | LED6_PIN | LED7_PIN); Hardware\PWM.c(31): error: #20: identifier "LED1_PIN" is undefined GPIO_SetBits(LED_PORT, LED1_PIN | LED2_PIN | LED3_PIN | LED4_PIN | LED5_PIN | LED6_PIN | LED7_PIN); Hardware\PWM.c(31): error: #20: identifier "LED2_PIN" is undefined GPIO_SetBits(LED_PORT, LED1_PIN | LED2_PIN | LED3_PIN | LED4_PIN | LED5_PIN | LED6_PIN | LED7_PIN); Hardware\PWM.c(31): error: #20: identifier "LED3_PIN" is undefined GPIO_SetBits(LED_PORT, LED1_PIN | LED2_PIN | LED3_PIN | LED4_PIN | LED5_PIN | LED6_PIN | LED7_PIN); Hardware\PWM.c(31): error: #20: identifier "LED4_PIN" is undefined GPIO_SetBits(LED_PORT, LED1_PIN | LED2_PIN | LED3_PIN | LED4_PIN | LED5_PIN | LED6_PIN | LED7_PIN); Hardware\PWM.c(31): error: #20: identifier "LED5_PIN" is undefined GPIO_SetBits(LED_PORT, LED1_PIN | LED2_PIN | LED3_PIN | LED4_PIN | LED5_PIN | LED6_PIN | LED7_PIN); Hardware\PWM.c(31): error: #20: identifier "LED6_PIN" is undefined GPIO_SetBits(LED_PORT, LED1_PIN | LED2_PIN | LED3_PIN | LED4_PIN | LED5_PIN | LED6_PIN | LED7_PIN); Hardware\PWM.c(31): error: #20: identifier "LED7_PIN" is undefined GPIO_SetBits(LED_PORT, LED1_PIN | LED2_PIN | LED3_PIN | LED4_PIN | LED5_PIN | LED6_PIN | LED7_PIN); Hardware\PWM.c: 0 warnings, 21 errors compiling main.c... .\Hardware\common.h(6): error: #101: "RESET" has already been declared in the current scope typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; .\Hardware\common.h(6): error: #101: "SET" has already been declared in the current scope typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; .\Hardware\common.h(6): error: #256: invalid redeclaration of type name "FlagStatus" (declared at line 519 of ".\Start\stm32f10x.h") typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; .\Hardware\common.h(6): error: #256: invalid redeclaration of type name "ITStatus" (declared at line 519 of ".\Start\stm32f10x.h") typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; .\Hardware\common.h(8): error: #101: "DISABLE" has already been declared in the current scope typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState; .\Hardware\common.h(8): error: #101: "ENABLE" has already been declared in the current scope typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState; .\Hardware\common.h(8): error: #256: invalid redeclaration of type name "FunctionalState" (declared at line 521 of ".\Start\stm32f10x.h") typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState; User\main.c(22): warning: #223-D: function "delay_init" declared implicitly delay_init(); // 寤舵椂鍒濆鍖? User\main.c(31): error: #140: too many arguments in function call u8 key = KEY_Scan(0); // 涓嶆敮鎸佽繛鎸? User\main.c(34): error: #20: identifier "KEY0_PRES" is undefined if (key == KEY0_PRES) User\main.c(37): warning: #223-D: function "LED_Flow_SetMode" declared implicitly LED_Flow_SetMode(sysState.ledFlowMode); User\main.c(41): error: #20: identifier "KEY1_PRES" is undefined if (key == KEY1_PRES) User\main.c(46): warning: #223-D: function "LED_Breath_SetState" declared implicitly LED_Breath_SetState(LED_BREATH_ON); User\main.c(46): error: #20: identifier "LED_BREATH_ON" is undefined LED_Breath_SetState(LED_BREATH_ON); User\main.c(47): warning: #223-D: function "LED_Breath_SetPeriod" declared implicitly LED_Breath_SetPeriod(500); // 500ms鍛ㄦ湡 User\main.c(52): warning: #223-D: function "LED_Breath_SetState" declared implicitly LED_Breath_SetState(LED_BREATH_OFF); User\main.c(52): error: #20: identifier "LED_BREATH_OFF" is undefined LED_Breath_SetState(LED_BREATH_OFF); User\main.c(57): error: #20: identifier "KEY2_PRES" is undefined if (key == KEY2_PRES) User\main.c(60): warning: #223-D: function "Buzzer_SetState" declared implicitly Buzzer_SetState(sysState.beepState); User\main.c(64): error: #20: identifier "KEY3_PRES" is undefined if (key == KEY3_PRES) User\main.c(69): warning: #223-D: function "OLED_DisplayOn" declared implicitly OLED_DisplayOn(); User\main.c(71): warning: #223-D: function "OLED_ShowPersonalInfo" declared implicitly OLED_ShowPersonalInfo(); User\main.c(75): warning: #223-D: function "OLED_DisplayOff" declared implicitly OLED_DisplayOff(); User\main.c(80): warning: #223-D: function "LED_Flow_Task" declared implicitly LED_Flow_Task(); User\main.c(83): warning: #223-D: function "LED_Breath_Task" declared implicitly LED_Breath_Task(); User\main.c(86): warning: #223-D: function "Buzzer_Task" declared implicitly Buzzer_Task(); User\main.c(91): warning: #223-D: function "OLED_UpdateLightState" declared implicitly OLED_UpdateLightState(); // 鏇存柊鍏夌収鐘舵€佹樉绀? User\main.c(94): warning: #223-D: function "delay_ms" declared implicitly delay_ms(10); User\main.c: 14 warnings, 14 errors ".\Objects\Project.axf" - 40 Error(s), 26 Warning(s). Target not created. Build Time Elapsed: 00:00:44光敏那一块用的是lightsensor

大家在看

recommend-type

FLUENT学习udf编程实例.pdf

FLUENT学习udf编程实例, 内部含有各种UDF实例,内容详实,解释清楚,希望对各位有帮助。最后附有案例,可以针对案例直接修改,写出符合自己要求的UDF。
recommend-type

SAP实施顾问宝典中文版PDF

SAP实施顾问宝典中文版,PDF,适合SAP初级顾问,初学者,刚工作的同学们。
recommend-type

S3IP-OCM 硬件规范

S3IP-OCM 硬件规范,由开放数据中心委员会发布。数据中心,交换机,路由器等产品开发可参考。
recommend-type

vb编写的 实时曲线图

vb 编写的实时曲线 曲线图 画图 曲线
recommend-type

C语言流程图生成工具

AutoFlowChart 自动生成流程图 AutoFlowchart 是一个极佳的根据源码生成流程图的工具 它生成的流程图支持展开 合拢 并且可以预定义流程图块的大小和间隔 移动和缩放流程图也很方便 你还可以把它导出到WORD文档或BMP文件 它可以帮助程序员更好地理解程序 制作文档和可视化代码 支持C C++ VC++ Visual C++ NET Delphi Object Pascal 主要功能 根据源程序生成流程图 导出流程图到WORD文档中 展开 合拢流程图 自动生成一个 TreeView显示所有函数 过程 同步显示对应块的源程序和流程图 自定义流程图的配色方案 自定义流程图的大小和间距 根据格式自动排列程序 自由缩小 放大 移动流程图 显示程序行号 支持清除当前流程图 导出流程图到 bmp文件 发展前瞻 ① 支持各种语言 已经完成Pascal C 待完成:Java FoxPro Basic Fortan等; ② 支持反向操作 可以动态修改流程图 并可根据流程图生成相应的语言代码; ③ 结合Delphi专家 嵌入IDE直接运行 已经完成详见主页 操作说明 ① 打开一个或多个文件; ② 双击一个If For While Case Repeat Try begin的起始行 你就可以看到流程图; ③ 双击流程图中相应的框 可以同步显示程序块位置;">AutoFlowChart 自动生成流程图 AutoFlowchart 是一个极佳的根据源码生成流程图的工具 它生成的流程图支持展开 合拢 并且可以预定义流程图块的大小和间隔 移动和缩放流程图也很方便 你还可以把它导出到WORD文档或BMP文件 [更多]

最新推荐

recommend-type

XPage新标签页 - Chrome 应用商店 0.6.7.0.crx

XPage新标签页 - Chrome 应用商店 0.6.7.0.crx
recommend-type

破解dex2jar: Android应用反编译与分析指南

标题中的“dex2jar”指的是一个用于将Android应用程序中的DEX文件(Dalvik可执行文件)转换成Java JAR文件的工具。这个过程被称为“DEX转JAR”,是一个逆向工程的过程,它允许开发者查看和分析Android应用程序的原始Java代码,这通常用于学习、测试和安全分析目的。破解一词在此上下文中可能用于描述不正当手段获取程序的源代码以进行修改或绕过安全机制等行为,但请注意,任何未经授权的修改和使用都可能违反法律和版权。 描述部分提供了使用dex2jar工具的基本步骤。dex2jar通常是一个批处理文件(dex2jar.bat),用于在Windows环境下执行操作。它将DEX文件(classes.dex)作为输入,并生成对应的JAR文件。这个过程需要用户已经下载并解压了dex2jar的压缩包,并将其中的dex2jar.bat文件放在一个可以访问的目录中。然后,用户需要将目标Android应用程序中的classes.dex文件复制到该目录下,并在命令行界面中运行以下命令: dex2jar.bat classes.dex 执行完毕后,会在同一目录下生成名为classes.dex.dex2jar.jar的文件。这个JAR文件实质上是将DEX文件中的类转换成了Java的.class文件,并打包成了JAR格式,供后续的分析或修改使用。 【标签】中的“Android 破解”可能被误解为破解Android应用程序的安全机制,实际上,这个标签更准确的意义是分析和理解Android应用程序的工作原理。而“jar dex”则是指JAR文件与DEX文件之间的转换关系。 【压缩包子文件的文件名称列表】中列举了几个文件名,其中“使用说明.txt”很可能是该工具的官方使用指南,提供更详细的使用说明、安装步骤和常见问题的解答。“dex2jar最新版下载dex2jar下载 2.0官方版_ - pc6下载站.url”则是一个指向PC6下载站上dex2jar工具下载页面的网页链接。“dex2jar-2.0”可能是指特定版本号的dex2jar工具压缩包。 总结以上信息,dex2jar是一个专门用于Android应用安全分析和逆向工程的工具,它将DEX文件转换成Java的JAR文件以便进行代码的查看和分析。尽管这个过程在安全研究和教育目的下是合法且有价值的,但任何使用这一工具的非法破解、侵犯版权或进行恶意行为都是不可接受的。
recommend-type

共享内存与共识算法详解

### 共享内存与共识算法详解 在分布式系统中,共享内存和共识算法是两个核心的概念。共享内存涉及到多个进程对同一数据的读写操作,而共识算法则帮助多个进程在可能存在故障的情况下达成一致的决策。下面将详细介绍这两个方面的相关知识。 #### 共享内存 共享内存的寄存器规范由Lamport在多篇论文中引入,同时定义了安全、规则和原子三种语义。 - **安全寄存器**:在三种寄存器语义中,安全寄存器提供的保证最弱。当读操作与写操作并发时,安全寄存器可能返回任意值,甚至可能是从未被写入或尝试写入的值。在多处理器机器中,进程可能并发访问实现寄存器抽象的底层硬件位置,从而导致返回任意值。在任意故障模型中
recommend-type

计算机专业本科生和研究生就业薪资待遇

<think>好的,我需要回答用户关于计算机专业本科和研究生就业薪资对比的问题。首先,我得先看看用户提供的引用资料,看看里面有没有相关的数据。 引用[4]提到,2019届计算机类本科毕业生的平均月收入是6858元,而高职是4883元。这应该可以作为本科生的参考数据。至于研究生,引用[1]指出重庆大学的计算机和软件硕士就业情况良好,薪资高于行业平均水平,但没有具体数字。不过引用[3]提到,前20名的高校多为985/211,尤其是理工类院校的毕业生薪资更高。这里可能需要结合其他信息来推断研究生的薪资水平。 另外,引用[2]提到计算机专业毕业生薪资一般在万元以上,但不确定这是否特指研究生还是包括
recommend-type

eWebEditor 10.3最新版特性与安全升级指南

从提供的信息来看,我们需要深入了解和探讨的内容主要集中在“eWebEditor最新版”这一主题上。eWebEditor是一款流行的在线HTML编辑器,它支持ASP和ASP.NET环境,并广泛用于Web内容管理。通过给出的标题和描述,以及标签和文件名称列表,我们可以推导出一系列相关的知识点。 ### 标题知识点解析 #### eWebEditor的定义与功能 “eWebEditor最新版”中提到的“eWebEditor”指的是在线HTML编辑器产品,它被广泛应用于需要在线编辑和发布网页内容的场合。编辑器通常包含许多功能,比如文本格式化、图像插入、链接管理等,提供用户友好和接近桌面程序的编辑体验。eWebEditor产品以ASP和ASP.NET作为其主要的技术平台。 #### “最新版”更新内容 “最新版”表明我们正在讨论的是eWebEditor的最新版本更新,该版本很可能是为了增加新功能、提升性能、修复已知问题或改善安全性能。一般来说,软件的更新也可能会引入对新操作系统或浏览器的兼容性,以及对现有API或开发环境的新支持。 ### 描述知识点解析 #### “亲测可用”的含义 从“亲测 可用”的描述中我们可以推断出,发布者可能已经对“eWebEditor最新版”进行了测试,并验证了其在实际使用中的性能和稳定性。该短语传递出一个积极的信号,即该版本值得信赖,用户可以期待它将正常工作,无需担心兼容性或功能缺失的问题。 ### 标签知识点解析 #### eWebEditor的版本标识 “eWebEditor ASPX 10.3 最新版”中的标签指出我们讨论的版本号为10.3,这是一个具体的产品版本,意味着它可能包含了一些特定的更新或新增特性。通过版本号,我们可以推断产品已经经过了多次迭代和改进。 #### ASPX技术框架 在标签中提到的“ASPX”,这表明eWebEditor最新版支持ASP.NET Web Forms技术,ASPX是ASP.NET网页的标准文件扩展名。这一信息指出编辑器适合使用.NET框架的网站开发环境。 ### 文件名称列表知识点解析 #### “升级说明.txt”文件 “升级说明.txt”是一个文本文件,它可能包含了eWebEditor从上一版本升级到最新版本时的变化说明,例如新增功能、改进的地方以及需要注意的变更。开发者或维护人员在升级时应该仔细阅读这些说明,以便于平滑过渡到新版本,并最大化地利用新功能。 #### “安全说明.txt”文件 “安全说明.txt”文件通常提供了关于软件安全性的相关信息,这可能包括了针对最新版的安全补丁、修复的安全漏洞列表以及安全最佳实践的建议。特别是对于在线编辑器这类直接参与网页内容生成的工具,安全尤为重要,因此,安全说明文件对于确保编辑器和整个网站的安全运行至关重要。 #### “ewebeditor”文件夹或组件 “ewebeditor”可能是实际包含eWebEditor编辑器文件的文件夹名称。通常,这类文件夹内会包含用于前端的JavaScript文件、用于后端处理的服务器端代码(ASP.NET或ASP代码),以及相关的样式文件和资源文件。对于开发者来说,了解这些文件和组件的组织结构对于集成和配置编辑器至关重要。 综合以上信息,我们可以了解到eWebEditor的最新版本更新了很多内容,可能包含性能和安全性的提升,并可能对特定的技术平台如ASP.NET提供了更好的支持。用户应该参考升级和安全说明文件,以便正确理解和应用这些更新。对于开发者而言,掌握如何在项目中部署和配置eWebEditor编辑器也是一个重要的技能点。
recommend-type

分布式系统中的时间抽象与故障处理

### 分布式系统中的时间抽象与故障处理 #### 1. 故障检测概述 在分布式系统中,存在三种不同的系统假设:异步系统假设、同步系统假设和部分同步系统假设。异步系统不包含任何时间假设,我们的进程和链路抽象直接体现了这一点。然而,这些抽象不足以定义同步和部分同步系统。 为了添加时间假设,一种方法是用时间保证来扩展进程和链路抽象,但这会导致规范过于复杂。因此,我们引入了故障检测器的抽象概念,它能提供关于哪些进程崩溃、哪些进程正常的信息,不过这些信息不一定准确。 故障检测器抽象相较于直接对进程和链路做时间假设具有以下两个优势: - 减轻了用时间假设扩展进程和链路抽象的需求,保留了这些抽象的简
recommend-type

我发一份参考课程设计目录

<think>好的,用户之前问过关于高校实验室安排系统的数据库课程设计,现在他需要一份参考的课程设计目录。首先,我需要回顾之前的对话,确保目录结构和他之前的问题相关,并且覆盖他提到的核心需求、ER模型、表结构、业务逻辑等内容。 用户现在要目录,可能是在进行课程设计的结构规划,需要明确的章节安排。我需要考虑课程设计通常包含的部分,比如需求分析、系统设计、数据库设计、实现、测试等。同时,结合之前给出的内容,比如ER图、表结构、冲突检测算法等,确保这些部分在目录中有体现。 还要注意用户可能希望目录足够详细,包含各个关键部分,比如摘要、需求分析、数据库设计(包括概念结构、逻辑结构、物理结构)、系统
recommend-type

惠普AMTBrand深度解析与技术特点

标题和描述中提到的“惠普AMTBrand”,可能是指惠普(Hewlett-Packard,简称HP)公司旗下的AMTBrand相关产品或技术。然而,由于给出的信息非常有限,我们可以先从惠普公司以及AMT(Active Management Technology,主动管理技术)两个方面进行展开。惠普是全球知名的IT企业,提供多种计算机硬件、软件、云服务和解决方案,而AMT是英特尔(Intel)研发的一种硬件级别的远程管理技术。 首先,我们来了解惠普公司: 惠普(Hewlett-Packard Enterprise,简称HPE),是全球领先的信息技术解决方案提供商。成立于1939年,由Bill Hewlett和David Packard在一间车库里创立,如今已经成为全球范围内提供广泛IT产品与服务的企业。惠普的产品和服务包括但不限于个人计算机(PC)、打印设备、工作站、服务器、网络设备、存储解决方案以及软件和服务。 惠普在IT服务管理、云计算、大数据和分析等领域均有涉猎,并为各种规模的企业提供从基础架构到应用管理的全方位解决方案。随着数字化转型的不断深入,惠普也在不断地通过研发新技术和收购相关企业来拓展其产品和服务的范围。 接着,我们探索AMT技术: AMT是英特尔推出的一种基于硬件的管理解决方案,它允许IT部门远程管理企业中的个人计算机和其他设备。AMT是一种集成在商用英特尔处理器中的技术,能够在个人电脑关机或者操作系统失效的情况下,提供网络访问以及硬件级别的远程管理功能。这项技术最初由英特尔在2006年发布,历经数代更新,为IT运维人员提供了众多功能,如远程开机、远程维护、软件部署、系统监控等。 AMT的优势主要体现在以下几个方面: 1. 远程访问:即使目标设备没有开机或操作系统出现故障,AMT也可以实现远程访问和管理。 2. 安全性:它提供比传统软件解决方案更为深入的硬件级别安全机制,确保数据传输的安全。 3. 节约成本:通过减少现场支持的需要,AMT能够帮助公司节约维护成本。 4. 提高效率:快速远程解决问题,从而提高IT部门的工作效率和响应速度。 然而,由于AMT技术基于特定的硬件和软件,这意味着用户需要购买带有AMT功能的英特尔处理器和相应的支持软件,同时可能需要来自惠普或其他OEM厂商的相应硬件。 最后,提到“压缩包子文件的文件名称列表”中的“AMTBrand”,这可能意味着提供或关联惠普AMTBrand技术的文件压缩包。考虑到文件名称的单一性和没有其他文件描述提供进一步信息,不能确定这个压缩包内具体包含哪些内容。不过,可以推测该压缩包内可能包含了介绍惠普AMTBrand技术的文档、演示、驱动程序、更新或管理工具等。 综合来看,文件中提到的“惠普AMTBrand”可能是指惠普公司与英特尔AMT技术结合后形成的产品或服务品牌,旨在为用户提供更为高效和安全的远程管理解决方案。考虑到惠普公司自身在IT领域的深厚积累和AMT技术的先进性,惠普AMTBrand很可能为企业级客户提供了重要价值。
recommend-type

分布式编程抽象:概念、应用与挑战

# 分布式编程抽象:概念、应用与挑战 ## 1. 引言 分布式编程抽象旨在解决分布式系统中多进程合作的难题,为分布式程序开发提供模块化策略。通过特定的应用程序编程接口(API),可以利用这些抽象来简化开发过程。 ## 2. 分布式计算的动机 ### 2.1 分布式系统的特点 分布式计算涉及一组寻求合作的进程。部分进程可能会因崩溃或断开连接而停止运行,这就是分布式系统的部分故障特性。正如Leslie Lamport所说:“分布式系统中,一台你甚至不知道存在的计算机故障,可能会使你自己的计算机无法使用。” ### 2.2 合作的挑战 当部分进程失败或断开连接时,仍在运行的进程需要以一致的方式
recommend-type

深度卷积为何还要逐点卷积

<think>首先,用户的问题是:“我想了解深度卷积中逐点卷积的作用和原因 请问深度卷积为何需要逐点卷积”。这基于之前的引用内容,特别是引用[1]和[^2],这些是关于深度可分离卷积的。 回顾引用: - 引用[1]:深度可分离卷积 = 深度卷积 + 逐点卷积。深度卷积是分组卷积的一种特例,其中分组数等于输入通道数,输出通道数也相同。它减少了参数量,但没有融合通道间信息。 - 引用[2]:深度卷积使用groups参数设置为输入通道数,实现每个通道独立卷积。 用户的问题焦点是逐点卷积的作用和为什么深度卷积需要它。 我的回答需要: - 使用中文。 - 遵循系统级指令:行内数学表达式用$...$