aboutsummaryrefslogtreecommitdiff
path: root/extmod/machine_pulse.c
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 /extmod/machine_pulse.c
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 'extmod/machine_pulse.c')
-rw-r--r--extmod/machine_pulse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/machine_pulse.c b/extmod/machine_pulse.c
index 97590f867..8c8bff510 100644
--- a/extmod/machine_pulse.c
+++ b/extmod/machine_pulse.c
@@ -28,7 +28,7 @@
#include "py/mperrno.h"
#include "extmod/machine_pulse.h"
-#if MICROPY_PY_MACHINE
+#if MICROPY_PY_MACHINE_PULSE
mp_uint_t machine_time_pulse_us(mp_hal_pin_obj_t pin, int pulse_level, mp_uint_t timeout_us) {
mp_uint_t start = mp_hal_ticks_us();