summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-04-12 13:42:35 +0100
committerDamien George <damien.p.george@gmail.com>2016-04-12 14:06:54 +0100
commitd083712224602372c5fd22d0b9e2b32efe6fa26b (patch)
tree49d2f865325a4684a9d23ba702fe702fe2244475 /py/mpconfig.h
parent53ad681ed1786601ca5eccb60f8fd950b8bc47d7 (diff)
downloadmicropython-d083712224602372c5fd22d0b9e2b32efe6fa26b.tar.gz
micropython-d083712224602372c5fd22d0b9e2b32efe6fa26b.zip
extmod: Add generic machine.I2C class, with bit-bang I2C.
Should work on any machine that provides the correct pin functions.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index bbf0555137..017030b0f4 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -837,6 +837,10 @@ typedef double mp_float_t;
#define MICROPY_PY_MACHINE (0)
#endif
+#ifndef MICROPY_PY_MACHINE_I2C
+#define MICROPY_PY_MACHINE_I2C (0)
+#endif
+
#ifndef MICROPY_PY_USSL
#define MICROPY_PY_USSL (0)
#endif