aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.Damien 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
2017-01-04esp8266/general: Add "Scarcity of runtime resources" section.Paul Sokolovsky
With warnings of need to close files, sockets, etc.
2017-01-04tests/pyb/uart: Update test to match recent change to UART timeout_char.Damien George
2017-01-04docs/esp8266/tutorial: Close socket after reading page content.Max
2017-01-03drivers/onewire: Enable pull up on data pin.Dave Hylands
The driver seems to be be enabling the pullup resistor in most places, but not this one. Making this one little change allows onewire devices to be used with no external pullup resistor.
2017-01-03esp8266/modesp: Fix a typo, print -> printf.TheSpooler
2017-01-03py/asmarm: Fix assembler's PASS_EMIT constant name.Damien George
2017-01-03esp8266/modesp: Make check_fw() work with OTA firmware.Paul Sokolovsky
2017-01-02esp8266/Makefile: Produce OTA firmware as firmware-ota.bin.Paul Sokolovsky
2017-01-02esp8266/scripts/inisetup: Dump FS starting sector/size on error.Paul Sokolovsky
Should allow to diagnose/try to recover FS easier.
2016-12-31unix/moduselect: Fix nanbox build with recent changes.Paul Sokolovsky
2016-12-31unix/moduselect: If file object passed to .register(), return it in .poll().Paul Sokolovsky
This makes unix "uselect" compatible with baremetal "uselect". Previosuly, unix version accepted file/socket objects, but internally converted that to file descriptors, and that's what .poll() returned. To acheive new behavior, file-like objects are stored internally in an array, in addition to existing array of struct pollfd. This array is created only on first case of file-like object being passed to .register(). If only raw fd's are passed, there will be no additional memory used comparing to the original implementation.
2016-12-30docs/library/machine.I2C: Fix I2C constructor docs to match impl.Damien George
2016-12-30docs/esp8266/tutorial: Update intro to add Getting the firmware section.Andrew Mulholland
Add a "Getting the firmware" section to better describe how to get hold of the MicroPython firmware, especially if you have a 512kb module.
2016-12-29cc3200/README: Reorganize and update to the current state of affairs.Paul Sokolovsky
Try to put sections in more logical order, and information about cc3200tool to be the default flashing method.
2016-12-29cc3200: Add targets to erase flash, deploy firmware using cc3200tool.Paul Sokolovsky
cc3200tool, https://github.com/ALLTERCO/cc3200tool is a (mostly, some binary blobs present) open-source, Linux-friendly tool to flash a cc3200 devices. It's an alternative to fully proprietary, Windows-only Uniflash from TI. The provided make targets are for erasing flash, flashing the uPy bootloader and firmware, and flashing vendor's WiFi firmware "servicepacks" (the latter needs to be downloaded from vendor side, a link is present inside Makefile).