Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | tests/extmod: Add test for ujson.load(). | Damien George | 2016-10-13 |
| | |||
* | extmod/modujson: Implement ujson.load() to load JSON from a stream. | Damien George | 2016-10-13 |
| | | | | | | | This refactors ujson.loads(s) to behave as ujson.load(StringIO(s)). Increase in code size is: 366 bytes for unix x86-64, 180 bytes for stmhal, 84 bytes for esp8266. | ||
* | zephyr: Add copyright blurbs. | Paul Sokolovsky | 2016-10-12 |
| | |||
* | zephyr/mpconfigport.h: Fix rebasing artifacts. | Paul Sokolovsky | 2016-10-12 |
| | |||
* | zephyr: Implement the help() function. | Daniel Thompson | 2016-10-12 |
| | | | | | | | | The boot issue text mentions a help() function and encourages the user to run it. It is very disconcerting to find that the function does not exist... Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org> | ||
* | zephyr/Makefile: Be sure to extra qstr's from port sources. | Paul Sokolovsky | 2016-10-12 |
| | |||
* | README: Mention _thread module availability in select ports. | Paul Sokolovsky | 2016-10-12 |
| | |||
* | tools: Upgrade upip to 1.1.3. | Paul Sokolovsky | 2016-10-12 |
| | | | | | Initial support for running on a baremetal, low-heap systems (like esp8266), using Python module interface. | ||
* | lib/utils/pyexec: Don't treat SystemExit as "forced exit". | Paul Sokolovsky | 2016-10-12 |
| | | | | | | "Forced exit" is treated as soft-reboot (Ctrl+D). But expected effect of calling sys.exit() is termination of the current script, not any further and more serious actions like mentioned soft reboot. | ||
* | esp8266: Enable importing of precompiled .mpy files. | Damien George | 2016-10-12 |
| | |||
* | esp8266: Enable sys.{stdin,stdout,stderr}.buffer for raw serial access. | Damien George | 2016-10-12 |
| | |||
* | py/lexer: Remove unnecessary code, and unreachable code. | Damien George | 2016-10-12 |
| | | | | | | | | | Setting emit_dent=0 is unnecessary because arriving in that part of the if-logic will guarantee that emit_dent is already zero. The block to check indent_top(lex)>0 is unreachable because a newline is always inserted an the end of the input stream, and hence dedents are always processed before EOF. | ||
* | py/compile: Remove debugging code for compiler dispatch. | Damien George | 2016-10-12 |
| | | | | | It was a relic from the days of developing the compiler and is no longer needed, and it's impossible to trigger via a test. | ||
* | esp8266/mpconfigport: Enable MICROPY_PY_BUILTINS_SLICE_ATTRS | Radomir Dopieralski | 2016-10-11 |
| | |||
* | tests/extmod/vfs_fat: Test coverage for remove() and rmdir(). | Alex March | 2016-10-11 |
| | |||
* | extmod/vfs_fat: Add file and directory checks for remove and rmdir. | Alex March | 2016-10-11 |
| | |||
* | extmod/machine_i2c: Use writes not reads in i2c.scan(). | Radomir Dopieralski | 2016-10-11 |
| | | | | | | | As per discussion in #2449, using write requests instead of read requests for I2C.scan() seems to support a larger number of devices, especially ones that are write-only. Even a read-only I2C device has to implement writes in order to be able to receive the address of the register to read. | ||
* | docs/reference: Add constrained.rst doc. | Peter Hinch | 2016-10-11 |
| | | | | | It contains detailed information about writing scripts to run efficiently on microcontrollers (and other constrained systems). | ||
* | extmod/uzlib: Update to upstream v2.1. | Paul Sokolovsky | 2016-10-11 |
| | | | | | | | | Adds check that LZ offsets fall into the sliding dictionary used. This catches a case when uzlib.DecompIO with a smaller dictionary is used to decompress data which was compressed with a larger dictionary. Previously, this would lead to producing invalid data or crash, now an exception will be thrown. | ||
* | py/objint: Use size_t for arguments that measure bytes/sizes. | Damien George | 2016-10-11 |
| | |||
* | py: Factor duplicated function to calculate size of formatted int. | Damien George | 2016-10-11 |
| | |||
* | py/mpz: Use assert to verify mpz does not have a fixed digit buffer. | Damien George | 2016-10-11 |
| | |||
* | py/mpz: In divmod, replace check for rhs!=0 with assert. | Damien George | 2016-10-11 |
| | | | | The check for division by zero is made by the caller of this function. | ||
* | tests: Improve test coverage of py/compile.c. | Damien George | 2016-10-11 |
| | |||
* | py/compile: Remove unreachable code. | Damien George | 2016-10-11 |
| | |||
* | tests/micropython: Add test for micropython.opt_level() function. | Damien George | 2016-10-11 |
| | |||
* | py/modmicropython: Add micropython.opt_level([value]) function. | Damien George | 2016-10-11 |
| | | | | This allows to get/set at runtime the optimisation level of the compiler. | ||
* | zephyr: Add Ctrl+C handling. | Paul Sokolovsky | 2016-10-10 |
| | |||
* | zephyr/zephyr_getchar: Add support for Ctrl+C handling. | Paul Sokolovsky | 2016-10-10 |
| | | | | Patch on top of upstream Zephyr console helpers. | ||
* | zephyr/main: Execute main.py frozen module on boot, if available. | Paul Sokolovsky | 2016-10-10 |
| | |||
* | zephyr: Enable frozen modules support. | Paul Sokolovsky | 2016-10-10 |
| | |||
* | zephyr: Enable stack checking and micropython.mem_info(). | Paul Sokolovsky | 2016-10-10 |
| | |||
* | zephyr: Add README. | Paul Sokolovsky | 2016-10-10 |
| | |||
* | docs/wipy: Correct deep sleep current figure. | daniel | 2016-10-10 |
| | |||
* | zephyr: Use recently added "make outputexports" Zephyr target. | Daniel Thompson | 2016-10-10 |
| | | | | | | | | The outputexpors target, which exports Zephyr environment variables, was recently added to Zephyr. By exploiting this feature we can hugely simplify the build system, improving robustness at the same time. Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org> | ||
* | zephyr/Makefile: Automatically derive target-specific CFLAGS. | Paul Sokolovsky | 2016-10-10 |
| | | | | | By tricking Zephyt arch Makefiles compute them for us (not just for Zephyr). This make potentially break as Zephyr evolves. | ||
* | zephyr: Support extra make targets | Daniel Thompson | 2016-10-10 |
| | | | | | | | The two variables, GENERIC_TARGETS and CONFIG_TARGETS come, respectively, from the the lists shown during "make help" and "make kconfig-help". Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org> | ||
* | zephyr: Automatically derive ARCH. | Daniel Thompson | 2016-10-10 |
| | | | | | | | | Currently to compile for anything that except ARCH=x86 we have to provide ARCH via the environment or make arguments. We can do better than that! Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org> | ||
* | zephyr: Switch to microkernel, required for network to work in background. | Paul Sokolovsky | 2016-10-10 |
| | |||
* | zephyr: Add zephyr_getchar module to handle console input. | Paul Sokolovsky | 2016-10-10 |
| | | | | From https://github.com/pfalcon/zephyr_getchar . | ||
* | zephyr: Initial Zephyr RTOS port, Zephyr part. | Paul Sokolovsky | 2016-10-10 |
| | |||
* | zephyr: Initial Zephyr RTOS port, MicroPython part. | Paul Sokolovsky | 2016-10-10 |
| | |||
* | examples/network/http_client*: Use \r\n line-endings in request. | Paul Sokolovsky | 2016-10-09 |
| | |||
* | tests/io/bytesio_ext: Add test for readinto(). | Paul Sokolovsky | 2016-10-09 |
| | |||
* | py/objstringio: Add readinto() method. | Paul Sokolovsky | 2016-10-09 |
| | | | | Also, drop deprecated (as for MicroPython) readall() method. | ||
* | tests/io/write_ext: Add description comment. | Paul Sokolovsky | 2016-10-09 |
| | |||
* | esp8266: Make neopixel support configurable. | Paul Sokolovsky | 2016-10-09 |
| | | | | To save iRAM. | ||
* | extmod/vfs_fat_file: Use MP_Exxx errno constants. | Damien George | 2016-10-07 |
| | |||
* | unix: Use common RAISE_ERRNO macro from mphalport.h. | Damien George | 2016-10-07 |
| | |||
* | unix: Use mp_raise_OSError helper function. | Damien George | 2016-10-07 |
| |