高中生
最后登录1970-1-1
在线时间 小时
注册时间2018-4-14
|
楼主 |
发表于 2018-4-15 21:37:42
|
显示全部楼层
刚发现这个错误是因为包含路径只能是头文件的上级文件,我有一个包含了再上一级文件了,现在错误如下
*** Using Compiler 'V5.06 update 3 (build 300)', folder: 'D:\keil 5\ARM\ARMCC\Bin'
Build target 'Target 1'
compiling core_cm3.c...
compiling misc.c...
..\Libraries\CMSIS\stm32f10x.h(298): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\Libraries\CMSIS\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..\Libraries\STM32F10x_StdPeriph_Driver\src\misc.c: 1 warning, 1 error
compiling system_stm32f10x.c...
..\Libraries\CMSIS\stm32f10x.h(298): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\Libraries\CMSIS\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..\Libraries\CMSIS\system_stm32f10x.c: 1 warning, 1 error
compiling stm32f10x_adc.c...
..\Libraries\CMSIS\stm32f10x.h(298): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\Libraries\CMSIS\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_adc.c: 1 warning, 1 error
compiling stm32f10x_bkp.c...
..\Libraries\CMSIS\stm32f10x.h(298): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\Libraries\CMSIS\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
等等 |
|