Damien George
f0dddb688d
py/nlrx86: Convert from assembler to C file with inline asm.
2017-03-06 17:13:43 +11:00
Damien George
321848470c
py/nlrx64: Convert from assembler to C file with inline asm.
2017-03-06 17:13:35 +11:00
Damien George
a85755aa22
py/nlrxtensa: Convert from assembler to C file with inline asm.
...
nlr_jump is a little bit inefficient because it now saves a register to
the stack.
2017-03-06 17:13:16 +11:00
Damien George
be3d7f91e5
py/nlr.h: Mark nlr_jump_fail as NORETURN.
2017-03-06 17:13:16 +11:00
Damien George
05fe66f68a
py: Move locals/globals dicts to the thread-specific state.
...
Each threads needs to have its own private references to its current
locals/globals dicts, otherwise functions running within different
contexts (eg imported from different files) can behave very strangely.
2017-03-06 17:01:56 +11:00
Paul Sokolovsky
fe866d996f
unix/moduselect: Properly implement ipoll object iteration.
...
TODO: There's another issue to care about: poll set being modified during
iteration.
2017-03-05 13:51:22 +01:00
Paul Sokolovsky
3ab6aa3a6d
tests/basic: Split tests into working with small ints and not working.
...
Tests which don't work with small ints are suffixed with _intbig.py. Some
of these may still work with long long ints and need to be reclassified
later.
2017-03-04 00:13:27 +03:00
Paul Sokolovsky
89e570a5b4
tests/run-tests: Check for big int availability and skip related tests.
...
Big aka arbitrary-precision integers (implemented by MPZ module) are used
in tests starting with "int_big_" or ending with "_intbig".
2017-03-03 20:16:59 +03:00
Damien George
5e83a75c78
unix: Remove remaining, obsolete traces of GNU readline support.
2017-03-03 17:55:40 +11:00
Damien George
3d91c12d33
tests/basics: Add further tests for OrderedDict.
2017-03-03 11:23:54 +11:00
Damien George
9275c18270
py/map: Fix bugs with deletion of elements from OrderedDict.
...
There were 2 bugs, now fixed by this patch:
- after deleting an element the len of the dict did not decrease by 1
- after deleting an element searching through the dict could lead to
a seg fault due to there being an MP_OBJ_SENTINEL in the ordered array
2017-03-03 11:21:19 +11:00
stijn
845a80a6c8
msvc: Add machine/pin-related sources to build
...
This fixes unresolved references after [f1ea3bc ]
2017-03-02 09:54:03 +01:00
Damien George
e4be56a0ea
qemu-arm: Enable machine module and associated tests.
2017-03-02 16:39:58 +11:00
Damien George
4f3c1b3fc1
stmhal/modnwcc3k: Add include for mp_hal_delay_ms.
2017-03-02 16:17:34 +11:00
Damien George
ecc635d551
tests/extmod: Add test for machine.Signal class.
2017-03-02 16:09:16 +11:00
Damien George
f1ea3bc72b
unix/modmachine: Add Signal class to machine module.
2017-03-02 16:08:20 +11:00
Damien George
78185e6a6c
stmhal/modpyb: Use utime ticks ms/us functions instead of custom ones.
2017-03-02 15:43:14 +11:00
Damien George
89738e8240
stmhal: Rename sys_tick ticks/delay functions to corresp. mp_hal ones.
...
The renames are:
HAL_Delay -> mp_hal_delay_ms
sys_tick_udelay -> mp_hal_delay_us
sys_tick_get_microseconds -> mp_hal_ticks_us
And mp_hal_ticks_ms is added to provide the full set of timing functions.
Also, a separate HAL_Delay function is added which differs slightly from
mp_hal_delay_ms and is intended for use only by the ST HAL functions.
2017-03-02 15:32:32 +11:00
Damien George
6ab5512132
stmhal: Use mp_hal_delay_ms instead of HAL_Delay.
2017-03-02 15:02:57 +11:00
Peter Hinch
1f549a3496
docs/library/lcd160cr: Add note about supported JPEG format/encodings.
2017-02-28 17:45:24 +11:00
Paul Sokolovsky
ed81574fe9
docs/machine: Fix formatting of Constants section.
...
Render related constants grouped together, with common description.
2017-02-28 00:38:15 +03:00
Damien George
528aeb3bf3
drivers/display/lcd160cr: Add check that JPEG size is less than 65536.
2017-02-27 18:39:35 +11:00
Damien George
f4a12dca58
py/objarray: Disallow slice-assignment to read-only memoryview.
...
Also comes with a test for this. Fixes issue #2904 .
2017-02-27 16:09:57 +11:00
Krzysztof Blazewicz
23ccb3e12e
tools/gen-cpydiff.py: configurable CPython and micropython executables
2017-02-27 15:39:55 +11:00
Krzysztof Blazewicz
ae116c2430
docs/Makefile: define and use PYTHON as the interpreter for CPYDIFF
...
User can override PYTHON executable before running script,
gen-cpydiff.py works only with Python3 and most systems register
its executable as 'python3'.
2017-02-27 15:39:55 +11:00