Rami Ali
75aa7befec
tests/unix: Improve runtime_utils.c test coverage.
2016-12-29 18:24:03 +11:00
Rami Ali
b7024f0f64
tests/cmdline: Improve repl.c autocomplete test coverage.
2016-12-29 17:14:04 +11:00
Rami Ali
f397e1fdf0
tests/thread: Improve modthread.c test coverage.
2016-12-29 13:27:50 +11:00
Rami Ali
c15ebf7c8c
tests/extmod: Improve ubinascii.c test coverage.
2016-12-29 13:22:19 +11:00
Paul Sokolovsky
45a8cc8f0b
cc3200: make: Rename "deploy" target to "deploy-ota".
...
There should be target to deploy uPy over wired (UART) connection, and
wired and OTA targets should be named differently.
2016-12-29 01:27:50 +03:00
Paul Sokolovsky
514b82900c
cc3200/README: (Re)add information about accessing REPL on serial.
2016-12-28 21:44:47 +03:00
Paul Sokolovsky
076b80467b
cc3200: Enable UART REPL by default.
...
To allow access and testing without complex access methods like WiFi.
Enabled for both WiPy and TI LaunchXL.
2016-12-28 14:57:36 +03:00
Damien George
afc5063539
py/unicode: Comment-out unused function unichar_isprint.
2016-12-28 17:50:10 +11:00
Rami Ali
eae819c0ed
tests/micropython: Add test for micropython.stack_use() function.
2016-12-28 17:46:52 +11:00
Damien George
e81116d07d
stmhal/uart: Increase inter-character timeout by 1ms.
...
Sys-tick resolution is 1ms and a value of 2 will give a delay between 1ms
and 2ms (whereas a value of 1 gives a delay between 0ms and 1ms, which is
too short).
2016-12-28 17:32:18 +11:00
Damien George
16a584d7cf
stmhal/uart: Provide a custom function to transmit over UART.
...
The HAL_UART_Transmit function has changed in the latest HAL version such
that the Timeout is a timeout for the entire function, rather than a
timeout between characters as it was before. The HAL function also does
not allow one to reliably tell how many characters were sent before the
timeout (if a timeout occurred).
This patch provides a custom function to do UART transmission, completely
replacing the HAL version, to fix the above-mentioned issues.
2016-12-28 17:18:59 +11:00
Rami Ali
65574f817a
tests/basics: Add tests to improve coverage of binary.c.
2016-12-28 16:11:54 +11:00
Damien George
ea6a958393
py/objint: Simplify mp_int_format_size and remove unreachable code.
...
One never needs to format integers with a base larger than 16 (but code
can be easily extended beyond this value if needed in the future).
2016-12-28 12:46:20 +11:00
Damien George
44bf8e1f2b
py/mpprint: Add assertion for, and comment about, valid base values.
2016-12-28 12:45:33 +11:00
Damien George
ca7af9a778
py/parsenum: Fix warning for signed/unsigned comparison.
2016-12-28 12:25:00 +11:00
Damien George
43384ad7e7
tests/basics: Add tests for parsing of ints with base 36.
2016-12-28 12:08:46 +11:00
Damien George
2d9440e2d1
py/mpz: Fix assertion in mpz_set_from_str which checks value of base.
2016-12-28 12:04:19 +11:00
Damien George
c2dd494bd9
py/parsenum: Simplify and generalise decoding of digit values.
...
This function should be able to parse integers with any value for the
base, because it is called by int('xxx', base).
2016-12-28 12:02:49 +11:00
Paul Sokolovsky
25f44c19f1
cc3200: Re-add support for UART REPL (MICROPY_STDIO_UART setting).
...
UART REPL support was lost in os.dupterm() refactorings, etc. As
os.dupterm() is there, implement UART REPL support at the high level -
if MICROPY_STDIO_UART is set, make default boot.py contain os.dupterm()
call for a UART. This means that changing MICROPY_STDIO_UART value will
also require erasing flash on a module to force boot.py re-creation.
2016-12-27 01:05:37 +03:00
Paul Sokolovsky
cf96be60dc
py/misc.h: Typo fix in comment.
2016-12-27 01:05:30 +03:00
Paul Sokolovsky
05aebb9206
tests/heapalloc_inst_call: Test for no alloc for simple object calls.
2016-12-25 00:50:27 +03:00
Paul Sokolovsky
492c612f9d
tests/utimeq_stable: Test for partial stability of utimeq queuing.
2016-12-24 00:25:15 +03:00
Paul Sokolovsky
7327966da7
extmod/modutimeq: Make time_less_than be actually "less than", not less/eq.
...
This fixes an obvious case of non-fair scheduling of 2 tasks with the same
deadline.
2016-12-24 00:06:29 +03:00
Paul Sokolovsky
18f12caafc
extmod/modutimeq: Fix printf in dump().
2016-12-23 21:11:19 +03:00
Paul Sokolovsky
1e9093f8cb
examples/hwapi/hwconfig_console: Don't alloc memory in value().
2016-12-23 17:24:24 +03:00