X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=modules%2Fcomm%2Fi2c%2Fi2c.c;fp=modules%2Fcomm%2Fi2c%2Fi2c.c;h=81dae5cede1d3b7a82728cd2f72081802af8aa08;hp=680655a692019a4156682dd448f4116cf0ae5aaa;hb=1914199c91d6c65dbcad7f1f7f5fac23741fa2fd;hpb=651f6fe35fb59c4ded98e0204c20509e79f84ee1 diff --git a/modules/comm/i2c/i2c.c b/modules/comm/i2c/i2c.c index 680655a..81dae5c 100644 --- a/modules/comm/i2c/i2c.c +++ b/modules/comm/i2c/i2c.c @@ -352,6 +352,9 @@ i2c_reset(void) int8_t i2c_recv(uint8_t dest_add, uint8_t size, uint8_t ctrl) { #ifndef CONFIG_MODULE_I2C_MASTER + (void)dest_add; + (void)size; + (void)ctrl; return -EINVAL; #else uint8_t flags; @@ -535,7 +538,10 @@ void i2c_debug(void) * Interrupt routing for I2C. Refer to datasheets for more * informations. */ -SIGNAL(SIG_2WIRE_SERIAL) +#if !defined(TWI_vect) && defined(SIG_2WIRE_SERIAL) +#define TWI_vect SIG_2WIRE_SERIAL +#endif +SIGNAL(TWI_vect) { uint8_t hard_status; uint8_t command = (1<