编译F103C8t6时出现
..\..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\(298): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..\..\User\bsp\lcd\bsp_lcd.c: 1 warning, 1 error
其实算是一种低级错误,解决办法为:在没有其他错误下,在C/C++选项中的宏定义,把STM32F10X_HD,USE_STDPERIPH_DRIVER改为STM32F10X_MD,USE_STDPERIPH_DRIVER 就可以编译得通了。不要忘记把启动文件也改掉为MD的。