aboutsummaryrefslogtreecommitdiff
path: root/tests/extmod/machine_pulse.py.exp
AgeCommit message (Collapse)Author
2017-02-05extmod/machine_pulse: Make time_pulse_us() not throw exceptions.Paul Sokolovsky
machine.time_pulse_us() is intended to provide very fine timing, including while working with signal bursts, where each transition is tracked in row. Throwing and handling an exception may take too much time and "signal loss". So instead, in case of a timeout, just return negative value. Cases of timeout while waiting for initial signal stabilization, and during actual timing, are recognized. The documentation is updated accordingly, and rewritten somewhat to clarify the function behavior.
2016-09-16tests/extmod: Add test for machine.time_pulse_us().Damien George