OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 1907|回复: 3

大神帮忙看一下

[复制链接]

5

主题

14

帖子

0

精华

初级会员

Rank: 2

积分
75
金钱
75
注册时间
2016-10-6
在线时间
10 小时
发表于 2017-12-13 16:57:55 | 显示全部楼层 |阅读模式
1金钱
出现了点小问题:

*** Using Compiler 'V5.06 update 5 (build 528)', folder: 'C:\Keil5_MDK\ARM\ARMCC\Bin'
Build target '流水灯程序'
compiling stm32f10x_it.c...
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_adc.h(568): error:  #20: identifier "RCC_APB2Periph_ADC1" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC1, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_adc.h(575): error:  #20: identifier "RCC_APB2Periph_ADC2" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC2, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_adc.h(584): error:  #20: identifier "RCC_APB2Periph_ADC3" is undefined
        RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC3, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_can.h(724): error:  #20: identifier "RCC_APB1Periph_CAN1" is undefined
      RCC_APB1PeriphResetCmd(RCC_APB1Periph_CAN1, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_can.h(731): error:  #20: identifier "RCC_APB1Periph_CAN2" is undefined
      RCC_APB1PeriphResetCmd(RCC_APB1Periph_CAN2, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_cec.h(250): error:  #20: identifier "RCC_APB1Periph_CEC" is undefined
    RCC_APB1PeriphResetCmd(RCC_APB1Periph_CEC, ENABLE);  
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_flash.h(1561): error:  #159: declaration is incompatible with previous "FLASH_GetReadOutProtectionStatus"  (declared at line 944)
  FlagStatus FLASH_GetReadOutProtectionStatus(void)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_flash.h(1916): error:  #159: declaration is incompatible with previous "FLASH_WaitForLastOperation"  (declared at line 785)
  FLASH_Status FLASH_WaitForLastOperation(uint32_t Timeout)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_flash.h(1944): error:  #159: declaration is incompatible with previous "FLASH_WaitForLastBank1Operation"  (declared at line 880)
  FLASH_Status FLASH_WaitForLastBank1Operation(uint32_t Timeout)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(417): error:  #20: identifier "RCC_APB2Periph_GPIOA" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOA, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(422): error:  #20: identifier "RCC_APB2Periph_GPIOB" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOB, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(427): error:  #20: identifier "RCC_APB2Periph_GPIOC" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOC, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(432): error:  #20: identifier "RCC_APB2Periph_GPIOD" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOD, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(437): error:  #20: identifier "RCC_APB2Periph_GPIOE" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOE, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(442): error:  #20: identifier "RCC_APB2Periph_GPIOF" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOF, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(449): error:  #20: identifier "RCC_APB2Periph_GPIOG" is undefined
        RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOG, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(463): error:  #20: identifier "RCC_APB2Periph_AFIO" is undefined
    RCC_APB2PeriphResetCmd(RCC_APB2Periph_AFIO, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_i2c.h(656): error:  #20: identifier "RCC_APB1Periph_I2C1" is undefined
      RCC_APB1PeriphResetCmd(RCC_APB1Periph_I2C1, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_i2c.h(663): error:  #20: identifier "RCC_APB1Periph_I2C2" is undefined
      RCC_APB1PeriphResetCmd(RCC_APB1Periph_I2C2, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_i2c.h(682): error:  #20: identifier "RCC_ClocksTypeDef" is undefined
    RCC_ClocksTypeDef  rcc_clocks;
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_pwr.h(195): error:  #20: identifier "RCC_APB1Periph_PWR" is undefined
    RCC_APB1PeriphResetCmd(RCC_APB1Periph_PWR, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rcc.h(1508): error:  #159: declaration is incompatible with previous "RCC_GetClocksFreq"  (declared at line 698 of "C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_i2c.h")
  void RCC_GetClocksFreq(RCC_ClocksTypeDef* RCC_Clocks)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rcc.h(1785): error:  #159: declaration is incompatible with previous "RCC_APB2PeriphResetCmd"  (declared at line 568 of "C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_adc.h")
  void RCC_APB2PeriphResetCmd(uint32_t RCC_APB2Periph, FunctionalState NewState)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rcc.h(1816): error:  #159: declaration is incompatible with previous "RCC_APB1PeriphResetCmd"  (declared at line 724 of "C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_can.h")
  void RCC_APB1PeriphResetCmd(uint32_t RCC_APB1Periph, FunctionalState NewState)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rcc.h(1837): error:  #159: declaration is incompatible with previous "RCC_BackupResetCmd"  (declared at line 240 of "C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_bkp.h")
  void RCC_BackupResetCmd(FunctionalState NewState)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rcc.h(1926): error:  #159: declaration is incompatible with previous "RCC_GetFlagStatus"  (declared at line 913)
  FlagStatus RCC_GetFlagStatus(uint8_t RCC_FLAG)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rtc.h(164): error:  #20: identifier "RTC_LSB_MASK" is undefined

TC->CNTL = (CounterValue & RTC_LSB_MASK);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rtc.h(180): error:  #20: identifier "PRLH_MSB_MASK" is undefined

TC->PRLH = (PrescalerValue & PRLH_MSB_MASK) >> 16;
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rtc.h(182): error:  #20: identifier "RTC_LSB_MASK" is undefined

TC->PRLL = (PrescalerValue & RTC_LSB_MASK);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rtc.h(197): error:  #20: identifier "RTC_LSB_MASK" is undefined

TC->ALRL = (AlarmValue & RTC_LSB_MASK);
stm32f10x_it.c: 0 warnings, 30 errors
compiling system_stm32f10x.c...
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_adc.h(568): error:  #20: identifier "RCC_APB2Periph_ADC1" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC1, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_adc.h(575): error:  #20: identifier "RCC_APB2Periph_ADC2" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC2, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_adc.h(584): error:  #20: identifier "RCC_APB2Periph_ADC3" is undefined
        RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC3, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_can.h(724): error:  #20: identifier "RCC_APB1Periph_CAN1" is undefined
      RCC_APB1PeriphResetCmd(RCC_APB1Periph_CAN1, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_can.h(731): error:  #20: identifier "RCC_APB1Periph_CAN2" is undefined
      RCC_APB1PeriphResetCmd(RCC_APB1Periph_CAN2, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_cec.h(250): error:  #20: identifier "RCC_APB1Periph_CEC" is undefined
    RCC_APB1PeriphResetCmd(RCC_APB1Periph_CEC, ENABLE);  
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_flash.h(1561): error:  #159: declaration is incompatible with previous "FLASH_GetReadOutProtectionStatus"  (declared at line 944)
  FlagStatus FLASH_GetReadOutProtectionStatus(void)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_flash.h(1916): error:  #159: declaration is incompatible with previous "FLASH_WaitForLastOperation"  (declared at line 785)
  FLASH_Status FLASH_WaitForLastOperation(uint32_t Timeout)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_flash.h(1944): error:  #159: declaration is incompatible with previous "FLASH_WaitForLastBank1Operation"  (declared at line 880)
  FLASH_Status FLASH_WaitForLastBank1Operation(uint32_t Timeout)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(417): error:  #20: identifier "RCC_APB2Periph_GPIOA" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOA, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(422): error:  #20: identifier "RCC_APB2Periph_GPIOB" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOB, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(427): error:  #20: identifier "RCC_APB2Periph_GPIOC" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOC, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(432): error:  #20: identifier "RCC_APB2Periph_GPIOD" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOD, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(437): error:  #20: identifier "RCC_APB2Periph_GPIOE" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOE, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(442): error:  #20: identifier "RCC_APB2Periph_GPIOF" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOF, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(449): error:  #20: identifier "RCC_APB2Periph_GPIOG" is undefined
        RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOG, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(463): error:  #20: identifier "RCC_APB2Periph_AFIO" is undefined
    RCC_APB2PeriphResetCmd(RCC_APB2Periph_AFIO, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_i2c.h(656): error:  #20: identifier "RCC_APB1Periph_I2C1" is undefined
      RCC_APB1PeriphResetCmd(RCC_APB1Periph_I2C1, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_i2c.h(663): error:  #20: identifier "RCC_APB1Periph_I2C2" is undefined
      RCC_APB1PeriphResetCmd(RCC_APB1Periph_I2C2, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_i2c.h(682): error:  #20: identifier "RCC_ClocksTypeDef" is undefined
    RCC_ClocksTypeDef  rcc_clocks;
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_pwr.h(195): error:  #20: identifier "RCC_APB1Periph_PWR" is undefined
    RCC_APB1PeriphResetCmd(RCC_APB1Periph_PWR, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rcc.h(1508): error:  #159: declaration is incompatible with previous "RCC_GetClocksFreq"  (declared at line 698 of "C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_i2c.h")
  void RCC_GetClocksFreq(RCC_ClocksTypeDef* RCC_Clocks)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rcc.h(1785): error:  #159: declaration is incompatible with previous "RCC_APB2PeriphResetCmd"  (declared at line 568 of "C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_adc.h")
  void RCC_APB2PeriphResetCmd(uint32_t RCC_APB2Periph, FunctionalState NewState)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rcc.h(1816): error:  #159: declaration is incompatible with previous "RCC_APB1PeriphResetCmd"  (declared at line 724 of "C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_can.h")
  void RCC_APB1PeriphResetCmd(uint32_t RCC_APB1Periph, FunctionalState NewState)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rcc.h(1837): error:  #159: declaration is incompatible with previous "RCC_BackupResetCmd"  (declared at line 240 of "C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_bkp.h")
  void RCC_BackupResetCmd(FunctionalState NewState)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rcc.h(1926): error:  #159: declaration is incompatible with previous "RCC_GetFlagStatus"  (declared at line 913)
  FlagStatus RCC_GetFlagStatus(uint8_t RCC_FLAG)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rtc.h(164): error:  #20: identifier "RTC_LSB_MASK" is undefined

TC->CNTL = (CounterValue & RTC_LSB_MASK);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rtc.h(180): error:  #20: identifier "PRLH_MSB_MASK" is undefined

TC->PRLH = (PrescalerValue & PRLH_MSB_MASK) >> 16;
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rtc.h(182): error:  #20: identifier "RTC_LSB_MASK" is undefined

TC->PRLL = (PrescalerValue & RTC_LSB_MASK);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rtc.h(197): error:  #20: identifier "RTC_LSB_MASK" is undefined

TC->ALRL = (AlarmValue & RTC_LSB_MASK);
system_stm32f10x.c: 0 warnings, 30 errors
compiling led.c...
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_adc.h(568): error:  #20: identifier "RCC_APB2Periph_ADC1" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC1, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_adc.h(575): error:  #20: identifier "RCC_APB2Periph_ADC2" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC2, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_adc.h(584): error:  #20: identifier "RCC_APB2Periph_ADC3" is undefined
        RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC3, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_can.h(724): error:  #20: identifier "RCC_APB1Periph_CAN1" is undefined
      RCC_APB1PeriphResetCmd(RCC_APB1Periph_CAN1, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_can.h(731): error:  #20: identifier "RCC_APB1Periph_CAN2" is undefined
      RCC_APB1PeriphResetCmd(RCC_APB1Periph_CAN2, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_cec.h(250): error:  #20: identifier "RCC_APB1Periph_CEC" is undefined
    RCC_APB1PeriphResetCmd(RCC_APB1Periph_CEC, ENABLE);  
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_flash.h(1561): error:  #159: declaration is incompatible with previous "FLASH_GetReadOutProtectionStatus"  (declared at line 944)
  FlagStatus FLASH_GetReadOutProtectionStatus(void)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_flash.h(1916): error:  #159: declaration is incompatible with previous "FLASH_WaitForLastOperation"  (declared at line 785)
  FLASH_Status FLASH_WaitForLastOperation(uint32_t Timeout)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_flash.h(1944): error:  #159: declaration is incompatible with previous "FLASH_WaitForLastBank1Operation"  (declared at line 880)
  FLASH_Status FLASH_WaitForLastBank1Operation(uint32_t Timeout)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(417): error:  #20: identifier "RCC_APB2Periph_GPIOA" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOA, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(422): error:  #20: identifier "RCC_APB2Periph_GPIOB" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOB, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(427): error:  #20: identifier "RCC_APB2Periph_GPIOC" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOC, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(432): error:  #20: identifier "RCC_APB2Periph_GPIOD" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOD, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(437): error:  #20: identifier "RCC_APB2Periph_GPIOE" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOE, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(442): error:  #20: identifier "RCC_APB2Periph_GPIOF" is undefined
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOF, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(449): error:  #20: identifier "RCC_APB2Periph_GPIOG" is undefined
        RCC_APB2PeriphResetCmd(RCC_APB2Periph_GPIOG, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_gpio.h(463): error:  #20: identifier "RCC_APB2Periph_AFIO" is undefined
    RCC_APB2PeriphResetCmd(RCC_APB2Periph_AFIO, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_i2c.h(656): error:  #20: identifier "RCC_APB1Periph_I2C1" is undefined
      RCC_APB1PeriphResetCmd(RCC_APB1Periph_I2C1, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_i2c.h(663): error:  #20: identifier "RCC_APB1Periph_I2C2" is undefined
      RCC_APB1PeriphResetCmd(RCC_APB1Periph_I2C2, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_i2c.h(682): error:  #20: identifier "RCC_ClocksTypeDef" is undefined
    RCC_ClocksTypeDef  rcc_clocks;
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_pwr.h(195): error:  #20: identifier "RCC_APB1Periph_PWR" is undefined
    RCC_APB1PeriphResetCmd(RCC_APB1Periph_PWR, ENABLE);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rcc.h(1508): error:  #159: declaration is incompatible with previous "RCC_GetClocksFreq"  (declared at line 698 of "C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_i2c.h")
  void RCC_GetClocksFreq(RCC_ClocksTypeDef* RCC_Clocks)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rcc.h(1785): error:  #159: declaration is incompatible with previous "RCC_APB2PeriphResetCmd"  (declared at line 568 of "C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_adc.h")
  void RCC_APB2PeriphResetCmd(uint32_t RCC_APB2Periph, FunctionalState NewState)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rcc.h(1816): error:  #159: declaration is incompatible with previous "RCC_APB1PeriphResetCmd"  (declared at line 724 of "C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_can.h")
  void RCC_APB1PeriphResetCmd(uint32_t RCC_APB1Periph, FunctionalState NewState)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rcc.h(1837): error:  #159: declaration is incompatible with previous "RCC_BackupResetCmd"  (declared at line 240 of "C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_bkp.h")
  void RCC_BackupResetCmd(FunctionalState NewState)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rcc.h(1926): error:  #159: declaration is incompatible with previous "RCC_GetFlagStatus"  (declared at line 913)
  FlagStatus RCC_GetFlagStatus(uint8_t RCC_FLAG)
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rtc.h(164): error:  #20: identifier "RTC_LSB_MASK" is undefined

TC->CNTL = (CounterValue & RTC_LSB_MASK);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rtc.h(180): error:  #20: identifier "PRLH_MSB_MASK" is undefined

TC->PRLH = (PrescalerValue & PRLH_MSB_MASK) >> 16;
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rtc.h(182): error:  #20: identifier "RTC_LSB_MASK" is undefined

TC->PRLL = (PrescalerValue & RTC_LSB_MASK);
C:\Keil5_MDK\ARM\ARMCC\Bin\..\include\stm32f10x_rtc.h(197): error:  #20: identifier "RTC_LSB_MASK" is undefined

TC->ALRL = (AlarmValue & RTC_LSB_MASK);
led.c: 0 warnings, 30 errors
"..\OBJ\LED.axf" - 90 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:01

最佳答案

查看完整内容[请看2#楼]

是没有包含头文件吧 或者包含文件的路径没有设置 建议按照正点原子的教程一步一步做一遍
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

0

主题

7

帖子

0

精华

新手上路

积分
45
金钱
45
注册时间
2017-12-2
在线时间
3 小时
发表于 2017-12-13 16:57:56 | 显示全部楼层
是没有包含头文件吧
或者包含文件的路径没有设置

建议按照正点原子的教程一步一步做一遍
回复

使用道具 举报

2

主题

7

帖子

0

精华

新手上路

积分
47
金钱
47
注册时间
2017-12-14
在线时间
6 小时
发表于 2017-12-14 11:36:56 | 显示全部楼层
stm32f10x_conf.h 里面的库函数的头文件没有取消注释吧
回复

使用道具 举报

109

主题

5564

帖子

0

精华

资深版主

Rank: 8Rank: 8

积分
10579
金钱
10579
注册时间
2017-2-18
在线时间
1916 小时
发表于 2017-12-14 11:41:18 | 显示全部楼层
1楼说的对 有时间给你改正一下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-7-24 05:32

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表