summaryrefslogtreecommitdiff
path: root/digital/mimot/src/dirty/twi_proto.c
diff options
context:
space:
mode:
authorNicolas Schodet2010-11-29 23:07:46 +0100
committerNicolas Schodet2010-11-29 23:07:46 +0100
commitdb212811293f91e0f1147eb57e5f6d5df2db10ef (patch)
tree0d531fb2c2380734a90e949ed66e4978fa8007ef /digital/mimot/src/dirty/twi_proto.c
parent0f105f99e378bb596f2c305f64bdd7cf1bc87446 (diff)
digital/avr/modules/twi: cleanup TWI module, refs #29, closes #90
- use contexts - changed interface - merge test programs - share polling mechanism - prepare place for other drivers - add callback system - use english comments
Diffstat (limited to 'digital/mimot/src/dirty/twi_proto.c')
-rw-r--r--digital/mimot/src/dirty/twi_proto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/digital/mimot/src/dirty/twi_proto.c b/digital/mimot/src/dirty/twi_proto.c
index a6894109..3048c594 100644
--- a/digital/mimot/src/dirty/twi_proto.c
+++ b/digital/mimot/src/dirty/twi_proto.c
@@ -67,10 +67,10 @@ twi_proto_init (void)
void
twi_proto_update (void)
{
- u8 buf[AC_TWI_SL_RECV_BUFFER_SIZE];
+ u8 buf[AC_TWI_SLAVE_RECV_BUFFER_SIZE];
u8 read_data;
/* Handle incoming command. */
- while ((read_data = twi_sl_poll (buf, sizeof (buf))))
+ while ((read_data = twi_slave_poll (buf, sizeof (buf))))
twi_proto_callback (buf, read_data);
/* Update status. */
u8 status_with_crc[8];
@@ -89,7 +89,7 @@ twi_proto_update (void)
/* Compute CRC. */
status_with_crc[0] = crc_compute (&status_with_crc[1],
sizeof (status_with_crc) - 1);
- twi_sl_update (status_with_crc, sizeof (status_with_crc));
+ twi_slave_update (status_with_crc, sizeof (status_with_crc));
}
/** Handle one command. */