新手上路
- 积分
- 25
- 金钱
- 25
- 注册时间
- 2021-1-25
- 在线时间
- 9 小时
|
1金钱
compiling LED.c...
..\USER\stm32f10x.h(167): error: #130: expected a "{"
typedef enum IRQn
..\USER\stm32f10x.h(170): error: #20: identifier "NonMaskableInt_IRQn" is undefined
NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */
..\USER\stm32f10x.h(171): error: #20: identifier "MemoryManagement_IRQn" is undefined
MemoryManagement_IRQn = -12, /*!< 4 Cortex-M3 Memory Management Interrupt */
..\USER\stm32f10x.h(172): error: #20: identifier "BusFault_IRQn" is undefined
BusFault_IRQn = -11, /*!< 5 Cortex-M3 Bus Fault Interrupt */
..\USER\stm32f10x.h(173): error: #20: identifier "UsageFault_IRQn" is undefined
UsageFault_IRQn = -10, /*!< 6 Cortex-M3 Usage Fault Interrupt */
..\USER\stm32f10x.h(174): error: #20: identifier "SVCall_IRQn" is undefined
SVCall_IRQn = -5, /*!< 11 Cortex-M3 SV Call Interrupt */
..\USER\stm32f10x.h(175): error: #20: identifier "DebugMonitor_IRQn" is undefined
DebugMonitor_IRQn = -4, /*!< 12 Cortex-M3 Debug Monitor Interrupt */
..\USER\stm32f10x.h(176): error: #20: identifier " endSV_IRQn" is undefined
PendSV_IRQn = -2, /*!< 14 Cortex-M3 Pend SV Interrupt */
..\USER\stm32f10x.h(177): error: #20: identifier "SysTick_IRQn" is undefined
SysTick_IRQn = -1, /*!< 15 Cortex-M3 System Tick Interrupt */
..\USER\stm32f10x.h(180): error: #20: identifier "WWDG_IRQn" is undefined
WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */
..\USER\stm32f10x.h(181): error: #20: identifier " VD_IRQn" is undefined
PVD_IRQn = 1, /*!< PVD through EXTI Line detection Interrupt */
..\USER\stm32f10x.h(182): error: #20: identifier "TAMPER_IRQn" is undefined
TAMPER_IRQn = 2, /*!< Tamper Interrupt */
..\USER\stm32f10x.h(183): error: #20: identifier "RTC_IRQn" is undefined
RTC_IRQn = 3, /*!< RTC global Interrupt */
..\USER\stm32f10x.h(184): error: #20: identifier "FLASH_IRQn" is undefined
FLASH_IRQn = 4, /*!< FLASH global Interrupt */
..\USER\stm32f10x.h(185): error: #20: identifier "RCC_IRQn" is undefined
RCC_IRQn = 5, /*!< RCC global Interrupt */
..\USER\stm32f10x.h(186): error: #20: identifier "EXTI0_IRQn" is undefined
EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */
..\USER\stm32f10x.h(187): error: #20: identifier "EXTI1_IRQn" is undefined
EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */
..\USER\stm32f10x.h(188): error: #20: identifier "EXTI2_IRQn" is undefined
EXTI2_IRQn = 8, /*!< EXTI Line2 Interrupt */
..\USER\stm32f10x.h(189): error: #20: identifier "EXTI3_IRQn" is undefined
EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */
..\USER\stm32f10x.h(190): error: #20: identifier "EXTI4_IRQn" is undefined
EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */
..\USER\stm32f10x.h(191): error: #20: identifier "DMA1_Channel1_IRQn" is undefined
DMA1_Channel1_IRQn = 11, /*!< DMA1 Channel 1 global Interrupt */
..\USER\stm32f10x.h(192): error: #20: identifier "DMA1_Channel2_IRQn" is undefined
DMA1_Channel2_IRQn = 12, /*!< DMA1 Channel 2 global Interrupt */
..\USER\stm32f10x.h(193): error: #20: identifier "DMA1_Channel3_IRQn" is undefined
DMA1_Channel3_IRQn = 13, /*!< DMA1 Channel 3 global Interrupt */
..\USER\stm32f10x.h(194): error: #20: identifier "DMA1_Channel4_IRQn" is undefined
DMA1_Channel4_IRQn = 14, /*!< DMA1 Channel 4 global Interrupt */
..\USER\stm32f10x.h(195): error: #20: identifier "DMA1_Channel5_IRQn" is undefined
DMA1_Channel5_IRQn = 15, /*!< DMA1 Channel 5 global Interrupt */
..\USER\stm32f10x.h(196): error: #20: identifier "DMA1_Channel6_IRQn" is undefined
DMA1_Channel6_IRQn = 16, /*!< DMA1 Channel 6 global Interrupt */
..\USER\stm32f10x.h(197): error: #20: identifier "DMA1_Channel7_IRQn" is undefined
DMA1_Channel7_IRQn = 17, /*!< DMA1 Channel 7 global Interrupt */
..\USER\stm32f10x.h(244): error: #20: identifier "ADC1_2_IRQn" is undefined
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\USER\stm32f10x.h(245): error: #20: identifier "USB_HP_CAN1_TX_IRQn" is undefined
USB_HP_CAN1_TX_IRQn = 19, /*!< USB Device High Priority or CAN1 TX Interrupts */
..\USER\stm32f10x.h(246): error: #20: identifier "USB_LP_CAN1_RX0_IRQn" is undefined
USB_LP_CAN1_RX0_IRQn = 20, /*!< USB Device Low Priority or CAN1 RX0 Interrupts */
..\HARDWARE\LED.c: 0 warnings, 30 errors
———————————————————————————————————————————————— ————————————————————————————————————————————————
(新手小白)按照视频上的步骤进行,结果出现上述问题,望大神指导
|
|