circuitpython/extmod
Paul Sokolovsky d5e9ab6e61 extmod/machine_pulse: Make time_pulse_us() not throw exceptions.
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.
2017-02-05 14:20:17 +03:00
..
crypto-algorithms extmod/moduhashlib: Add namespace prefix for crypto-algorithms/sha256.h. 2015-12-20 23:14:47 +02:00
lwip-include extmod/lwip: Change void pointers to unions, include new mphal.h file 2015-11-04 23:24:04 +03:00
re1.5 extmod/re1.5: Workaround issue with mingw32-gcc 4.2.1. 2015-11-01 02:39:01 +03:00
uzlib extmod/uzlib: Update to upstream v2.1. 2016-10-11 07:13:23 +03:00
machine_i2c.c extmod/machine_i2c: Add hook to constructor to call port-specific code. 2016-11-24 00:12:51 +11:00
machine_i2c.h extmod/machine_i2c: Expose soft I2C obj and readfrom/writeto funcs. 2016-11-24 00:11:45 +11:00
machine_mem.c extmod/machine_mem: Typo fix in comment. 2016-11-21 01:09:17 +03:00
machine_mem.h unix: machine_mem improvements 2015-12-18 22:01:03 +02:00
machine_pinbase.c extmod/machine_pinbase: Fix nanbox build. 2016-06-19 00:26:57 +03:00
machine_pinbase.h extmod/machine_pinbase: Implementation of PinBase class. 2016-06-18 23:40:28 +03:00
machine_pulse.c extmod/machine_pulse: Make time_pulse_us() not throw exceptions. 2017-02-05 14:20:17 +03:00
machine_pulse.h py: Be more specific with MP_DECLARE_CONST_FUN_OBJ macros. 2016-10-21 16:26:01 +11:00
machine_signal.c extmod/machine_signal: Implement "signal" abstraction for machine module. 2017-01-29 18:57:36 +03:00
machine_signal.h extmod/machine_signal: Implement "signal" abstraction for machine module. 2017-01-29 18:57:36 +03:00
machine_spi.c extmod/machine_spi: Provide reusable software SPI class. 2016-12-08 13:47:01 +11:00
machine_spi.h extmod/machine_spi: Provide reusable software SPI class. 2016-12-08 13:47:01 +11:00
misc.h py: Be more specific with MP_DECLARE_CONST_FUN_OBJ macros. 2016-10-21 16:26:01 +11:00
modbtree.c extmod/modbtree: Rename "sync" method to "flush" for consistency. 2016-12-05 01:50:55 +03:00
modframebuf.c extmod/modframebuf: Add GS4_HMSB format. 2017-01-25 23:19:28 +11:00
modlwip.c extmod/modlwip: Add socket.readinto() method. 2017-01-27 21:01:18 +11:00
modubinascii.c extmod/modubinascii: Fix crc32() function on 32-bit platforms. 2016-09-21 21:40:18 +03:00
modubinascii.h py: Be more specific with MP_DECLARE_CONST_FUN_OBJ macros. 2016-10-21 16:26:01 +11:00
moductypes.c extmod/uctypes: Allow full 32-bit address range. 2016-09-21 21:37:08 +03:00
moduhashlib.c all: Remove 'name' member from mp_obj_module_t struct. 2016-09-22 00:23:16 +10:00
moduheapq.c extmod/moduheapq: Revert change for adhoc relative-time queue support. 2016-12-22 06:37:49 +03:00
modujson.c extmod/modujson: Fix nanbox build. 2016-10-13 12:09:18 +11:00
modurandom.c extmod/modurandom: Allow to build with float disabled. 2016-11-30 12:58:54 +11:00
modure.c all: Remove 'name' member from mp_obj_module_t struct. 2016-09-22 00:23:16 +10:00
moduselect.c extmod/moduselect: Use configurable EVENT_POLL_HOOK instead of WFI. 2016-12-02 16:40:39 +11:00
modussl_axtls.c all: Remove readall() method, which is equivalent to read() w/o args. 2016-11-14 00:24:22 +03:00
modussl_mbedtls.c all: Remove readall() method, which is equivalent to read() w/o args. 2016-11-14 00:24:22 +03:00
modutimeq.c extmod/modutimeq: Make time_less_than be actually "less than", not less/eq. 2016-12-24 00:06:29 +03:00
moduzlib.c all: Remove readall() method, which is equivalent to read() w/o args. 2016-11-14 00:24:22 +03:00
modwebrepl.c all: Remove 'name' member from mp_obj_module_t struct. 2016-09-22 00:23:16 +10:00
modwebsocket.c all: Remove 'name' member from mp_obj_module_t struct. 2016-09-22 00:23:16 +10:00
modwebsocket.h extmod/modwebsocket.h: Split websocket-related defines for reuse. 2016-04-10 13:42:51 +03:00
uos_dupterm.c extmod/moduos_dupterm: Renamed to uos_dupterm. 2016-10-26 02:08:37 +03:00
utime_mphal.c extmod/utime_mphal: ticks_diff/ticks_add: Don't hardcode 32-bit types. 2016-11-03 23:54:16 +03:00
utime_mphal.h extmod/utime_mphal: Implement ticks_add(), add to all maintained ports. 2016-10-29 17:30:05 +03:00
vfs_fat_diskio.c extmod: Merge old fsusermount.h header into vfs.h and vfs_fat.h. 2017-01-30 12:26:08 +11:00
vfs_fat_file.c extmod/vfs_fat: Remove unused fatfs_builtin_open function. 2017-01-30 12:26:08 +11:00
vfs_fat_misc.c extmod/vfs_fat: Remove unused function fat_vfs_listdir. 2017-01-30 12:26:08 +11:00
vfs_fat.c extmod/vfs_fat.c: Use explicit include path for timeutils.h. 2017-01-30 23:10:16 +11:00
vfs_fat.h extmod/vfs_fat: Remove unused function fat_vfs_listdir. 2017-01-30 12:26:08 +11:00
vfs_reader.c extmod/vfs_reader: Fix use of NLR by popping context. 2017-01-30 22:26:54 +11:00
vfs.c extmod: Merge old fsusermount.h header into vfs.h and vfs_fat.h. 2017-01-30 12:26:08 +11:00
vfs.h extmod: Merge old fsusermount.h header into vfs.h and vfs_fat.h. 2017-01-30 12:26:08 +11:00
virtpin.c all: Rename mp_obj_type_t::stream_p to protocol. 2016-06-18 18:44:57 +03:00
virtpin.h extmod/virtpin: Initial implementation of open-ended C-level Pin interface. 2016-05-27 01:08:43 +03:00