i've that in that source ... please someone help ...
I2C_Init(100000);
while(!I2C_Is_Idle());
I2C_Start();
I2C_Wr(0xf0); // send byte via I2C (command to 24cO2)
I2C_Wr(ctrr);
I2C_Wr(spd); // send data (data to be written)
I2C_Stop();
when i build ... i get that error "function required" in that lines :
I2C_Start();
I2C_Stop();
someone help me please
regards
error "function required"
Re: error "function required"
It seems that there is a constant called I2C_START and I2C_STOP. We tried to eliminated all possible traces of them, but they keep on resurrecting.
Please check the def file for your chip and rename the constants to I2C_START_ and I2C_STOP_.
The name of the def file is in the format P16FXXXdef.c and is located in the Defs folder of your installation.
Please check the def file for your chip and rename the constants to I2C_START_ and I2C_STOP_.
The name of the def file is in the format P16FXXXdef.c and is located in the Defs folder of your installation.