* Allow COPTIM to be set outside Makefile
* Use -Wall -Werror * Fix some warnings
This commit is contained in:
4
i2c.c
4
i2c.c
@@ -79,7 +79,7 @@ bool i2c_send_address(int addr, bool write)
|
||||
return i2c_send_data((addr<<1) + (write?0:1));
|
||||
}
|
||||
|
||||
bool i2c_send_data(int data)
|
||||
bool i2c_send_data(unsigned int data)
|
||||
{
|
||||
IREG(I2DAT) = data;
|
||||
IREG(I2CONCLR) = STAFLAG | STOFLAG | SIFLAG;
|
||||
@@ -94,7 +94,7 @@ bool i2c_send_data(int data)
|
||||
}
|
||||
}
|
||||
|
||||
bool i2c_receive_data(int *data, bool last)
|
||||
bool i2c_receive_data(unsigned int *data, bool last)
|
||||
{
|
||||
if (!last)
|
||||
IREG(I2CONSET) = AAFLAG;
|
||||
|
||||
Reference in New Issue
Block a user