micropython/extmod
Paul Sokolovsky e429daa572 extmod/utime_mphal: Fix implementation of new semantics of ticks_diff().
Now the function properly uses ring arithmetic to return signed value
in range (inclusive):
[-MICROPY_PY_UTIME_TICKS_PERIOD/2, MICROPY_PY_UTIME_TICKS_PERIOD/2-1].

That means that function can properly process 2 time values away from
each other within MICROPY_PY_UTIME_TICKS_PERIOD/2 ticks, but away in
both directions. For example, if tick value 'a' predates tick value 'b',
ticks_diff(a, b) will return negative value, and positive value otherwise.
But at positive value of MICROPY_PY_UTIME_TICKS_PERIOD/2-1, the result
of the function will wrap around to negative -MICROPY_PY_UTIME_TICKS_PERIOD/2,
in other words, if a follows b in more than MICROPY_PY_UTIME_TICKS_PERIOD/2 - 1
ticks, the function will "consider" a to actually predate b.
2016-10-30 03:07:22 +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
fsusermount.c extmod/vfs_fat: Use mp_raise_OSError helper function. 2016-10-07 13:44:55 +11:00
fsusermount.h py: Be more specific with MP_DECLARE_CONST_FUN_OBJ macros. 2016-10-21 16:26:01 +11:00
machine_i2c.c extmod/machine_i2c: Use writes not reads in i2c.scan(). 2016-10-11 15:30:46 +11:00
machine_i2c.h extmod: Add generic machine.I2C class, with bit-bang I2C. 2016-04-12 14:06:54 +01:00
machine_mem.c extmod/modmachine: Truncate integers that are to be stored using mem*. 2016-02-10 17:05:03 +00: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: Use mp_raise_OSError helper function. 2016-10-07 13:52:14 +11:00
machine_pulse.h py: Be more specific with MP_DECLARE_CONST_FUN_OBJ macros. 2016-10-21 16:26:01 +11:00
machine_spi.c extmod/machine_spi: Add optional support for fast software SPI. 2016-10-04 13:46:40 +11:00
machine_spi.h py: Be more specific with MP_DECLARE_CONST_FUN_OBJ macros. 2016-10-21 16:26: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: Use mp_raise_OSError helper function. 2016-10-07 13:52:14 +11:00
modframebuf.c all: Remove 'name' member from mp_obj_module_t struct. 2016-09-22 00:23:16 +10:00
modlwip.c extmod/modlwip: Use mp_raise_OSError helper function. 2016-10-07 13:47:57 +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 all: Remove 'name' member from mp_obj_module_t struct. 2016-09-22 00:23:16 +10:00
modujson.c extmod/modujson: Fix nanbox build. 2016-10-13 12:09:18 +11:00
modurandom.c all: Remove 'name' member from mp_obj_module_t struct. 2016-09-22 00:23:16 +10:00
modure.c all: Remove 'name' member from mp_obj_module_t struct. 2016-09-22 00:23:16 +10:00
modussl_axtls.c extmod: Use mp_raise_OSError helper function. 2016-10-07 13:52:14 +11:00
modussl_mbedtls.c extmod/modussl_mbedtls: Add dummy setblocking() method. 2016-10-15 23:46:13 +03:00
moduzlib.c extmod: Use mp_raise_OSError helper function. 2016-10-07 13:52:14 +11: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: Fix implementation of new semantics of ticks_diff(). 2016-10-30 03:07:22 +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.c extmod/vfs_fat: Add file and directory checks for remove and rmdir. 2016-10-11 16:03:52 +11:00
vfs_fat_diskio.c extmod/vfs_fat_diskio: Actually support sectors != 512 with Python blockdevs. 2016-03-27 14:21:06 +03:00
vfs_fat_ffconf.c extmod/vfs_fat_ffconf: Reusable FatFs module, move from stmhal/ffconf. 2016-02-15 00:19:27 +02:00
vfs_fat_file.c extmod/vfs_fat_file: Make file.close() a no-op if file already closed. 2016-10-24 12:59:20 +11:00
vfs_fat_file.h py: Be more specific with MP_DECLARE_CONST_FUN_OBJ macros. 2016-10-21 16:26:01 +11:00
vfs_fat_lexer.c extmod/vfs_fat_lexer: Add func prototype for pedantic warnings. 2016-03-03 14:53:36 +02:00
vfs_fat_misc.c extmod/vfs_fat: Use mp_raise_OSError helper function. 2016-10-07 13:44:55 +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