summaryrefslogtreecommitdiff
path: root/firmware/export/i2c-pp.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/i2c-pp.h')
-rw-r--r--firmware/export/i2c-pp.h4
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 */
50extern struct spinlock i2c_spin;
51
48void i2c_init(void); 52void i2c_init(void);
49int i2c_readbyte(unsigned int dev_addr, int addr); 53int i2c_readbyte(unsigned int dev_addr, int addr);
50int pp_i2c_send(unsigned int addr, int data0, int data1); 54int pp_i2c_send(unsigned int addr, int data0, int data1);