code: 9ferno

ref: 80be5158599a247dff7f7701cc883c118b15eaa6
dir: /os/sa1110/i2c.h/

View raw version
/* 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 */