* Allow COPTIM to be set outside Makefile

* Use -Wall -Werror
* Fix some warnings
This commit is contained in:
2011-05-18 09:55:02 +00:00
parent b3f0bbf7c9
commit 4d37c82b12
5 changed files with 7 additions and 6 deletions

4
i2c.c
View File

@@ -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;