diff options
author | Damien George <damien.p.george@gmail.com> | 2016-05-31 14:25:19 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-05-31 14:25:19 +0100 |
commit | 33168081f48634d45902f0a31a27d4527c88a522 (patch) | |
tree | fe0977d188cddd9f369636e5bd3e90e6d5c57013 /py | |
parent | cff2b7a6e3acf5fe81d9ada1c344a047332df32e (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.h | 5 |
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 |