diff options
Diffstat (limited to 'firmware/export/i2c-pp.h')
-rw-r--r-- | firmware/export/i2c-pp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/i2c-pp.h b/firmware/export/i2c-pp.h index 3048acbaba..908db22554 100644 --- a/firmware/export/i2c-pp.h +++ b/firmware/export/i2c-pp.h | |||
@@ -45,6 +45,10 @@ | |||
45 | 45 | ||
46 | /* TODO: Fully implement i2c driver */ | 46 | /* TODO: Fully implement i2c driver */ |
47 | 47 | ||
48 | /* To be used by drivers that need to do multiple i2c operations | ||
49 | atomically */ | ||
50 | extern struct spinlock i2c_spin; | ||
51 | |||
48 | void i2c_init(void); | 52 | void i2c_init(void); |
49 | int i2c_readbyte(unsigned int dev_addr, int addr); | 53 | int i2c_readbyte(unsigned int dev_addr, int addr); |
50 | int pp_i2c_send(unsigned int addr, int data0, int data1); | 54 | int pp_i2c_send(unsigned int addr, int data0, int data1); |