aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-27unix: Get minimal version compiling again.Damien George
2017-01-27esp8266: Switch to use OO version of FatFs library.Damien George
2017-01-27test/extmod: Update vfs_fat tests for new OO FatFs library.Damien George
The new version of FatFs requires a minimum of 50 blocks on the device. Also, some tests no longer make sense with an OO vfs.
2017-01-27unix: Switch to OO version of FatFS library.Damien George
2017-01-27extmod/vfs_fat: Rework so it can optionally use OO version of FatFS.Damien George
If MICROPY_VFS_FAT is enabled by a port then the port must switch to using MICROPY_FATFS_OO. Otherwise a port can continue to use the FatFs code without any changes.
2017-01-27py/py.mk: Add CFLAGS_MOD flag to set config file for FatFs.Damien George
2017-01-27lib/oofatfs: Add OO version of FatFS library.Damien George
From https://github.com/micropython/oofatfs, branch work-R0.12b, commit a346ccec123c2e4d887e2751d64156208d03bff4.
2017-01-27qemu-arm: Don't compile tests in "REPL" mode.Damien George
Previous to this patch the qemu-arm tests were compiled with is_relp=true meaning that the __repl_print__ function was called for all lines of code in the outer scope. This is not the right behaviour for scripts that are executed as though they were a file (eg tests). With this fix the micropython/heapalloc_str.py test now works so it is removed from the test blacklist.
2017-01-27py/showbc: Make sure to set the const_table before printing bytecode.Damien George
2017-01-27tools/tinytest-codegen.py: Blacklist heapalloc_str.py test for qemu-arm.Paul Sokolovsky
2017-01-27tests/heapalloc_str: Test for alloc-free string operations.Paul Sokolovsky
Starts with concatenation with an empty string.
2017-01-27py/objstr: Optimize string concatenation with empty string.Paul Sokolovsky
In this, don't allocate copy, just return non-empty string. This helps with a standard pattern of buffering data in case of short reads: buf = b"" while ...: s = f.read(...) buf += s ... For a typical case when single read returns all data needed, there won't be extra allocation. This optimization helps uasyncio.
2017-01-26tests/extmod: Add test for ure debug printing when compiling a regex.Damien George
2017-01-26py/objmodule: Move module init/deinit code into runtime functions.Damien George
They are one-line functions and having them inline in mp_init/mp_deinit eliminates the overhead of a function call, and matches how other state is initialised in mp_init.
2017-01-25tests/extmod/framebuf1: Fix test for framebuf invalid constructor.Damien George
2017-01-25tests/extmod/framebuf4: Add tests for GS4_HMSB framebuf format.Oleg Korsak
2017-01-25extmod/modframebuf: Add GS4_HMSB format.Oleg Korsak
2017-01-25py/objint: Fix left-shift overflow in checking for large int.Damien George
2017-01-25esp8266: Factor out common linker code to esp8266_common.ld.Damien George
2017-01-24stmhal/mpconfigport.h: Reorganise the config options into groups.Damien George
The order now follows that in py/mpconfig.h and is a bit cleaner and easier to maintain. No options were changed/added/removed with this patch, it's just a reordering.
2017-01-24stmhal/boards/STM32L476DISC: Use external SPI flash for filesystem.Damien George
2017-01-24stmhal: Add ability to have filesystem stored on external SPI flash.Damien George
To use this feature a port should define MICROPY_HW_SPIFLASH_SIZE_BITS along with x_CS, x_SCK, x_MOSI, x_MISO (x=MICROPY_HW_SPIFLASH). This will then use external SPI flash on those pins instead of the internal flash. The SPI is done using the software implementation. There is currently only support for standard SPI (ie not dual or quad mode).
2017-01-24drivers/memory: Add SPI flash driver, written in C.Damien George
2017-01-24stmhal: Fix examples in openocd configs to include addresses.Pavol Rusnak
2017-01-24tests: Make sure special tests can be skipped as well.stijn
Fixes #2806.
2017-01-24docs/library/lcd160cr: Fix set_brightness range, should be 0..31.Damien George
2017-01-23docs/pyboard/tutorial: Add tutorial for LCD160CR.Damien George
2017-01-23stmhal: Add default frozen-bytecode directory and link lcd160cr driver.Damien George
stmhal will now be built by default with frozen bytecode from scripts stored in the stmhal/modules/ directory. This can be disabled or changed to another directory by overridding the make variable FROZEN_MPY_DIR.
2017-01-23docs: Add documentation for lcd160cr module.Damien George
2017-01-23drivers/display: Add driver and test for uPy LCD160CR display.Damien George
2017-01-23extmod/modframebuf: Clip pixels drawn by line method.Damien George
2017-01-22lib/utils/pyexec: Only print help prompt if HELP feature is enabled.Damien George
2017-01-22stmhal: Enable help('modules') feature.Damien George
2017-01-22tests/basics/builtin_help: Add test for help('modules').Damien George
2017-01-22unix: Enable MICROPY_PY_BUILTINS_HELP_MODULES in coverage build.Damien George
2017-01-22py/builtinhelp: Implement help('modules') to list available modules.Damien George
This is how CPython does it, and it's very useful to help users discover the available modules for a given port, especially built-in and frozen modules. The function does not list modules that are in the filesystem because this would require a fair bit of work to do correctly, and is very port specific (depending on the filesystem).
2017-01-22py: Move weak-link map to objmodule.c, and expose module maps as public.Damien George
2017-01-22tests: Add test for builtin help function.Damien George
2017-01-22unix: Enable builtin help function in coverage build.Damien George
2017-01-22lib/utils: Remove old pyhelp helper, replaced with py/builtinhelp.c.Damien George
Ports should no longer use pyhelp_print_obj but instead should define MICROPY_PY_BUILTINS_HELP to 1 and then specify their help text using MICROPY_PY_BUILTINS_HELP_TEXT.
2017-01-22zephyr: Convert to use builtin help function.Damien George
2017-01-22teensy: Convert to use builtin help function.Damien George
2017-01-22cc3200: Convert to use builtin help function.Damien George
2017-01-22esp8266: Convert to use builtin help function.Damien George
2017-01-22stmhal: Convert to use builtin help function.Damien George
2017-01-22py: Add builtin help function to core, with default help msg.Damien George
This builtin is configured using MICROPY_PY_BUILTINS_HELP, and is disabled by default.
2017-01-21tests/heapalloc_int_from_bytes: Test that int.from_bytes() can work w/o alloc.Paul Sokolovsky
For a small number of bytes, it's expected to return a small int without allocation.
2017-01-21tests: Add test for int.from_bytes() for arbitrary-precision integer.Paul Sokolovsky
This test works only for MICROPY_LONGINT_IMPL == MICROPY_LONGINT_IMPL_MPZ and needs a way of skipping in other cases.
2017-01-21py/objint_longlong: Add stub for mp_obj_int_from_bytes_impl().Paul Sokolovsky
To be implemented later.
2017-01-21py/objint: from_bytes(): Implement "byteorder" param and arbitrary precision.Paul Sokolovsky
If result guaranteedly fits in a small int, it is handled in objint.c. Otherwise, it is delegated to mp_obj_int_from_bytes_impl(), which should be implemented by individual objint_*.c, similar to mp_obj_int_to_bytes_impl().