Mercurial > ~darius > hgwebdir.cgi > avr
comparison Makefile @ 60:50fca9562310
Add support for reading/writing to a DS1307 over TWI/IIC.
Note that iic_read() appears to have a bug where it stops 1 byte earlier than
expected, work around it for now by adding 1 in the gettod() function.
tempctrl.c now prints the TOD as read from the RTC for each line.
author | darius@Inchoate |
---|---|
date | Thu, 30 Oct 2008 11:53:32 +1030 |
parents | 5898fba6593c |
children |
comparison
equal
deleted
inserted
replaced
59:c72cf25881fe | 60:50fca9562310 |
---|---|
1 # | 1 # |
2 # $Id$ | 2 # $Id$ |
3 # | 3 # |
4 | 4 |
5 PROG= testavr | 5 PROG= testavr |
6 SRCS= 1wire.c cons.c tempctrl.c testavr.c | 6 SRCS= 1wire.c cons.c tempctrl.c testavr.c ds1307.c |
7 .if defined(WITHUSB) | 7 .if defined(WITHUSB) |
8 SRCS+= usb.c | 8 SRCS+= usb.c |
9 CFLAGS+=-DWITHUSB | 9 CFLAGS+=-DWITHUSB |
10 .endif | 10 .endif |
11 | 11 |