aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-02-06tests/pyb: Adjust tests so they can run on PYB and PYBLITE.Damien George
A few tests still fail on PYBLITE, and that's due to differences in the available peripheral block numbers on the different MCUs (eg I2C(2) exists on one, but it's I2C(3) on the other).
2017-02-06stmhal: Add pyb.fault_debug() function, to control hard-fault behaviour.Damien George
This new function controls what happens on a hard-fault: - debugging disabled: board will do a reset - debugging enabled: board will print registers and stack and flash LEDs The default is disabled, ie to do a reset. This is different to previous behaviour which flashed the LEDs and waited indefinitely.
2017-02-06stmhal: On HardFault, print stack pointer and do a stack dump.Damien George
2017-02-06cc3200: Refactor "ticks" functions to use common extmod implementation.Damien George
The port now uses the common mp_utime_ticks_{ms,us,cpu,add,diff} functions from extmod/utime_mphal.c. The mp_utime_sleep_XXX functions are still cc3200-specific because they handle the GIL differently to the ones in extmod. The files misc/mpsystick.[ch] have been removed because they contain 2 unused functions, and the other remaining function is renamed to mp_hal_ticks_us and moved to hal/cc3200_hal.c.
2017-02-05examples/button_reaction: Update for time_pulse_us() no longer raising exc.Paul Sokolovsky
2017-02-05extmod/machine_pulse: Make time_pulse_us() not throw exceptions.Paul Sokolovsky
machine.time_pulse_us() is intended to provide very fine timing, including while working with signal bursts, where each transition is tracked in row. Throwing and handling an exception may take too much time and "signal loss". So instead, in case of a timeout, just return negative value. Cases of timeout while waiting for initial signal stabilization, and during actual timing, are recognized. The documentation is updated accordingly, and rewritten somewhat to clarify the function behavior.
2017-02-04py/objcomplex: Fix typo in ternary expression.Damien George
This typo actually did the correct thing, but it was very obscure (came about from think in terms of Python's "x if cond else y" expression).
2017-02-03esp8266/uart: Add support for polling uart device.marc hoffman
2017-02-03py/objstr: Convert some instances of mp_uint_t to size_t.Damien George
2017-02-03docs: For LCD160CR driver and tutorial, add link to positioning image.Damien George
2017-02-03stmhal/mpconfigport.h: Enable MICROPY_PY_BUILTINS_POW3 option.Damien George
2017-02-03qemu-arm/mpconfigport.h: Enable MICROPY_PY_BUILTINS_POW3 option.Damien George
2017-02-03py/mpconfig.h: Move PY_BUILTINS_POW3 config option to diff part of file.Damien George
With so many config options it's good to (at least try to) keep them grouped into logical sections.
2017-02-03tests/basics/string_format_modulo: Add more tests for dict formatting.Damien George
2017-02-03py/objstr: Give correct behaviour when passing a dict to %-formatting.Damien George
This patch fixes two main things: - dicts can be printed directly using '%s' % dict - %-formatting should not crash when passed a non-dict to, eg, '%(foo)s'
2017-02-02tests: Split tests for 2- and 3-arg pow().Paul Sokolovsky
2017-02-02py: Added optimised support for 3-argument calls to builtin.pow()Nicko van Someren
Updated modbuiltin.c to add conditional support for 3-arg calls to pow() using MICROPY_PY_BUILTINS_POW3 config parameter. Added support in objint_mpz.c for for optimised implementation.
2017-02-03py/objset: Fix inplace binary ops so frozensets are not modified.Damien George
2017-02-03tests/float: Add tests for zero to a negative power.Damien George
2017-02-03py/objcomplex: Correctly handle case of 0j to power of something.Damien George
0j to the power of negative now raises ZeroDivisionError, and 0j to the power of positive returns 0.
2017-02-03py/objfloat: Raise ZeroDivisionError for 0 to negative power.Damien George
2017-02-02tests/basics/set_binop: Add tests for inplace set operations.Damien George
2017-02-02py/objset: Make inplace binary operators actually modify the set.Damien George
2017-02-02tests/heapalloc_bytesio: Test for BytesIO with preallocates space.Paul Sokolovsky
2017-02-02py/objstringio: Allow to specify initial capacity by passing numeric argument.Paul Sokolovsky
E.g. uio.BytesIO(100) will allocate buffer with 100 bytes of space.
2017-02-01unix: Make stack be non-executableDave Hylands
This PR is to address issue #2812.
2017-02-01zephyr/README: Describe many gotchas of networked builds.Paul Sokolovsky
2017-02-01tests/thread: Fix stack size test so tests run reliably on baremetal.Damien George
2017-01-31lib/oofatfs/ffconf.h: Add MICROPY_FATFS_NORTC option.Andrew Gatt
2017-01-31stmhal: Fix build issue when MICROPY_PY_THREAD is disabled.Damien George
2017-01-31stmhal/main: Use _estack value to initialise stack extents.Damien George
2017-01-31stmhal: Initial implementation of multithreading, currently disabled.Damien George
This patch brings the _thread module to stmhal/pyboard. There is a very simple round-robin thread scheduler, which is disabled if there is only one thread (for efficiency when threading is not used). The scheduler currently switches threads at a rate of 250Hz using the systick timer and the pend-SV interrupt. The GIL is disabled so one must be careful to use lock objects to prevent concurrent access of objects. The threading is disabled by default, one can enabled it with the config option MICROPY_PY_THREAD to test it out.
2017-01-31tests/thread: Make thread_exc2 runable on baremetal.Damien George
2017-01-31stmhal/pendsv: Fill in comments about what the stack contains.Damien George
2017-01-31stmhal/main: Guard init_sdcard_fs with MICROPY_HW_HAS_SDCARD.Damien George
2017-01-31stmhal/modmachine: Add machine.Signal type.Damien George
2017-01-31stmhal/pin: Add C-level pin ioctl method.Damien George
2017-01-31lib/oofatfs/ffconf.h: Allow to configure FS_EXFAT option.Damien George
Using MICROPY_FATFS_EXFAT. Enabling this has licensing implications; see https://www.microsoft.com/en-us/legal/intellectualproperty/mtl/exfat-licensing.aspx
2017-01-31stmhal/main: Put /sd directory before /flash in sys.path.Damien George
If the SD card is mounted then its libraries (ie those that are imported) should override any in /flash.
2017-01-31stmhal: On boot, mount all available partitions of the SD card.Damien George
The first partition is mounted as "/sd" and subsequent partitions are mounted as "/sd<part_num>". This is backwards compatible with the previous behaviour, which just mounted the first partition on "/sd". At this point, only FatFs filesystems are mounted.
2017-01-31stmhal/README: Add paragraph about building mpy-cross.Damien George
2017-01-31tests/basics/zip: Make skippable.Paul Sokolovsky
2017-01-31tests/run-tests: Skip frozenset tests if set literal syntax is not available.Paul Sokolovsky
2017-01-30zephyr/Makefile.zephyr: Support and default to networked (SLIP) QEMU.Paul Sokolovsky
Also works for non-networked builds (like minimal).
2017-01-30extmod/vfs_fat.c: Use explicit include path for timeutils.h.Andrew Gatt
2017-01-30extmod/vfs_reader: Fix use of NLR by popping context.Damien George
2017-01-30docs/pyboard/tutorial/lcd160cr_skin: Fix typo, get_touched->get_touch.Damien George
2017-01-30stmhal: Fix stack pointer initialisation for F411 and F429 boards.Damien George
The stack pointer should start pointing 1 byte past the top of the end of RAM.
2017-01-30stmhal: Set the FatFs partition number when initialising VFS object.Damien George
stmhal has MULTI_PARTITION enabled for FatFs and so these values need to be initialised.
2017-01-30stmhal: Use LED constants from PYBv4 onwards.Damien George