..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).
我找了,没有发现少头文件呀
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
---------------------------------
麻烦原子哥看下有没有少,我没发现少呀
你是exti.c少了一些定义
检查exti.c,是不是包含了stm32f10x_exti.h
这个很基础的问题,多看看我们教程吧,不知道强调了多少遍了。
我们的都是在stm32f10x_conf.h里面配置的。
一周热门 更多>