请问下面问题编译无法通过是什么原因?

2019-07-21 08:14发布

         ..HARDWAREEXTIexti.c(25): error:  #20: identifier "EXTI_InitTypeDef" is undefined
          EXTI_InitTypeDef EXTI_InitStructure;
..HARDWAREEXTIexti.c(35): error:  #20: identifier "EXTI_Line5" is undefined
        EXTI_InitStructure.EXTI_Line=EXTI_Line5;
..HARDWAREEXTIexti.c(36): error:  #20: identifier "EXTI_Mode_Interrupt" is undefined
        EXTI_InitStructure.EXTI_Mode = EXTI_Mode_Interrupt;     
..HARDWAREEXTIexti.c(37): error:  #20: identifier "EXTI_Trigger_Falling" is undefined
        EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Falling;//下降沿触发
..HARDWAREEXTIexti.c(39): warning:  #223-D: function "EXTI_Init" declared implicitly
        EXTI_Init(&EXTI_InitStructure);         //根据EXTI_InitStruct中指定的参数初始化外设EXTI寄存器
..HARDWAREEXTIexti.c(44): error:  #20: identifier "EXTI_Line15" is undefined
        EXTI_InitStructure.EXTI_Line=EXTI_Line15;
..HARDWAREEXTIexti.c(53): error:  #20: identifier "EXTI_Line0" is undefined
        EXTI_InitStructure.EXTI_Line=EXTI_Line0;
..HARDWAREEXTIexti.c(55): error:  #20: identifier "EXTI_Trigger_Rising" is undefined
        EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Rising;
..HARDWAREEXTIexti.c(98): error:  #20: identifier "t" is undefined
                t=t++;
..HARDWAREEXTIexti.c(100): warning:  #223-D: function "EXTI_ClearITPendingBit" declared implicitly
         EXTI_ClearITPendingBit(EXTI_Line5);    //清除LINE5上的中断标志位  
..HARDWAREEXTIexti.c(100): error:  #20: identifier "EXTI_Line5" is undefined
         EXTI_ClearITPendingBit(EXTI_Line5);    //清除LINE5上的中断标志位  
..HARDWAREEXTIexti.c(109): error:  #20: identifier "t" is undefined
            t=t++;
..HARDWAREEXTIexti.c(111): warning:  #223-D: function "EXTI_ClearITPendingBit" declared implicitly
         EXTI_ClearITPendingBit(EXTI_Line15);  //清除LINE15线路挂起位
..HARDWAREEXTIexti.c(111): error:  #20: identifier "EXTI_Line15" is undefined
         EXTI_ClearITPendingBit(EXTI_Line15);  //清除LINE15线路挂起位
..HARDWAREEXTIexti.c: 3 warnings, 11 errors
"..HARDWAREEXTIexti.c" - 11 Error(s), 3 Warning(s).

   我找了,没有发现少头文件呀
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
8条回答
fang百川
1楼-- · 2019-07-22 06:27
 精彩回答 2  元偷偷看……
songsiming27
2楼-- · 2019-07-22 10:48
好像我上次出现过这个问题  是修改启动文件解决的

一周热门 更多>