summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-18docs: Fix some minor spelling mistakes.Mike Causer
paramter -> parameter send a receive -> send and receive repsonse -> response particualr -> particular constructore -> constructor
2017-01-17py/binary: mp_binary_get_size: Raise error on unsupported typecodes.Paul Sokolovsky
Previouly, we had errors checked in callers, which led to duplicate code or missing checks in some places.
2017-01-17tests/extmod: Improve test coverage of ure module.Rami Ali
2017-01-17py/runtime: Refactor default case of switch to remove assert(0).Damien George
2017-01-17py/objexcept: Replace if-cond and assert(0) with simple assert.Damien George
2017-01-17py/emitnative: Remove assert(0)'s or replace with mp_not_implemented.Damien George
2017-01-17py/parse: Refactor code to remove assert(0)'s.Damien George
This helps to improve code coverage. Note that most of the changes in this patch are just de-denting the cases of the switch statements.
2017-01-17tests/basics: Improve runtime.c test coverage.Rami Ali
2017-01-17tests/io: Improve test coverage of io.BufferedWriter.Rami Ali
2017-01-17tests: Update tests, and add new ones, for recent generator tweaks.Damien George
2017-01-17py/objgenerator: Don't raise RuntimeError if GeneratorExit ignored.Damien George
In this case it's allowed to be ignored.
2017-01-17py/objgenerator: When throwing an object, don't make an exc instance.Damien George
Arguments to throw() for generators don't need to be exceptions.
2017-01-17py/runtime: Fix handling of throw() when resuming generator.Damien George
If GeneratorExit is injected as a throw-value then that should lead to the close() method being called, if it exists. If close() does not exist then throw() should not be called, and this patch fixes this.
2017-01-17py/runtime: Refactor assert(0) to improve coverage.Damien George
2017-01-16tests: Improve frozen import test coverage.Rami Ali
2017-01-16py/builtinimport: Remove unreachable code and change obj-import comment.Damien George
2017-01-16py/builtinimport: Raise ValueError for bad relative import, per CPython.Damien George
2017-01-16unix/coverage: Move coverage #if guard back to top of file.Damien George
2017-01-16tests/import: Improve builtinimport.c test coverage.Rami Ali
2017-01-16tests: Improve stream.c test coverage.Rami Ali
2017-01-12stmhal: fix wrong usage of gcc -print-libgcc-file-namePavol Rusnak
2017-01-12stmhal: Support PortG on STM32L476 and STM32L486.Dave Hylands
2017-01-08extmod/modframebuf: optimize fill_rect subroutine callOleg Korsak
2017-01-09tests: Update test suite to be compatible with CPython 3.6.Damien George
CPython 3.6 has a few changes that, when run on uPy's test suite, give a different output to CPython 3.5. uPy currently officially supports the 3.4 language definition, but it's useful to be able to run the test suite with 3.4/3.5/3.6 versions of CPython. This patch makes such changes to support 3.6.
2017-01-08docs: Bump version to 1.8.7.v1.8.7Damien George
2017-01-08tests/unix/extra_coverage: Add tests for importing frozen packages.Damien George
2017-01-08py/builtinimport: Fix bug when importing names from frozen packages.Damien George
The commit d9047d3c8a99603884db25076c37778f50633ca6 introduced a bug whereby "from a.b import c" stopped working for frozen packages. This is because the path was not properly truncated and became "a//b". Such a path resolves correctly for a "real" filesystem, but not for a search in the list of frozen modules.
2017-01-08drivers/onewire/ds18x20: Fix negative temperature calc for DS18B20.syndycat
2017-01-07cc3200/modwlan: Add network.WLAN.print_ver() diagnostic function.Paul Sokolovsky
Prints NWP/MAC/PHY version, as affected by servicepack installed.
2017-01-07docs/usocket: Clarify that socket timeout raises OSError exception.Paul Sokolovsky
2017-01-07tests/array*: Allow to skip test if "array" is unavailable.Paul Sokolovsky
2017-01-06tests/types1: Split out set type test to set_types.Paul Sokolovsky
set isn't the most basic type and can be disabled by a port.
2017-01-06docs/library/esp: Remove para and add further warning about flash.Damien George
There is no longer space reserved by default for native code.
2017-01-06esp8266/modules/flashbdev: Change RESERVED_SECS to 0.Damien George
This effectively reverts the change that introduced this new constant. The reason is so that users do not need to rebuild the filesystem on their modules when upgrading the firmware. Users can change RESERVED_SECS by hand if they need the feature, and in future firmware it may default to a non-zero value.
2017-01-06esp8266/modules/flashbdev: Remove now-unused function set_bl_flash_size.Damien George
2017-01-05esp8266/modules/flashbdev: Remove code to patch bootloader flash size.Paul Sokolovsky
This code is no longer pertinent for some time - since switchover to SDK2.0, there must be correct flash size set for bootloader, or there's a risk of flash data corruption. And indeed, the correct flash size is by default auto-detected by esptool.py 1.2.
2017-01-05unix/Makefile: Allow cache-map-lookup optimisation with frozen bytecode.Damien George
2017-01-05tools/mpy-tool.py: Add support for OPT_CACHE_MAP_LOOKUP_IN_BYTECODE.Damien George
With caching of map lookups in the bytecode, frozen bytecode can still work but must be stored in RAM, not ROM. This patch allows mpy-tool.py to generate code that works with this optimisation, but it's not recommended to use it on embedded targets (because of lack of RAM).
2017-01-05py/mkrules.mk: Add MPY_CROSS_FLAGS option to pass flags to mpy-cross.Damien George
So that ports can pass their own custom options to mpy-cross.
2017-01-05tests/unix/extra_coverage: Add basic tests to import frozen str and mpy.Damien George
2017-01-05unix: Enable and add basic frozen str and frozen mpy in coverage build.Damien George
2017-01-05unix/Makefile: Split long line for coverage target, easier to modify.Damien George
2017-01-05tests/unix: Improve formatfloat.c test coverage using C.Rami Ali
2017-01-05tests/float: Improve formatfloat.c test coverage using Python.Rami Ali
2017-01-05tests: Improve warning.c test coverage.Rami Ali
2017-01-05tests/run-tests: Allow to skip set tests.Paul Sokolovsky
If sets are not enabled, set literals lead to SyntaxError during parsing, so it requires feature_check. Set tests are skipped based on set_*.py pattern.
2017-01-04all: Consistently update signatures of .make_new and .call methods.Paul Sokolovsky
Otherwise, they serve reoccurring source of copy-paste mistakes and breaking nanbox build.
2017-01-04docs/library/esp: Document esp.set_native_code_location() function.Damien George
2017-01-04esp8266/modules/flashbdev: Add RESERVED_SECS before the filesystem.Damien George
Starting at esp.flash_user_start(), the reserved sectors are for general purpose use, for example for native code generation. There is currently one sector reserved as such.
2017-01-04esp8266/Makefile: Put firmware-ota.bin in build/, for consistency.Paul Sokolovsky