Mercurial > ~darius > hgwebdir.cgi > avr-lib
comparison ds1307.h @ 8:119688bb743f
Don't spin forever waiting for the TWI hardware to do something.
I _think_ this will help the case where I find the micro is hanging but I
haven't seen an error from it yet.
author | darius@dons.net.au |
---|---|
date | Fri, 01 May 2009 15:21:31 +0930 |
parents | 3879f487b661 |
children | b5e4591b6570 |
comparison
equal
deleted
inserted
replaced
7:d111f64eb619 | 8:119688bb743f |
---|---|
28 | 28 |
29 #define IIC_STFAIL -1 | 29 #define IIC_STFAIL -1 |
30 #define IIC_FAILARB -2 | 30 #define IIC_FAILARB -2 |
31 #define IIC_SLNAK -3 | 31 #define IIC_SLNAK -3 |
32 #define IIC_NOREPLY -4 | 32 #define IIC_NOREPLY -4 |
33 #define IIC_NORESP -5 | |
33 #define IIC_UNKNOWN -99 | 34 #define IIC_UNKNOWN -99 |
34 | 35 |
35 #define DS1307_ADR 0xd0 // DS1307's TWI address | 36 #define DS1307_ADR 0xd0 // DS1307's TWI address |
36 | 37 |
37 typedef struct { | 38 typedef struct { |