../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103x6.h(99): error: #101: "DMA1_Channel7_IRQn" has already been declared in the current scope DMA1_Channel7_IRQn = 17, /*!< DMA1 Channel 7 global Interrupt */ ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103x6.h(100): error: #101: "ADC1_2_IRQn" has already been declared in the current scope ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103x6.h(101): 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 */ ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103x6.h(102): 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 */ ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103x6.h(103): error: #101: "CAN1_RX1_IRQn" has already been declared in the current scope CAN1_RX1_IRQn = 21, /*!< CAN1 RX1 Interrupt */
时间: 2024-03-07 14:51:15 浏览: 303
STM32F103+AD1(DMA)+AD2(TIMInterrupt)+AD3(DMA)
5星 · 资源好评率100%
这是一个编译错误,看起来是因为在当前作用域中重复声明了这些中断。可能是因为在头文件或源文件中多次包含了相同的文件,导致这些中断被重复定义。你可以尝试使用预处理器指令 #ifndef/#define/#endif 来避免重复包含,或者检查一下是否有其他的头文件或源文件包含了相同的文件。同时,你也可以检查一下是否存在不同的芯片或库版本,导致中断号码不同而引发冲突。
阅读全文