diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-22 21:39:35 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-22 21:39:35 +0000 |
| commit | 74a4d8c26dd3c1e9febcb717cfd6cb6512991a7a (patch) | |
| tree | c6e220ba61db3a6ea4052e6841296d829654e664 /os/sa1110/i2c.h | |
| parent | 46439007cf417cbd9ac8049bb4122c890097a0fa (diff) | |
20060303
Diffstat (limited to 'os/sa1110/i2c.h')
| -rw-r--r-- | os/sa1110/i2c.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/os/sa1110/i2c.h b/os/sa1110/i2c.h new file mode 100644 index 00000000..fb179606 --- /dev/null +++ b/os/sa1110/i2c.h @@ -0,0 +1,16 @@ +/* i2cgpio.c */ + +int i2c_write_byte(uchar addr, uchar data); +int i2c_read_byte(uchar addr, uchar *data); +void i2c_reset(void); + +extern unsigned char i2c_iactl[]; +int i2c_setpin(int b); +int i2c_clrpin(int b); +int i2c_getpin(int b); + +/* GPIO pin assignments (0->31) - defined in arch????.c */ +extern int gpio_i2c_sda; /* in/out, as per i2c protocol */ +extern int gpio_i2c_scl; /* in/out, as per i2c protocol */ + + |
