stijn
803264bb17
py: Guard against redef of nlr_push with DEBUG + MICROPY_NLR_SETJMP.
2015-03-03 14:34:40 +00:00
Damien George
9be0d599cd
drivers: Add onewire driver and ds18x20 temperature sensor driver.
2015-03-03 01:29:52 +00:00
Damien George
f2a889564b
tests: Add basics test for gc module.
2015-03-02 18:30:17 +00:00
Damien George
fe3da09fa0
tests: Use range as iterable instead of list comprehension.
...
So that navite emitter passes (comprehensions use yield which is not yet
supported by native emitter).
2015-03-02 17:55:55 +00:00
Damien George
67c5f89af5
py: In inline assembler, fix branch out-of-range error reporting.
...
Should only give an error on the last pass of the assembler, since
that's when we are certain about the branch size.
2015-03-02 17:51:32 +00:00
Damien George
24ffb8e876
tests: Add tests for builtins: all, any, sum, abs.
2015-03-02 17:21:10 +00:00
Damien George
db1e10d5ea
py: Use SMALL_INT creation macro in builtin sum.
2015-03-02 17:19:44 +00:00
Damien George
96e37d3bb8
tests: Add tests for inline assembler beq_n and beq_w ops.
2015-03-02 14:31:00 +00:00
Damien George
9f142f0c84
py: For inline assembler, add bcc_n and bcc_w ops.
...
Addresses issue #1143 .
2015-03-02 14:29:52 +00:00
Damien George
565da3f569
stmhal: Enable MICROPY_PY_ARRAY_SLICE_ASSIGN.
2015-03-02 13:45:35 +00:00
Damien George
a2e383820d
py: Clean up and comment out unused functions in mpz.
2015-03-02 12:58:06 +00:00
Damien George
2af921fb51
tests: Add tests for op special meths, ubinascii, complex.
2015-03-02 12:47:44 +00:00
Damien George
18fd7e8305
README.md: Change coveralls badge from travis-testing to master branch.
2015-03-01 15:12:00 +00:00
Damien George
81e661f28b
travis: Add automated coverage testing using coveralls.
2015-03-01 14:50:09 +00:00
Damien George
b753009a38
stmhal: Add I2S2EXT and I2S3EXT constants to stm module.
2015-03-01 12:32:44 +00:00
Damien George
47538cc880
tests: Add test for micropython const feature when it has a SyntaxError.
2015-03-01 12:06:24 +00:00
Damien George
62a3a287d9
py: Set compiler scope before folding constants so error messages work.
...
Addresses issue #1140 .
2015-03-01 12:04:05 +00:00
danicampora
d01060241a
cc3200: Add heartbeat signal on system led.
2015-02-28 19:03:21 +01:00
Johan Hendriks
6a41bf99bd
cc3200: Create separate release/debug build directories
2015-02-28 19:03:17 +01:00
Damien George
7711afbb4a
py: Combine complie functions for or_test/and_test to reduce code size.
...
Saves around 60 bytes code on Thumb2 archs.
2015-02-28 15:10:18 +00:00
Damien George
63f3832e81
py: Combine emit functions for jump true/false to reduce code size.
...
Saves 116 bytes for stmhal and 56 bytes for cc3200 port.
2015-02-28 15:04:06 +00:00
Damien George
0b2fd91890
py: Combine logic for compiling and/or tests, to reduce code size.
...
Reduces code size by 72 bytes on Thumb2 archs.
2015-02-28 14:37:54 +00:00
Paul Sokolovsky
562fa575a6
qemu-arm: Handle sys.exit() to allow skip tests in testsuite.
2015-02-28 00:31:18 +02:00
Paul Sokolovsky
992284be39
tests: Add test for array slice assignment.
2015-02-27 22:17:24 +02:00
Paul Sokolovsky
cefcbb22b2
objarray: Implement array slice assignment.
...
This is rarely used feature which takes enough code to implement, so is
controlled by MICROPY_PY_ARRAY_SLICE_ASSIGN config setting, default off.
But otherwise it may be useful, as allows to update arbitrary-sized data
buffers in-place.
Slice is yet to implement, and actually, slice assignment implemented in
such a way that RHS of assignment should be array of the exact same item
typecode as LHS. CPython has it more relaxed, where RHS can be any sequence
of compatible types (e.g. it's possible to assign list of int's to a
bytearray slice).
Overall, when all "slice write" features are implemented, it may cost ~1KB
of code.
2015-02-27 22:17:15 +02:00