OpenEdv-开源电子网

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

重复定义stm32f10x.h中的问题

[复制链接]

4

主题

8

帖子

0

精华

新手上路

积分
48
金钱
48
注册时间
2015-12-18
在线时间
6 小时
发表于 2015-12-18 12:02:14 | 显示全部楼层 |阅读模式
5金钱
Build target 'MP3'
compiling main.c...
..\SYS\sys\stm32f10x.h(183): error:  #101: "USB_HP_CAN1_TX_IRQn" has already been declared in the current scope
    USB_HP_CAN1_TX_IRQn         = 19,     /*!< USB Device High Priority or CAN1 TX Interrupts       */
..\SYS\sys\stm32f10x.h(184): error:  #101: "USB_LP_CAN1_RX0_IRQn" has already been declared in the current scope
    USB_LP_CAN1_RX0_IRQn        = 20,     /*!< USB Device Low Priority or CAN1 RX0 Interrupts       */
..\SYS\sys\stm32f10x.h(185): error:  #101: "CAN1_RX1_IRQn" has already been declared in the current scope
    CAN1_RX1_IRQn               = 21,     /*!< CAN1 RX1 Interrupt                                   */
..\SYS\sys\stm32f10x.h(186): error:  #101: "CAN1_SCE_IRQn" has already been declared in the current scope
    CAN1_SCE_IRQn               = 22,     /*!< CAN1 SCE Interrupt                                   */
..\SYS\sys\stm32f10x.h(187): error:  #101: "EXTI9_5_IRQn" has already been declared in the current scope
    EXTI9_5_IRQn                = 23,     /*!< External Line[9:5] Interrupts                        */
..\SYS\sys\stm32f10x.h(188): error:  #101: "TIM1_BRK_IRQn" has already been declared in the current scope
    TIM1_BRK_IRQn               = 24,     /*!< TIM1 Break Interrupt                                 */
..\SYS\sys\stm32f10x.h(189): error:  #101: "TIM1_UP_IRQn" has already been declared in the current scope
    TIM1_UP_IRQn                = 25,     /*!< TIM1 Update Interrupt                                */
..\SYS\sys\stm32f10x.h(190): error:  #101: "TIM1_TRG_COM_IRQn" has already been declared in the current scope
    TIM1_TRG_COM_IRQn           = 26,     /*!< TIM1 Trigger and Commutation Interrupt               */
..\SYS\sys\stm32f10x.h(191): error:  #101: "TIM1_CC_IRQn" has already been declared in the current scope
    TIM1_CC_IRQn                = 27,     /*!< TIM1 Capture Compare Interrupt                       */
..\SYS\sys\stm32f10x.h(192): error:  #101: "TIM2_IRQn" has already been declared in the current scope
    TIM2_IRQn                   = 28,     /*!< TIM2 global Interrupt                                */
..\SYS\sys\stm32f10x.h(193): error:  #101: "TIM3_IRQn" has already been declared in the current scope
    TIM3_IRQn                   = 29,     /*!< TIM3 global Interrupt                                */
..\SYS\sys\stm32f10x.h(195): error:  #101: "I2C1_EV_IRQn" has already been declared in the current scope
    I2C1_EV_IRQn                = 31,     /*!< I2C1 Event Interrupt                                 */
..\SYS\sys\stm32f10x.h(196): error:  #101: "I2C1_ER_IRQn" has already been declared in the current scope
    I2C1_ER_IRQn                = 32,     /*!< I2C1 Error Interrupt                                 */
..\SYS\sys\stm32f10x.h(199): error:  #101: "SPI1_IRQn" has already been declared in the current scope
    SPI1_IRQn                   = 35,     /*!< SPI1 global Interrupt                                */
..\SYS\sys\stm32f10x.h(201): error:  #101: "USART1_IRQn" has already been declared in the current scope
    USART1_IRQn                 = 37,     /*!< USART1 global Interrupt                              */
..\SYS\sys\stm32f10x.h(202): error:  #101: "USART2_IRQn" has already been declared in the current scope
    USART2_IRQn                 = 38,     /*!< USART2 global Interrupt                              */
..\SYS\sys\stm32f10x.h(204): error:  #101: "EXTI15_10_IRQn" has already been declared in the current scope
    EXTI15_10_IRQn              = 40,     /*!< External Line[15:10] Interrupts                      */
..\SYS\sys\stm32f10x.h(205): error:  #101: "RTCAlarm_IRQn" has already been declared in the current scope
    RTCAlarm_IRQn               = 41,     /*!< RTC Alarm through EXTI Line Interrupt                */
..\SYS\sys\stm32f10x.h(206): error:  #101: "USBWakeUp_IRQn" has already been declared in the current scope
    USBWakeUp_IRQn              = 42,     /*!< USB Device WakeUp from suspend through EXTI Line Interrupt */  
..\USER\main.c: 0 warnings, 19 errors
compiling core_cm3.c...
compiling system_stm32f10x.c...
..\SYS\sys\stm32f10x.h(183): error:  #101: "USB_HP_CAN1_TX_IRQn" has already been declared in the current scope
    USB_HP_CAN1_TX_IRQn         = 19,     /*!< USB Device High Priority or CAN1 TX Interrupts       */
..\SYS\sys\stm32f10x.h(184): error:  #101: "USB_LP_CAN1_RX0_IRQn" has already been declared in the current scope
    USB_LP_CAN1_RX0_IRQn        = 20,     /*!< USB Device Low Priority or CAN1 RX0 Interrupts       */
..\SYS\sys\stm32f10x.h(185): error:  #101: "CAN1_RX1_IRQn" has already been declared in the current scope
    CAN1_RX1_IRQn               = 21,     /*!< CAN1 RX1 Interrupt                                   */
..\SYS\sys\stm32f10x.h(186): error:  #101: "CAN1_SCE_IRQn" has already been declared in the current scope
    CAN1_SCE_IRQn               = 22,     /*!< CAN1 SCE Interrupt                                   */
..\SYS\sys\stm32f10x.h(187): error:  #101: "EXTI9_5_IRQn" has already been declared in the current scope
    EXTI9_5_IRQn                = 23,     /*!< External Line[9:5] Interrupts                        */
..\SYS\sys\stm32f10x.h(188): error:  #101: "TIM1_BRK_IRQn" has already been declared in the current scope
    TIM1_BRK_IRQn               = 24,     /*!< TIM1 Break Interrupt                                 */
..\SYS\sys\stm32f10x.h(189): error:  #101: "TIM1_UP_IRQn" has already been declared in the current scope
    TIM1_UP_IRQn                = 25,     /*!< TIM1 Update Interrupt                                */
..\SYS\sys\stm32f10x.h(190): error:  #101: "TIM1_TRG_COM_IRQn" has already been declared in the current scope
    TIM1_TRG_COM_IRQn           = 26,     /*!< TIM1 Trigger and Commutation Interrupt               */
..\SYS\sys\stm32f10x.h(191): error:  #101: "TIM1_CC_IRQn" has already been declared in the current scope
    TIM1_CC_IRQn                = 27,     /*!< TIM1 Capture Compare Interrupt                       */
..\SYS\sys\stm32f10x.h(192): error:  #101: "TIM2_IRQn" has already been declared in the current scope
    TIM2_IRQn                   = 28,     /*!< TIM2 global Interrupt                                */
..\SYS\sys\stm32f10x.h(193): error:  #101: "TIM3_IRQn" has already been declared in the current scope
    TIM3_IRQn                   = 29,     /*!< TIM3 global Interrupt                                */
..\SYS\sys\stm32f10x.h(195): error:  #101: "I2C1_EV_IRQn" has already been declared in the current scope
    I2C1_EV_IRQn                = 31,     /*!< I2C1 Event Interrupt                                 */
..\SYS\sys\stm32f10x.h(196): error:  #101: "I2C1_ER_IRQn" has already been declared in the current scope
    I2C1_ER_IRQn                = 32,     /*!< I2C1 Error Interrupt                                 */
..\SYS\sys\stm32f10x.h(199): error:  #101: "SPI1_IRQn" has already been declared in the current scope
    SPI1_IRQn                   = 35,     /*!< SPI1 global Interrupt                                */
..\SYS\sys\stm32f10x.h(201): error:  #101: "USART1_IRQn" has already been declared in the current scope
    USART1_IRQn                 = 37,     /*!< USART1 global Interrupt                              */
..\SYS\sys\stm32f10x.h(202): error:  #101: "USART2_IRQn" has already been declared in the current scope
    USART2_IRQn                 = 38,     /*!< USART2 global Interrupt                              */
..\SYS\sys\stm32f10x.h(204): error:  #101: "EXTI15_10_IRQn" has already been declared in the current scope
    EXTI15_10_IRQn              = 40,     /*!< External Line[15:10] Interrupts                      */




Target not created



重复定义的问题    求大神帮忙告知怎么改

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165540
金钱
165540
注册时间
2010-12-1
在线时间
2117 小时
发表于 2015-12-19 14:09:42 | 显示全部楼层
根据报错,找下问题。
我是开源电子网www.openedv.com站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺http://openedv.taobao.com
正点原子官方微信公众平台,点击这里关注“正点原子”
回复

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2025-6-21 12:40

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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