Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | unix: Get minimal version compiling again. | Damien George | 2017-01-27 |
| | |||
* | esp8266: Switch to use OO version of FatFs library. | Damien George | 2017-01-27 |
| | |||
* | test/extmod: Update vfs_fat tests for new OO FatFs library. | Damien George | 2017-01-27 |
| | | | | | 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. | ||
* | unix: Switch to OO version of FatFS library. | Damien George | 2017-01-27 |
| | |||
* | extmod/vfs_fat: Rework so it can optionally use OO version of FatFS. | Damien George | 2017-01-27 |
| | | | | | | 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. | ||
* | py/py.mk: Add CFLAGS_MOD flag to set config file for FatFs. | Damien George | 2017-01-27 |
| | |||
* | lib/oofatfs: Add OO version of FatFS library. | Damien George | 2017-01-27 |
| | | | | | From https://github.com/micropython/oofatfs, branch work-R0.12b, commit a346ccec123c2e4d887e2751d64156208d03bff4. | ||
* | qemu-arm: Don't compile tests in "REPL" mode. | Damien George | 2017-01-27 |
| | | | | | | | | | | 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. | ||
* | py/showbc: Make sure to set the const_table before printing bytecode. | Damien George | 2017-01-27 |
| | |||
* | tools/tinytest-codegen.py: Blacklist heapalloc_str.py test for qemu-arm. | Paul Sokolovsky | 2017-01-27 |
| | |||
* | tests/heapalloc_str: Test for alloc-free string operations. | Paul Sokolovsky | 2017-01-27 |
| | | | | Starts with concatenation with an empty string. | ||
* | py/objstr: Optimize string concatenation with empty string. | Paul Sokolovsky | 2017-01-27 |
| | | | | | | | | | | | | | | 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. | ||
* | tests/extmod: Add test for ure debug printing when compiling a regex. | Damien George | 2017-01-26 |
| | |||
* | py/objmodule: Move module init/deinit code into runtime functions. | Damien George | 2017-01-26 |
| | | | | | | 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. | ||
* | tests/extmod/framebuf1: Fix test for framebuf invalid constructor. | Damien George | 2017-01-25 |
| | |||
* | tests/extmod/framebuf4: Add tests for GS4_HMSB framebuf format. | Oleg Korsak | 2017-01-25 |
| | |||
* | extmod/modframebuf: Add GS4_HMSB format. | Oleg Korsak | 2017-01-25 |
| | |||
* | py/objint: Fix left-shift overflow in checking for large int. | Damien George | 2017-01-25 |
| | |||
* | esp8266: Factor out common linker code to esp8266_common.ld. | Damien George | 2017-01-25 |
| | |||
* | stmhal/mpconfigport.h: Reorganise the config options into groups. | Damien George | 2017-01-24 |
| | | | | | | 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. | ||
* | stmhal/boards/STM32L476DISC: Use external SPI flash for filesystem. | Damien George | 2017-01-24 |
| | |||
* | stmhal: Add ability to have filesystem stored on external SPI flash. | Damien George | 2017-01-24 |
| | | | | | | | | | 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). | ||
* | drivers/memory: Add SPI flash driver, written in C. | Damien George | 2017-01-24 |
| | |||
* | stmhal: Fix examples in openocd configs to include addresses. | Pavol Rusnak | 2017-01-24 |
| | |||
* | tests: Make sure special tests can be skipped as well. | stijn | 2017-01-24 |
| | | | | Fixes #2806. | ||
* | docs/library/lcd160cr: Fix set_brightness range, should be 0..31. | Damien George | 2017-01-24 |
| | |||
* | docs/pyboard/tutorial: Add tutorial for LCD160CR. | Damien George | 2017-01-23 |
| | |||
* | stmhal: Add default frozen-bytecode directory and link lcd160cr driver. | Damien George | 2017-01-23 |
| | | | | | | | 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. | ||
* | docs: Add documentation for lcd160cr module. | Damien George | 2017-01-23 |
| | |||
* | drivers/display: Add driver and test for uPy LCD160CR display. | Damien George | 2017-01-23 |
| | |||
* | extmod/modframebuf: Clip pixels drawn by line method. | Damien George | 2017-01-23 |
| | |||
* | lib/utils/pyexec: Only print help prompt if HELP feature is enabled. | Damien George | 2017-01-22 |
| | |||
* | stmhal: Enable help('modules') feature. | Damien George | 2017-01-22 |
| | |||
* | tests/basics/builtin_help: Add test for help('modules'). | Damien George | 2017-01-22 |
| | |||
* | unix: Enable MICROPY_PY_BUILTINS_HELP_MODULES in coverage build. | Damien George | 2017-01-22 |
| | |||
* | py/builtinhelp: Implement help('modules') to list available modules. | Damien George | 2017-01-22 |
| | | | | | | | | 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). | ||
* | py: Move weak-link map to objmodule.c, and expose module maps as public. | Damien George | 2017-01-22 |
| | |||
* | tests: Add test for builtin help function. | Damien George | 2017-01-22 |
| | |||
* | unix: Enable builtin help function in coverage build. | Damien George | 2017-01-22 |
| | |||
* | lib/utils: Remove old pyhelp helper, replaced with py/builtinhelp.c. | Damien George | 2017-01-22 |
| | | | | | | 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. | ||
* | zephyr: Convert to use builtin help function. | Damien George | 2017-01-22 |
| | |||
* | teensy: Convert to use builtin help function. | Damien George | 2017-01-22 |
| | |||
* | cc3200: Convert to use builtin help function. | Damien George | 2017-01-22 |
| | |||
* | esp8266: Convert to use builtin help function. | Damien George | 2017-01-22 |
| | |||
* | stmhal: Convert to use builtin help function. | Damien George | 2017-01-22 |
| | |||
* | py: Add builtin help function to core, with default help msg. | Damien George | 2017-01-22 |
| | | | | | This builtin is configured using MICROPY_PY_BUILTINS_HELP, and is disabled by default. | ||
* | tests/heapalloc_int_from_bytes: Test that int.from_bytes() can work w/o alloc. | Paul Sokolovsky | 2017-01-21 |
| | | | | | For a small number of bytes, it's expected to return a small int without allocation. | ||
* | tests: Add test for int.from_bytes() for arbitrary-precision integer. | Paul Sokolovsky | 2017-01-21 |
| | | | | | This test works only for MICROPY_LONGINT_IMPL == MICROPY_LONGINT_IMPL_MPZ and needs a way of skipping in other cases. | ||
* | py/objint_longlong: Add stub for mp_obj_int_from_bytes_impl(). | Paul Sokolovsky | 2017-01-21 |
| | | | | To be implemented later. | ||
* | py/objint: from_bytes(): Implement "byteorder" param and arbitrary precision. | Paul Sokolovsky | 2017-01-21 |
| | | | | | | | 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(). |