目录
一、问题: Keil报错#67: expected a "}"
一、问题: Keil报错#67: expected a "}"
STM32 在Keil中更改主控芯片导致的编译报错:..\CMSIS\stm32f10x.h(298): error: #67: expected a "}"
keil程序默认选的是STM32F103C8芯片,现在要用STM32F103F103ZET6型号,直接更改魔法棒里的devices的芯片型号
但是随后的编译发现报了错,情况如下:
..\CMSIS\stm32f10x.h(298): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
stm32f10x_it.c: 0 warnings, 1 error
compiling stm32f10x_rcc.c...
..\CMSIS\stm32f10x.h(298): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\FWlib\src\stm32f10x_rcc.c: 0 warnings, 1 error
compiling stm32f10x_gpio.c...
..\CMSIS\stm32f10x.h(298): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\FWlib\src\stm32f10x_gpio.c: 0 warnings, 1 error
compiling usart1.c...
..\CMSIS\stm32f10x.h(298): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
usart1.c: 0 warnings, 1 error
compiling misc.c...
..\CMSIS\stm32f10x.h(298): error: #67: expec