F:\实验\test3.c(106): error: #20: identifier "EXTI_InitTypeDef" is undefined F:\实验\test3.c(117): warning: #223-D: function "EXTI_ClearITPendingBit" declared implicitly F:\实验\test3.c(117): error: #20: identifier "EXTI_Line4" is undefined F:\实验\test3.c(119): error: #20: identifier "EXTI_Line8" is undefined F:\实验\test3.c(120): error: #20: identifier "EXTI_Mode_Interrupt" is undefined F:\实验\test3.c(121): error: #20: identifier "EXTI_Trigger_Falling" is undefined F:\实验\test3.c(123): warning: #223-D: function "EXTI_Init" declared implicitly F:\实验\test3.c(218): error: #20: identifier "EXTI9_5_IRQChannel" is undefined F:\实验\test3.c(264): warning: #223-D: function "EXTI_GetITStatus" declared implicitly F:\实验\test3.c(264): error: #20: identifier "EXTI_Line8" is undefined F:\实验\test3.c(266): warning: #223-D: function "EXTI_ClearITPendingBit" declared implicitly 请问是哪个库文件没有添加进project中,导致EXTI中断没有定义吗?
2014-03-14 10:23
提问者采纳
你看一下stm32f10x_conf.h 中的#include "stm32f10x_exti.h" 有没有包含
解决了,在stm32f10x_conf.h里面,exti被设为注释了