CC2541开启I2C slave功能后,编译得到警告
时间:10-02
整理:3721RD
点击:
Warning[w52]: More than one definition for the byte at address 0x33 in common segment INTVEC. It is defined in module "hal_key" as well as in module "hal_i2c"
重复定义了,分别在 "hal_key" 和"hal_i2c"两个文件里。你查一下,要么换个定义,要么注释掉一个
难道是P2INT_VECTOR和I2C_VECTOR只能同时定义一个?我去掉P2INT_VECTOR就没有警告了!
对,这俩是一个意思,请看定义:
#define I2C_VECTOR P2INT_VECTOR /* I2C Interrupt vector, alias for P2INT_VECTOR */