summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-05-13 11:23:32 +0100
committerDamien George <damien.p.george@gmail.com>2016-05-13 11:23:32 +0100
commit1e388079f9ff7e24adb4592b3c81aed314f86827 (patch)
tree0b4fc849e703e8ec7550c985dcb5f8dda908f0c7
parent1dc2862a837a08c6aa96fb369657be21043015ad (diff)
downloadmicropython-1e388079f9ff7e24adb4592b3c81aed314f86827.tar.gz
micropython-1e388079f9ff7e24adb4592b3c81aed314f86827.zip
stmhal/i2c: Expose I2CHandle3 for use by custom C code.
If custom C code uses the I2C busses then it needs access to these structures for i2c_init().
-rw-r--r--stmhal/i2c.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/i2c.h b/stmhal/i2c.h
index 849d3987c4..a159935e6a 100644
--- a/stmhal/i2c.h
+++ b/stmhal/i2c.h
@@ -29,6 +29,7 @@
extern I2C_HandleTypeDef I2CHandle1;
extern I2C_HandleTypeDef I2CHandle2;
+extern I2C_HandleTypeDef I2CHandle3;
extern const mp_obj_type_t pyb_i2c_type;
void i2c_init0(void);