summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-10-21README: "MicroPython board" is much more commonly known as PyBoard.Paul Sokolovsky
2016-10-21stmhal/Makefile: Use standard rules for frozen module generation.Paul Sokolovsky
As defined in py/py.mk.
2016-10-21py/py.mk: Automatically add frozen.c to source list if FROZEN_DIR is defined.Paul Sokolovsky
Now frozen modules generation handled fully by py.mk and available for reuse by any port.
2016-10-20esp8266/modules/webrepl: Enforce only one concurrent WebREPL connection.Paul Sokolovsky
Concurrent WebREPL connections were never supported, now actually check for this.
2016-10-19extmod/vfs_fat_file: Check fatfs f_sync() and f_close() returns for errors.Alex March
2016-10-19cc3200: Fix thread mutex's so threading works with interrupts.Damien George
Running Python code on a hard interrupt is incompatible with having a GIL, because most of the time the GIL will be held by the user thread when the interrupt arrives. Hard interrupts mean that we should process them right away and hence can't wait until the GIL is released. The problem with the current code is that a hard interrupt will try to exit/enter the GIL while it is still held by the user thread, hence leading to a deadlock. This patch works around such a problem by just making GIL exit/enter a no-op when in an interrupt context, or when interrupts are disabled. See issue #2406.
2016-10-19esp8266/main: Mark nlr_jump_fail() as MP_FASTCODE.Paul Sokolovsky
It's probably not strictly needed so far, but serves as an example of MP_FASTCODE use and may be helpful in the future.
2016-10-19esp8266: Add MP_FASTCODE modifier to put a function to iRAM.Paul Sokolovsky
It can be used in the following manner: void MP_FASTCODE(foo)(int arg) { ... }
2016-10-19esp8266/esp8266.ld: Move main.o to iROM.Paul Sokolovsky
2016-10-19esp8266/esp8266.ld: Move modmachine.o to iROM.Paul Sokolovsky
2016-10-19esp8266/esp8266.ld: Move help.o to iROM.Paul Sokolovsky
2016-10-18esp8266/esp_init_data: Auto-initialize system params with vendor SDK 2.0.0.Paul Sokolovsky
SDK 2.0.0 goes into boot loop if a firmware is programmed over erased flash, causing problems with user experience. This change implements behavior similar to older SDKs': if clean flash is detected, default system parameters are used.
2016-10-18teensy: Update to provide new mp_hal_pin_XXX functions following stmhal.Damien George
2016-10-18stmhal/led: Refactor LED to use mp_hal_pin_output() init function.Damien George
As part of this patch the MICROPY_HW_LED_OTYPE setting is removed because it is now unused (all boards anyway had this as OUTPUT_PP).
2016-10-18stmhal: Refactor pin usage to use mp_hal_pin API.Damien George
2016-10-18stmhal/modutime: Refactor to use extmod's version of ticks_cpu.Damien George
2016-10-18cc3200: Enable loading of precompiled .mpy files.Damien George
Adds 1072 bytes to the code size.
2016-10-18cc3200/mods/pybspi: Allow "write" arg of read/readinto to be positional.Damien George
To conform with Hardware API.
2016-10-18docs/machine.SPI: Improve descriptions of xfer methods.Damien George
In particular remove the "*" because not all ports support keyword arguments.
2016-10-18cc3200: Use mp_raise_XXX helper functions to reduce code size.Damien George
Reduces code size by 632 bytes.
2016-10-18esp8266/Makefile: Use latest esptool.py flash size auto-detection.Paul Sokolovsky
2016-10-17docs/machine.SPI: Bring up to date with Hardware API, make vendor-neutral.Paul Sokolovsky
2016-10-17docs: Bump version to 1.8.5.v1.8.5Damien George
2016-10-17tests/run-tests: Enable extmod/machine1.py on pyboard.Damien George
It now works.
2016-10-17stmhal: Enable str.center(), str.[r]partition() and builtin compile().Damien George
Also adds "machine" to the list of modules that the parser can search for constants.
2016-10-17stmhal: Implement machine.soft_reset().Damien George
2016-10-17lib/utils/pyexec: Allow behaviour of SystemExit to be configurable.Damien George
Setting the pyexec_system_exit variable to PYEXEC_FORCED_EXT allows SystemExit exceptions to terminate the pyexec functions.
2016-10-17py: Use mp_raise_msg helper function where appropriate.Damien George
Saves the following number of bytes of code space: 176 for bare-arm, 352 for minimal, 272 for unix x86-64, 140 for stmhal, 120 for esp8266.
2016-10-17tests: Add test to print full KeyError exc from failed dict lookup.Damien George
2016-10-17py/objdict: Actually provide the key that failed in KeyError exception.Damien George
The failed key is available as exc.args[0], as per CPython.
2016-10-17py/objdict: Fix optimisation for allocating result in fromkeys.Damien George
Iterables don't respond to __len__, so call __len__ on the original argument.
2016-10-17tests: Improve coverage of array, range, dict, slice, exc, unicode.Damien George
2016-10-17tests/cmdline: Improve coverage test for printing bytecode.Damien George
2016-10-16esp8266, stmhal, unix: MAKE_FROZEN is consistently defined in mkenv.mk.Paul Sokolovsky
2016-10-15extmod/modussl_mbedtls: Add dummy setblocking() method.Paul Sokolovsky
Accepts only value of True.
2016-10-14extmod/utime_mphal: sleep_us/ms(): Don't wait on negative argument.Paul Sokolovsky
2016-10-14stmhal/modutime: Refactor to use extmod/utime_mphal.c.Paul Sokolovsky
This includes making sure that utime_mphal's sleep_ms() and sleep_us() don't sleep on negative arguments.
2016-10-14extmod/utime_mphal: Factor out implementations in terms of mp_hal_* for reuse.Paul Sokolovsky
As long as a port implement mp_hal_sleep_ms(), mp_hal_ticks_ms(), etc. functions, it can just use standard implementations of utime.sleel_ms(), utime.ticks_ms(), etc. Python-level functions.
2016-10-14py/vstr: Combine vstr_new_size with vstr_new since they are rarely used.Damien George
Now there is just one function to allocate a new vstr, namely vstr_new (in addition to vstr_init etc). The caller of this function should know what initial size to allocate for the buffer, or at least have some policy or config option, instead of leaving it to a default (as it was before).
2016-10-14esp8266: Enable micropython.alloc_emergency_exception_buf().Damien George
2016-10-14tests/micropython: Add tests for heap_lock, and emergency exceptions.Damien George
2016-10-14qemu-arm: Remove SRC_TEST_C from SRC_QSTR list, it's not needed.Damien George
And it gives problems with header dependencies for auto-qstr generation.
2016-10-14qemu-arm: Enable lots of extmods and enable tests for them.Damien George
The qemu-arm port is used for testing of ARM Thumb architecture on a desktop so should have many features enabled.
2016-10-14stmhal/pybstdio: Use size_t instead of mp_uint_t.Damien George
2016-10-13tests/extmod/vfs_fat: Replace asserts with prints and expected outputs.Alex March
2016-10-13extmod/modujson: Fix nanbox build.Damien George
2016-10-13tests/extmod: Add test for ujson.load().Damien George
2016-10-13extmod/modujson: Implement ujson.load() to load JSON from a stream.Damien George
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.
2016-10-12zephyr: Add copyright blurbs.Paul Sokolovsky
2016-10-12zephyr/mpconfigport.h: Fix rebasing artifacts.Paul Sokolovsky