From 33168081f48634d45902f0a31a27d4527c88a522 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 31 May 2016 14:25:19 +0100 Subject: 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. --- py/mpconfig.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'py') 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 -- cgit v1.2.3