Damien George
4fd7c1a2ac
tools, pyboard.py: Write data to pyboard in chunks of 256 bytes.
...
This speeds up writes significantly.
2014-12-20 18:09:04 +00:00
Damien George
2870d85a11
py: Save a few code bytes in parser; make vars local where possible.
2014-12-20 18:06:08 +00:00
Paul Sokolovsky
978f4ca2e1
run-tests: Allow to run testuite against Windows build on Linux (using Wine).
...
Just adjust line-endings of micropython.exe output, the rest should be
handled by Wine (automagically on properly configured distro).
To run:
MICROPY_MICROPYTHON=../windows/micropython.exe ./run-tests
2014-12-20 16:53:46 +02:00
stijn
f5efefd5a0
windows: Correctly interpret skipped tests, enable uhashlib and ubinascii
2014-12-20 16:52:22 +02:00
Damien George
6d3ae569cf
docs: Add CPy diff note for print_exception; embellish sys.platform.
2014-12-19 22:10:38 +00:00
Damien George
2a3e2b9033
py: Add execfile function (from Python 2); enable in stmhal port.
...
Adds just 60 bytes to stmhal binary. Addresses issue #362 .
2014-12-19 13:36:17 +00:00
Paul Sokolovsky
8427c5b76c
unix/windows: Make sure that process exit code is portable 8-bit value.
...
This fixes FORCED_EXIT internal flag leaking into Windows exit code.
2014-12-19 00:01:49 +02:00
Damien George
f04329e93b
lib/libm: Add acosh, asinh, atanh, tan; get working with stmhal.
...
acoshf, asinhf, atanhf were added from musl. mathsincos.c was
split up into its original, separate files (from newlibe-nano-2).
tan was added.
All of the important missing float functions are now implemented,
and pyboard now passes tests/float/math_fun.py (finally!).
2014-12-18 14:44:02 +00:00
Damien George
6936f4626c
tests: Get misc/print_exception and pyb/spi working on pyboard.
2014-12-18 13:37:56 +00:00
Paul Sokolovsky
c8b0229bc7
tests: sha256: skip test if uhashlib module is not available.
2014-12-18 00:32:15 +02:00
Gregory
5cf7ac7309
Fix leds.rst
...
N (mod 4) is 0..3
2014-12-18 00:06:48 +03:00
Paul Sokolovsky
9d944c7fb2
unix: Rename "time" module to "utime" to allow extensibility.
...
Name choosen per latest conventions and for compatibiity with stmhal port.
2014-12-17 00:13:32 +02:00
Damien George
9642846d71
docs: Define more clearly the behaviour of LED methods.
...
Addresses issue #1006 .
2014-12-16 11:55:46 +00:00
Paul Sokolovsky
0078561303
modffi: Support void (None) return value for Python callback functions.
2014-12-16 00:28:12 +02:00
Paul Sokolovsky
7a4765dbeb
tests: Add testcase for ffi callbacks.
2014-12-15 02:18:54 +02:00
Paul Sokolovsky
b62371e8fb
modffi: 64-bit cleanness (fixes actual bug in callback arg handling).
2014-12-15 02:18:49 +02:00
Paul Sokolovsky
c0bc3bd736
asmarm: Fix bug with encoding small negative ints using MVN instruction.
2014-12-14 03:24:17 +02:00
Paul Sokolovsky
83d27b0f0b
unix: Enable Thumb2 and ARM emitters by default on corresponding archs.
2014-12-14 03:24:17 +02:00
Paul Sokolovsky
138562ccd9
run-tests: Skip native/viper tests based on prefix.
...
Otherwise, new tests are forgotten to be added to explicit lists. Issue
found running on Debian/ARM.
2014-12-13 00:51:24 +02:00
Damien George
e181c0dc07
py: Fix optimised for-loop compiler so it follows proper semantics.
...
You can now assign to the range end variable and the for-loop still
works correctly. This fully addresses issue #565 .
Also fixed a bug with the stack not being fully popped when breaking out
of an optimised for-loop (and it's actually impossible to write a test
for this case!).
2014-12-12 17:19:56 +00:00
Damien George
7764f163fa
py: Fix label printing in showbc; print sp in vm trace.
2014-12-12 17:18:56 +00:00
Paul Sokolovsky
1ca28bd570
run-tests: Reset MICROPYPATH, to make sure tests use only builtin modules.
2014-12-12 00:58:07 +02:00
Paul Sokolovsky
dbc7854355
run-tests: PEP8 fix.
2014-12-12 00:58:07 +02:00
Paul Sokolovsky
f42b3c7599
tests: Activate recursive_data.py test, now that io.StringIO is available.
2014-12-12 00:58:07 +02:00
Damien George
5fba93a26b
tests: Add test for semantics of for-loop that optimisation can break.
2014-12-11 17:40:41 +00:00