aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-10-29travis: Add job to build and test unix minimal port.Damien George
To test that unix minimal port builds, and that test-suite can run with minimal features enabled.
2019-10-29tests/basics: Split sys.exit test to separate file so it can be skipped.Damien George
2019-10-29tests: Add feature check for uio module and skip corresponding tests.Damien George
2019-10-29tests/basics: Automatically skip tests that use str/bytes modulo-format.Damien George
2019-10-29tests/run-tests: Add misc list of tests that use slice, to skip them.Damien George
2019-10-29tests/basics: Split out specific slice tests to separate files.Damien George
So they can be automatically skipped if slice is not enabled.
2019-10-29tests: Add feature check for slice and skip corresponding tests.Damien George
2019-10-29tests/basics: Use bytes not bytearray when checking user buffer proto.Damien George
Using bytes will test the same path for the buffer protocol in py/objtype.c.
2019-10-29tests/basics: Split out specific bytearray tests to separate files.Damien George
So they can be automatically skipped if bytearray is not enabled.
2019-10-29tests: Add feature check for bytearray and skip corresponding tests.Damien George
2019-10-29tests/basics/builtin_dir.py: Look for "version" in dir(sys).Damien George
Because "version" will always be there, but "exit" may not.
2019-10-29tests/basics: Use str.format instead of % for formatting messages.Damien George
Only use % formatting when testing % itself, because only str.format is guaranteed to be available on any port.
2019-10-29unix/mphalport.h: Define mp_hal_stdio_poll to dummy because it's unused.Damien George
And requires uintptr_t to declare the default version in py/mphal.h.
2019-10-29docs/library: Add documentation for extended block device protocol.Damien George
2019-10-29extmod/vfs: Add MP_BLOCKDEV_IOCTL_BLOCK_ERASE constant.Damien George
2019-10-29extmod/vfs: Rename BP_IOCTL_xxx constants to MP_BLOCKDEV_IOCTL_xxx.Damien George
Also rename SEC_COUNT to BLOCK_COUNT and SEC_SIZE to BLOCK_SIZE.
2019-10-29tests/extmod: Add test for blockdev with standard and extended protocol.Damien George
2019-10-29tests/extmod: Add littlefs tests.Damien George
2019-10-29unix: Enable uos.VfsLfs1, uos.VfsLfs2 on coverage build.Damien George
2019-10-29extmod: Add VFS littlefs bindings.Damien George
Both LFS1 and LFS2 are supported at the same time.
2019-10-29extmod/vfs_blockdev: Add extended read/write methods.Damien George
This commit adds helper functions to call readblocks/writeblocks with a fourth argument, the byte offset within a block. Although the mp_vfs_blockdev_t struct has grown here by 2 machine words, in all current uses of this struct within this repository it still fits within the same number of GC blocks.
2019-10-29lib/littlefs: Add README describing origin and how to gen lfs1/lfs2.Damien George
2019-10-29lib/littlefs: Add littlefs v2.1.3 source.Damien George
2019-10-29lib/littlefs: Add littlefs v1.7.2 source.Damien George
2019-10-29extmod/vfs_blockdev: Factor out block device interface code.Damien George
2019-10-29extmod: Factor out block-device struct to make independent of fatfs.Damien George
2019-10-28stm32/Makefile: Only enable hardware sqrt on parts that support it.Jim Mussared
Not enough to detect f7/h7, need to use the specific parts. Follow-up to 580a2656d10cc7c1fc93e094d7eb71f04d99c329.
2019-10-23docs: Move ubluetooth under "MicroPython-specific libraries".Mike Wadsten
CPython does not have a bluetooth module, so it is not appropriate to call ubluetooth a Python standard library or micro-library.
2019-10-23esp32/machine_hw_spi: Fix exception msg when host is already in use.Mike Teachman
When a SPI bus is initialized with a SPI host that is currently in use the exception msg incorrectly indicates "SPI device already in use". The mention of "device" in the exception msg is confusing because the error is about trying to use a SPI host that is already claimed. A better exception msg is "SPI host already in use".
2019-10-22powerpc: Add initial port to bare metal PowerPC arch.Michael Neuling
Runs in microwatt (GHDL and FPGA) and qemu. Port done initially by Michael Neuling, with help from Anton Blanchard and Jordan Niethe.
2019-10-22stm32/sdram: Fix to use new mpu_config_start/mpu_config_end signature.Andrew Leech
2019-10-22docs/library/bluetooth: Rename to "ubluetooth".Jim Mussared
2019-10-22extmod/modbluetooth: Rename module to "ubluetooth".Jim Mussared
For consistency with "umachine". Now that weak links are enabled by default for built-in modules, this should be a no-op, but allows extension of the bluetooth module by user code. Also move registration of ubluetooth to objmodule rather than port-specific.
2019-10-22tests: Rename "array" module to "uarray".Damien George
2019-10-22docs/library: Rename "array" module to "uarray".Damien George
2019-10-22py/modarray: Rename "array" module to "uarray".Damien George
Following the other modules like ustruct, ucollections. See issues #4370 and #4449.
2019-10-22unix,windows: Enable module weak links.Damien George
2019-10-22py: Automatically provide weak links from "foo" to "ufoo" module name.Damien George
This commit implements automatic module weak links for all built-in modules, by searching for "ufoo" in the built-in module list if "foo" cannot be found. This means that all modules named "ufoo" are always available as "foo". Also, a port can no longer add any other weak links, which makes strict the definition of a weak link. It saves some code size (about 100-200 bytes) on ports that previously had lots of weak links. Some changes from the previous behaviour: - It doesn't intern the non-u module names (eg "foo" is not interned), which saves code size, but will mean that "import foo" creates a new qstr (namely "foo") in RAM (unless the importing module is frozen). - help('modules') no longer lists non-u module names, only the u-variants; this reduces duplication in the help listing. Weak links are effectively the same as having a set of symbolic links on the filesystem that is searched last. So an "import foo" will search built-in modules first, then all paths in sys.path, then weak links last, importing "ufoo" if it exists. Thus a file called "foo.py" somewhere in sys.path will still have precedence over the weak link of "foo" to "ufoo". See issues: #1740, #4449, #5229, #5241.
2019-10-22examples/bluetooth/ble_uart_peripheral.py: Add usage demo.Jim Mussared
2019-10-22extmod/modbluetooth_nimble: Use `data_alloc` length to truncate writes.Jim Mussared
This allows the maximum size of a characteristic/descriptor to be increased by locally writing to it first.
2019-10-22extmod/modbluetooth: Persist reference to NimBLE service instances.Jim Mussared
NimBLE doesn't actually copy this data, it requires it to stay live. Only dereference when we register a new set of services. Fixes #5226 This will allow incrementally adding services in the future, so rename `reset` to `append` to make it clearer.
2019-10-22py/objstr: Size-optimise failure path for mp_obj_str_get_buffer.Jim Mussared
These fields are never looked at if the function returns non-zero.
2019-10-22examples/bluetooth: Use UUIDs directly to add services to adv payload.Jim Mussared
2019-10-22extmod/modbluetooth: Make UUID support the buffer protocol.Jim Mussared
Internally change the representation of UUIDs to LE uint8* to simplify this. This allows UUIDs to be easily used in BLE payloads (such as advertising). Ref: #5186
2019-10-22esp8266/boards: Add manifest_release.py with files for a release.Damien George
A release also sets: UART_OS = -1
2019-10-21esp32: Add missing and necessary newline at EOF for sdkconfig.240mhz.Jim Mussared
When these files get concatenated the newline-at-EOF is necessary so that the start of the next file doesn't join with the end of the previous.
2019-10-21tests/cpydiff: Fix typo in types_bytes_keywords.py doc comments.clach04
2019-10-21unix: Allow building without a manifest.Jim Mussared
2019-10-21esp8266: Allow building without a manifest.Jim Mussared
2019-10-21py/mkrules.mk: Add warning/error for invalid frozen config.Jim Mussared