diff ds1307.c @ 61:0910ab6f0095

Add attribution for IIC routines.
author darius@Inchoate
date Thu, 30 Oct 2008 20:05:36 +1030
parents 50fca9562310
children 1ef17cd8af7a
line wrap: on
line diff
--- a/ds1307.c	Thu Oct 30 11:53:32 2008 +1030
+++ b/ds1307.c	Thu Oct 30 20:05:36 2008 +1030
@@ -72,6 +72,8 @@
  * IIC_SLNAK	Slave NAK'd.
  * IIC_NOREPLY	No reply (no such slave?)
  * IIC_UNKNOWN	Unexpected return from TWI reg.
+ *
+ * Heaviy cribbed from twitest.c by Joerg Wunsch
  */
 int
 iic_read(uint8_t *data, uint8_t len, uint8_t adr, uint8_t sla) {
@@ -253,6 +255,8 @@
  * IIC_SLNAK	Slave NAK'd.
  * IIC_NOREPLY	No reply (no such slave?)
  * IIC_UNKNOWN	Unexpected return from TWI reg.
+ *
+ * Heaviy cribbed from twitest.c by Joerg Wunsch
  */
 int
 iic_write(uint8_t *data, uint8_t len, uint8_t adr, uint8_t sla) {