..\USER\stm32f10x.h(428): error: #67: expected a "}" ADC1_2_IRQn = 18, /*!

MDK软件编译,出现如下错误:

..\USER\stm32f10x.h(428): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
..\USER\stm32f10x.h(472): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;

解决办法:
1

配置MDK型号和头文件定义相匹配

2

posted @ 2017-11-07 13:12  thomas_blog  阅读(1724)  评论(0编辑  收藏  举报