summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-05-31 14:25:19 +0100
committerDamien George <damien.p.george@gmail.com>2016-05-31 14:25:19 +0100
commit33168081f48634d45902f0a31a27d4527c88a522 (patch)
treefe0977d188cddd9f369636e5bd3e90e6d5c57013 /py
parentcff2b7a6e3acf5fe81d9ada1c344a047332df32e (diff)
extmod/machine: Add MICROPY_PY_MACHINE_PULSE config for time_pulse_us.
Since not all ports that enable the machine module have the pin HAL functions.
Diffstat (limited to 'py')
-rw-r--r--py/mpconfig.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 92f17724f..084fc246f 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -867,6 +867,11 @@ typedef double mp_float_t;
#define MICROPY_PY_MACHINE (0)
#endif
+// Whether to include: time_pulse_us
+#ifndef MICROPY_PY_MACHINE_PULSE
+#define MICROPY_PY_MACHINE_PULSE (0)
+#endif
+
#ifndef MICROPY_PY_MACHINE_I2C
#define MICROPY_PY_MACHINE_I2C (0)
#endif