identifier "EXTI_InitTypeDef" is undefined

STM32F103系列用keil编程时出现错误

2014-03-14 10:13 siwangqixiang    分类:嵌入式  |  浏览 252 次
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被设为注释了

  • 11
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值