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
Damien George
c33ce606cf
py: Fix a semantic issue with range optimisation.
...
Now you can assign to the range variable within the for loop and it will
still work.
Partially addresses issue #565 .
2014-12-11 17:35:23 +00:00
Damien George
f905145c6d
tests: Disable print_exception test when using native emitter.
2014-12-11 17:34:55 +00:00
Damien George
184182d14c
tests: Fix print_exception test and re-enable it on Travis CI.
...
Issue was with uPy: on local machine with micropython-lib installed, io
module is available. Not the case on Travis CI, where only _io module
is available in uPy.
2014-12-11 17:10:25 +00:00
Paul Sokolovsky
66a6caa307
run-tests: Skip print_exception.py on TravisCI, as it irreproducibly fails.
...
TODO: Figure out what's wrong on Travis.
2014-12-11 15:03:29 +02:00
Damien George
5318cc028a
py: Tidy up a few function declarations.
2014-12-10 22:37:07 +00:00
Damien George
7eb2317fa2
py: Remove static from definition of pfenv_printf.
...
It's used by stmhal, but not unix.
2014-12-10 22:11:01 +00:00
Damien George
969a6b37bf
py: Make functions static where appropriate.
2014-12-10 22:08:14 +00:00
Nikita Nazarenko
d51107927d
unix: add unlink function to os module
2014-12-10 21:49:24 +00:00
Damien George
4140e19c8a
tests: Fix print_exception.py to work on Travis CI.
2014-12-10 21:45:51 +00:00
Paul Sokolovsky
e8487ea1be
tests: Add test for print_exception() function.
2014-12-10 20:48:53 +00:00