Damien George
086a7616dd
tests: Add tests for boundmeth; and bignum cmp, unary, float, error.
10 years ago
stijn
25f1264699
tests: Skip special math fun tests when math module exists but not funs.
10 years ago
stijn
803264bb17
py: Guard against redef of nlr_push with DEBUG + MICROPY_NLR_SETJMP.
10 years ago
Damien George
9be0d599cd
drivers: Add onewire driver and ds18x20 temperature sensor driver.
10 years ago
Damien George
f2a889564b
tests: Add basics test for gc module.
10 years ago
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).
10 years ago
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.
10 years ago
Damien George
24ffb8e876
tests: Add tests for builtins: all, any, sum, abs.
10 years ago
Damien George
db1e10d5ea
py: Use SMALL_INT creation macro in builtin sum.
10 years ago
Damien George
96e37d3bb8
tests: Add tests for inline assembler beq_n and beq_w ops.
10 years ago
Damien George
9f142f0c84
py: For inline assembler, add bcc_n and bcc_w ops.
Addresses issue #1143 .
10 years ago
Damien George
565da3f569
stmhal: Enable MICROPY_PY_ARRAY_SLICE_ASSIGN.
10 years ago
Damien George
a2e383820d
py: Clean up and comment out unused functions in mpz.
10 years ago
Damien George
2af921fb51
tests: Add tests for op special meths, ubinascii, complex.
10 years ago
Damien George
18fd7e8305
README.md: Change coveralls badge from travis-testing to master branch.
10 years ago
Damien George
81e661f28b
travis: Add automated coverage testing using coveralls.
10 years ago
Damien George
b753009a38
stmhal: Add I2S2EXT and I2S3EXT constants to stm module.
10 years ago
Damien George
47538cc880
tests: Add test for micropython const feature when it has a SyntaxError.
10 years ago
Damien George
62a3a287d9
py: Set compiler scope before folding constants so error messages work.
Addresses issue #1140 .
10 years ago
danicampora
d01060241a
cc3200: Add heartbeat signal on system led.
10 years ago
Johan Hendriks
6a41bf99bd
cc3200: Create separate release/debug build directories
10 years ago
Damien George
7711afbb4a
py: Combine complie functions for or_test/and_test to reduce code size.
Saves around 60 bytes code on Thumb2 archs.
10 years ago
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.
10 years ago
Damien George
0b2fd91890
py: Combine logic for compiling and/or tests, to reduce code size.
Reduces code size by 72 bytes on Thumb2 archs.
10 years ago
Paul Sokolovsky
562fa575a6
qemu-arm: Handle sys.exit() to allow skip tests in testsuite.
10 years ago
Paul Sokolovsky
992284be39
tests: Add test for array slice assignment.
10 years ago
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.
10 years ago
Damien George
0bb971370b
py: Transform assert logic in compiler to save code space.
Saves about 250 code bytes for Thumb2 archs.
10 years ago
Damien George
4d77e1a034
py: Use m_{new,renew,del} consistently.
This is so all memory requests go through the same interface.
10 years ago
Damien George
eb0a7129a5
travis: Use CPython3.4 instead of 3.3.
10 years ago
Damien George
b67253e96f
tests: Update pyb/uart.py test since baudrate of 1200 is too low.
10 years ago
Damien George
4852e09c79
py: Fix adding of traceback so that it appends to existing info.
This makes exception traceback info self contained (ie doesn't rely on
list object, which was a bit of a hack), reduces code size, and reduces
RAM footprint of exception by eliminating the list object.
Addresses part of issue #1126 .
10 years ago
Paul Sokolovsky
d155fecf9e
README.md: Update subdir descriptions.
10 years ago
Damien George
12d6d777e1
py: Small optimisation of logic flow in BC_WITH_CLEANUP bytecode.
Slightly smaller code, and does not need to use C stack to save
temporaries.
10 years ago
danicampora
74589cbeeb
cc3200: Move code that disables/enables servers to wlan_sl_enable().
10 years ago
danicampora
5330d8996f
cc3200: Modify simplelink FreeRTOS OSI layer to only use semaphores.
Before, both mutexes and semaphores were used. Using only the latter
and with a bit of cleanup to remove some code bloat, we save ~600
bytes of code.
10 years ago
danicampora
f3661d4100
cc3200: Change PRCM_PeriphRegs_t fields to unsigned char.
This helps saving ~300 bytes. Thanks to dpgeorge.
10 years ago
danicampora
7a074a14ce
cc3200: Implement safe boot pin and system led behaviour.
The safe boot pin, when pulled high during reset rolls back the
firmware to the "factory" image and skips execution of 'boot.py'
and 'main.py'. This is useful to recover from a crash condition.
The system led is used mostly to signal errors.
10 years ago
danicampora
8a5aee103d
cc3200: Fix md5 application signing, add missing accents.
10 years ago
Paul Sokolovsky
bbaf68f2cb
modffi: Implement 'O' type handling for func arguments.
10 years ago
Damien George
534574348e
py: Make inline assembler raise exception when branch not in range.
Addresses issue #1132 .
10 years ago
danicampora
11aa6ba456
cc3200: Add WDT functionality as part of the pyb module.
Also improve pybsd, and make it save it's pin configuration.
This is a necessary step towards supporting the CC3200 low
power deep sleep (LPDS) mode.
10 years ago
danicampora
fe2eb5f58a
cc3200: Update README.md to add step for flashing the bootloader.
10 years ago
Damien George
993f067fa2
py: In inline assembler, add return statement to fix flow logic.
10 years ago
Damien George
e5315f7ffd
py: Factor some code in inline thumb assembler to reduce code size.
10 years ago
Damien George
e41b21c01e
py: Make more asmthumb functions inline to reduce code size.
10 years ago
Damien George
8f7976ba0d
py: Reduce code size of inline thumb assembler by using static tables.
Reduces stmhal by about 300 bytes ROM.
10 years ago
Paul Sokolovsky
2330fe08fe
README.md: Update list of supported Python types.
10 years ago
Paul Sokolovsky
8c437f95fc
README.md: Promote project status from "early beta" to just "beta".
Also, reword purpose to avoid impression that uPy supports just one
microcontroller.
10 years ago
Damien George
4fddbe5ab6
docs: Correct the documentation for math.frexp.
10 years ago