"inc/hw_i2c.h"和 "driverlib/i2c.h"的区别和联系??

2019-03-24 13:22发布

在编译  "I2C"  程序的时候,总是通不过。提示错误信息为:
warning:  #223-D: function "I2CMasterSlaveAddrSet" declared implicitly
warning:  #223-D: function "I2CMasterDataPut" declared implicitly
warning:  #223-D: function "I2CMasterControl" declared implicitly
error:  #20: identifier "I2C_MASTER_CMD_BURST_SEND_START" is undefined
warning:  #223-D: function "I2CMasterBusy" declared implicitly
error:  #20: identifier "I2C_MASTER_CMD_BURST_SEND_CONT" is undefined
error:  #20: identifier "I2C_MASTER_CMD_BURST_SEND_FINISH" is undefined
PCA9535.c - 3 Error(s), 4 Warning(s).


当时的头文件为:
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "inc/hw_gpio.h"
#include "inc/hw_i2c.h"
#include "driverlib/sysctl.h"


最后加上“#include "driverlib/i2c.h”之后编译通过,我一直以为"inc/hw_i2c.h"和 "driverlib/i2c.h"这种头文件的作用是一样的。请大家帮忙解释下它们的区别呢?谢谢了!!!

[ 本帖最后由 zzgezi 于 2012-8-25 15:54 编辑 ] 此帖出自小平头技术问答
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
4条回答
Study_Stellaris
2019-03-24 18:33
 精彩回答 2  元偷偷看……0人看过

一周热门 更多>

相关问题

    相关文章