summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/accel.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-25 23:26:14 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-25 23:26:14 +0000
commit6cfda3084dfef44892e85b1c658f0ad9b0643641 (patch)
treecfa5ae14032249d4982cd00e17b9e47df3025fbd /stmhal/accel.h
parent681d0a9ca7acd96a25b41768f98c49e21846074d (diff)
downloadmicropython-6cfda3084dfef44892e85b1c658f0ad9b0643641.tar.gz
micropython-6cfda3084dfef44892e85b1c658f0ad9b0643641.zip
stmhal: Add I2C support; change accel driver to use new I2C.
Diffstat (limited to 'stmhal/accel.h')
-rw-r--r--stmhal/accel.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/stmhal/accel.h b/stmhal/accel.h
index 88fabfd543..9f9c0a8e06 100644
--- a/stmhal/accel.h
+++ b/stmhal/accel.h
@@ -1,3 +1,4 @@
-void accel_init(void);
-
+extern I2C_HandleTypeDef I2cHandle;
extern const mp_obj_type_t pyb_accel_type;
+
+void accel_init(void);