summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-29extmod/machine_signal: Implement "signal" abstraction for machine module.Paul Sokolovsky
A signal is like a pin, but ca also be inverted (active low). As such, it abstracts properties of various physical devices, like LEDs, buttons, relays, buzzers, etc. To instantiate a Signal: pin = machine.Pin(...) signal = machine.Signal(pin, inverted=True) signal has the same .value() and __call__() methods as a pin.
2017-01-29esp8266/machine_pin: Implement pin ioctl protocol.Paul Sokolovsky
For polymorphic interfacing on C level.
2017-01-29docs/uio: Typo fixes/lexical improvements.Paul Sokolovsky
2017-01-29docs/conf.py: Add myself as a copyright holder on the docs.Paul Sokolovsky
Based on the following statistics: $ git log docs |grep Author | sort | uniq -c | sort -n -r 175 Author: Paul Sokolovsky 135 Author: Damien George 31 Author: Daniel Campora 26 Author: danicampora 14 Author: Peter Hinch git blame stats script from http://stackoverflow.com/a/13687302/496009: $ sh git-authors docs 9977 author Damien George 2679 author Paul Sokolovsky 1699 author Daniel Campora 1580 author danicampora 1286 author Peter Hinch 282 author Shuning Bian 249 author Dave Hylands Total lines per this script: 18417, my contribution is 14.5%.
2017-01-29stmhal/moduos: Remove duplicated chdir.Damien George
2017-01-29stmhal: Fix name of automatically created boot.py.Damien George
2017-01-29cc3200/modusocket: Remove deprecated socket.error.Paul Sokolovsky
socket.error is deprecated even in upstream: https://docs.python.org/3/library/socket.html#socket.error, and never was a part of MicroPython socket API.
2017-01-28docs/uio: Describe differences between uPy an CPy stream hierarchy.Paul Sokolovsky
2017-01-28docs/usocket: Dedent Methods section.Paul Sokolovsky
This was apparently of an ::only directive which was later removed.
2017-01-28docs/usocket: Clarify description of various methods.Paul Sokolovsky
2017-01-28docs/usocket: Elaborate "Constants" section.Paul Sokolovsky
2017-01-28docs/usocket: Clarify exceptions used.Paul Sokolovsky
2017-01-28docs/machine: Add explicit note on machine module level and scope.Paul Sokolovsky
It's very low, hardware level, with associated constraints on operations and callbacks.
2017-01-28docs/machine.Timer: Move WiPy adhoc parts to its documentation.Paul Sokolovsky
2017-01-27zephyr/prj_frdm_k64f.conf: Add, enable Ethernet support.Paul Sokolovsky
2017-01-27zephyr: Allow to have per-board Zephyr config fragments.Paul Sokolovsky
To enable options which may be incompatible with other boards, etc.
2017-01-27zephyr: Make sure that correct Zephyr config is used for "minimal" build.Paul Sokolovsky
Overriding CONF_FILE in "minimal" target itself is too late due to include- pinned $(Z_EXPORTS) target.
2017-01-27lib/oofatfs: Update oofatfs library.Damien George
From https://github.com/micropython/oofatfs, branch work-R0.12b, commit 1e295b40550664bbaac18d95a4b6a58154464d31.
2017-01-27tests/extmod/vfs_fat_ramdisk: Make it work on pyboard.Damien George
2017-01-27cc3200: Add implementations of mp_import_stat and builtin_open.Damien George
They disappeared when stmhal changed to use new MICROPY_VFS code.
2017-01-27stmhal: Convert to use VFS sub-system and new ooFatFs component.Damien George
This patch makes the following configuration changes: - MICROPY_FSUSERMOUNT is disabled, removing old mounting infrastructure - MICROPY_VFS is enabled, giving new VFS sub-system - MICROPY_VFS_FAT is enabled, giving uos.VfsFat type - MICROPY_FATFS_OO is enabled, to use new ooFatFs lib, R0.12b User facing API should be almost unchanged. Most notable changes are removal of os.mkfs (use os.VfsFat.mkfs instead) and pyb.mount doesn't allow unmounting by passing None as the device.
2017-01-27stmhal/usbd_msc_storage: Use storage functions instead of disk ones.Damien George
2017-01-27esp8266/fatfs_port: Include new oofatfs header.Damien George
2017-01-27unix/fatfs_port: Include new oofatfs header.Damien George
2017-01-27extmod/vfs_fat: Use SECSIZE macro to determine FatFs sector size.Damien George
2017-01-27extmod/vfs: Expose mp_vfs_mount_t type.Damien George
It should only be used for low-level things and with caution, for example putting mounted VFS data in ROM or the static data section.
2017-01-27extmod/modlwip: Add socket.readinto() method.Damien George
2017-01-27tests/extmod/vfs_fat: Update tests to work with new VFS sub-system.Damien George
The vfs_fat_fsusermount test is no longer relevant so has been removed.
2017-01-27esp8266: Change to use new generic VFS sub-system.Damien George
The VFS sub-system supports mounting of an arbitrary number of devices (limited only by available RAM). The internal flash is now mounted at "/flash".
2017-01-27unix: Change to use new generic VFS sub-system in coverage build.Damien George
This patch includes a new module "uos_vfs" which can be used for testing the VFS syb-system.
2017-01-27extmod/vfs: Add ability for VFS sub-system to import using VfsFat.Damien George
2017-01-27extmod/vfs_fat: Rework to support new generic VFS sub-system.Damien George
The VfsFat object can now be mounted by the generic VFS sub-system.
2017-01-27extmod: Add generic VFS sub-system.Damien George
This provides mp_vfs_XXX functions (eg mount, open, listdir) which are agnostic to the underlying filesystem type, and just require an object with the relevant filesystem-like methods (eg .mount, .open, .listidr) which can then be mounted. These mp_vfs_XXX functions would typically be used by a port to implement the "uos" module, and mp_vfs_open would be the builtin open function. This feature is controlled by MICROPY_VFS, disabled by default.
2017-01-27extmod: Rename vfs_fat_file.h to vfs_fat.h.Damien George
And move declaration of mp_fat_vfs_type to this file.
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