aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-12-22py/lexer: Remove unreachable code in string tokeniser.Damien George
2016-12-22tests/basics/lexer: Add a test for newline-escaping within a string.Damien George
2016-12-22extmod/modutimeq: Fix warning about unused param.Paul Sokolovsky
2016-12-22unix: Enable utimeq module.Paul Sokolovsky
2016-12-22tests/extmod: Add test for utimeq module.Paul Sokolovsky
2016-12-22extmod/modutimeq: Refactor into optimized class.Paul Sokolovsky
import utimeq, utime # Max queue size, the queue allocated statically on creation q = utimeq.utimeq(10) q.push(utime.ticks_ms(), data1, data2) res = [0, 0, 0] # Items in res are filled up with results q.pop(res)
2016-12-22extmod/modutimeq: Copy of current moduheapq with timeq support for refactoring.Paul Sokolovsky
2016-12-21tests: Add tests to improve coverage of objarray.c.Rami Ali
2016-12-21tests: Add tests to improve coverage of runtime.c.Rami Ali
2016-12-21py/emitglue: Refactor to remove assert(0), to improve coverage.Damien George
2016-12-21py/objint: Rename mp_obj_int_as_float to mp_obj_int_as_float_impl.Damien George
And also simplify it to remove the check for small int. This can be done because this function is only ever called if the argument is not a small int.
2016-12-21tests/import: Add a test which uses ... in from-import statement.Damien George
2016-12-20esp8266: Force relinking OTA firmware image if built after normal one.Paul Sokolovsky
2016-12-20esp8266/modesp: flash_user_start(): Support configuration with yaota8266.Paul Sokolovsky
It's pretty rough way to detect yaota8266 being used, but otherwise allows to have a filesystem in such config.
2016-12-20tests/basics: Improve test coverage for generators.Rami Ali
2016-12-20tests/run-tests: For REPL tests make sure the REPL is exited at the end.Damien George
2016-12-20tests/basics/set_pop: Improve coverage of set functions.Damien George
2016-12-20tests/basics: Add test for builtin locals().Damien George
2016-12-20tests/basics/builtin_dir: Add test for dir() of a type.Damien George
2016-12-20tests/float/builtin_float_round: Test round() with second arg.Damien George
2016-12-20py/modbuiltins: Remove unreachable code.Damien George
2016-12-20esp8266: When doing GC be sure to trace the memory holding native code.Damien George
Native code can hold pointers to objects on the heap, eg constant objects like big integers.
2016-12-20tests/basics: Improve mpz test coverage.Rami Ali
2016-12-19tests/struct*: Make skippable.Paul Sokolovsky
2016-12-19py/compile: Add an extra pass for Xtensa inline assembler.Damien George
It needs an extra pass to compute the size of the constant table for the l32r instructions.
2016-12-18zephyr: Enable slice subscription.Paul Sokolovsky
Required for the testsuite.
2016-12-17zephyr/uart_core: Access console UART directly instead of printk() hack.Paul Sokolovsky
This is required to avoid extra level of output "cooking" ("\r\r\n") and make test infrastructure work. On the other hand, this breaks somewhat Zephyr console abstraction.
2016-12-16zephyr: Use core-provided keyboard exception object.Paul Sokolovsky
2016-12-16zephyr/main: Initialize sys.path and sys.argv.Paul Sokolovsky
2016-12-15esp8266: Add "erase" target to Makefile, to erase entire flash.Mike Causer
2016-12-15esp8266: Use core-provided keyboard exception object.Damien George
2016-12-15stmhal: Use core-provided keyboard exception object.Damien George
2016-12-15lib/utils/interrupt_char: Use core-provided mp_kbd_exception if enabled.Damien George
Ultimately all ports that use lib/utils/interrupt_char would enable MICROPY_KBD_EXCEPTION, so this is an interim solution.
2016-12-15py: Add MICROPY_KBD_EXCEPTION config option to provide mp_kbd_exception.Damien George
Defining and initialising mp_kbd_exception is boiler-plate code and so the core runtime can provide it, instead of each port needing to do it themselves. The exception object is placed in the VM state rather than on the heap.
2016-12-15stmhal/usb: Always use the mp_kbd_exception object for VCP interrupt.Damien George
There's no need to store a separate pointer to this object.
2016-12-15stmhal: Rename mp_const_vcp_interrupt to mp_kbd_exception.Damien George
mp_kbd_exception is now considered the standard variable name to hold the singleton KeyboardInterrupt exception. This patch also moves the creation of this object from pyb_usb_init() to main().
2016-12-15tools/pyboard.py: Refactor so target is not reset between scripts/cmd.Damien George
Previous to this patch pyboard.py would open a new serial connection to the target for each script that was run, and for any command that was run. Apart from being inefficient, this meant that the board was soft-reset between scripts/commands, which precludes scripts from accessing variables set in a previous one. This patch changes the behaviour of pyboard.py so that the connection to the target is created only once, and it's not reset between scripts or any command that is sent with the -c option.
2016-12-15stmhal/mpconfigport: Add weak-module links for io, collections, random.Damien George
2016-12-15tests/micropython: Get heapalloc_traceback test running on baremetal.Damien George
When printing exceptions from files sent to a target by pyboard.py the filename in the exception is <stdin>, which differs to when running the script on the PC. So we strip out the filename to make the outputs the same on all targets (see also misc/print_exception.py test).
2016-12-15docs/library/pyb.UART: Moved writechar doc to sit with other writes.Lorenz Schmid
2016-12-15docs/library/pyb.UART: Added clarification about timeouts.Lorenz Schmid
2016-12-15zephyr: Implement soft reset feature.Paul Sokolovsky
2016-12-15zephyr: Support raw REPL.Paul Sokolovsky
2016-12-14py/mpconfig.h: Enable MICROPY_PY_SYS_EXIT by default.Paul Sokolovsky
sys.exit() is an important function to terminate a program. In particular, the testsuite relies on it to skip tests (i.e. any other functionality may be disabled, but sys.exit() is required to at least report that properly).
2016-12-14esp8266: Add "ota" target to produce firmware binary for use with yaota8266.Paul Sokolovsky
https://github.com/pfalcon/yaota8266 is a (WIP) OTA-enabled bootloader which doesn't require reserving space 2x size of a firmware.
2016-12-14py/runtime: Zero out fs_user_mount array in mp_init.Damien George
There's no need to force ports to copy-and-paste this initialisation code. If FSUSERMOUNT is enabled then this zeroing out must be done.
2016-12-14py/mpz: Remove unreachable code in mpn_or_neg functions.Damien George
2016-12-13tests/extmod: Improve modframebuf test coverage.Rami Ali
2016-12-13stmhal: Move PY_SYS_PLATFORM config from board to general config file.Damien George
It can be overridden by a board if needed.
2016-12-13stmhal: Add STM32F769DISC board files.Rami Ali
With minor changes to adc.c and storage.c to support the F769.