summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-10-11extmod/machine_i2c: Use writes not reads in i2c.scan().Radomir Dopieralski
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.
2016-10-11docs/reference: Add constrained.rst doc.Peter Hinch
It contains detailed information about writing scripts to run efficiently on microcontrollers (and other constrained systems).
2016-10-11extmod/uzlib: Update to upstream v2.1.Paul Sokolovsky
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.
2016-10-11py/objint: Use size_t for arguments that measure bytes/sizes.Damien George
2016-10-11py: Factor duplicated function to calculate size of formatted int.Damien George
2016-10-11py/mpz: Use assert to verify mpz does not have a fixed digit buffer.Damien George
2016-10-11py/mpz: In divmod, replace check for rhs!=0 with assert.Damien George
The check for division by zero is made by the caller of this function.
2016-10-11tests: Improve test coverage of py/compile.c.Damien George
2016-10-11py/compile: Remove unreachable code.Damien George
2016-10-11tests/micropython: Add test for micropython.opt_level() function.Damien George
2016-10-11py/modmicropython: Add micropython.opt_level([value]) function.Damien George
This allows to get/set at runtime the optimisation level of the compiler.
2016-10-10zephyr: Add Ctrl+C handling.Paul Sokolovsky
2016-10-10zephyr/zephyr_getchar: Add support for Ctrl+C handling.Paul Sokolovsky
Patch on top of upstream Zephyr console helpers.
2016-10-10zephyr/main: Execute main.py frozen module on boot, if available.Paul Sokolovsky
2016-10-10zephyr: Enable frozen modules support.Paul Sokolovsky
2016-10-10zephyr: Enable stack checking and micropython.mem_info().Paul Sokolovsky
2016-10-10zephyr: Add README.Paul Sokolovsky
2016-10-10docs/wipy: Correct deep sleep current figure.daniel
2016-10-10zephyr: Use recently added "make outputexports" Zephyr target.Daniel Thompson
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>
2016-10-10zephyr/Makefile: Automatically derive target-specific CFLAGS.Paul Sokolovsky
By tricking Zephyt arch Makefiles compute them for us (not just for Zephyr). This make potentially break as Zephyr evolves.
2016-10-10zephyr: Support extra make targetsDaniel Thompson
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>
2016-10-10zephyr: Automatically derive ARCH.Daniel Thompson
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>
2016-10-10zephyr: Switch to microkernel, required for network to work in background.Paul Sokolovsky
2016-10-10zephyr: Add zephyr_getchar module to handle console input.Paul Sokolovsky
From https://github.com/pfalcon/zephyr_getchar .
2016-10-10zephyr: Initial Zephyr RTOS port, Zephyr part.Paul Sokolovsky
2016-10-10zephyr: Initial Zephyr RTOS port, MicroPython part.Paul Sokolovsky
2016-10-09examples/network/http_client*: Use \r\n line-endings in request.Paul Sokolovsky
2016-10-09tests/io/bytesio_ext: Add test for readinto().Paul Sokolovsky
2016-10-09py/objstringio: Add readinto() method.Paul Sokolovsky
Also, drop deprecated (as for MicroPython) readall() method.
2016-10-09tests/io/write_ext: Add description comment.Paul Sokolovsky
2016-10-09esp8266: Make neopixel support configurable.Paul Sokolovsky
To save iRAM.
2016-10-07extmod/vfs_fat_file: Use MP_Exxx errno constants.Damien George
2016-10-07unix: Use common RAISE_ERRNO macro from mphalport.h.Damien George
2016-10-07unix: Use mp_raise_OSError helper function.Damien George
2016-10-07esp8266: Use mp_raise_OSError helper function.Damien George
2016-10-07stmhal: Use mp_raise_OSError helper function.Damien George
2016-10-07driver/dht: Use mp_raise_OSError helper function.Damien George
2016-10-07extmod: Use mp_raise_OSError helper function.Damien George
2016-10-07extmod/modlwip: Use mp_raise_OSError helper function.Damien George
Reduces esp8266 code size by about 230 bytes.
2016-10-07extmod/vfs_fat: Use mp_raise_OSError helper function.Damien George
2016-10-07py: Add mp_raise_OSError(errno) helper function.Damien George
This is an often used code pattern, and its use reduces code size of the core by about 100 bytes.
2016-10-07esp8266: Add FLASH_MODE,FLASH_SIZE options for make deploy target.dmanso
Added options to make deploy so it can be used for ESP8266 boards with other flash configurations. For example NodeMCU DEVKIT V1.0 can now use: $ make FLASH_MODE=dio FLASH_SIZE=32m deploy
2016-10-07docs/uos: Add uos.statvfs() documentation.Alex March
2016-10-07tests: Improve coverage of struct with test for non-compliant behaviour.Damien George
2016-10-07py/modstruct: Remove unreachable code, and add comment about CPy diff.Damien George
The deleted code is unreachable because calcsize_items guarantees that num_items corresponds to how many items there are in fmt to unpack.
2016-10-07tests/extmod/uzlib: Test adaptive huffman tree for tinflate coverage.Alex March
2016-10-06esp8266: Make PY_UHASHLIB_SHA1 config depend on PY_USSL and SSL_AXTLS.Damien George
SHA1 can only be supported if ussl module is compiled in, and it uses axtls.
2016-10-06stmhal: Enable machine.time_pulse_us() function.Damien George
2016-10-06stmhal: Disable network and usocket for ESPRUINO_PICODave Hylands
2016-10-05tests: Fix expected output of verbose cmdline teststijn
The output might contain more than one line ending in 5b so properly skip everything until the next known point. This fixes test failures in appveyor debug builds.