Damien George
709136e844
tests/basics: Use str.format instead of % for formatting messages.
...
Only use % formatting when testing % itself, because only str.format is
guaranteed to be available on any port.
2019-10-29 22:22:37 +11:00
Damien George
4847460232
unix/mphalport.h: Define mp_hal_stdio_poll to dummy because it's unused.
...
And requires uintptr_t to declare the default version in py/mphal.h.
2019-10-29 22:22:37 +11:00
Damien George
7a24b7f091
docs/library: Add documentation for extended block device protocol.
2019-10-29 14:17:29 +11:00
Damien George
4cf054a130
extmod/vfs: Add MP_BLOCKDEV_IOCTL_BLOCK_ERASE constant.
2019-10-29 14:17:29 +11:00
Damien George
cfe1c5abf8
extmod/vfs: Rename BP_IOCTL_xxx constants to MP_BLOCKDEV_IOCTL_xxx.
...
Also rename SEC_COUNT to BLOCK_COUNT and SEC_SIZE to BLOCK_SIZE.
2019-10-29 14:17:29 +11:00
Damien George
7c8fb27f38
tests/extmod: Add test for blockdev with standard and extended protocol.
2019-10-29 14:17:29 +11:00
Damien George
73fddb84e5
tests/extmod: Add littlefs tests.
2019-10-29 14:17:29 +11:00
Damien George
62d5659cdd
unix: Enable uos.VfsLfs1, uos.VfsLfs2 on coverage build.
2019-10-29 14:17:29 +11:00
Damien George
a099505420
extmod: Add VFS littlefs bindings.
...
Both LFS1 and LFS2 are supported at the same time.
2019-10-29 14:17:29 +11:00
Damien George
98beea9ced
extmod/vfs_blockdev: Add extended read/write methods.
...
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-29 12:55:34 +11:00
Damien George
22bfc47977
lib/littlefs: Add README describing origin and how to gen lfs1/lfs2.
2019-10-29 12:55:34 +11:00
Damien George
2e66d83ca4
lib/littlefs: Add littlefs v2.1.3 source.
2019-10-29 12:55:34 +11:00
Damien George
669d1d20ab
lib/littlefs: Add littlefs v1.7.2 source.
2019-10-29 12:55:34 +11:00
Damien George
e1c7b1cb43
extmod/vfs_blockdev: Factor out block device interface code.
2019-10-29 12:55:17 +11:00
Damien George
9aabb6c01b
extmod: Factor out block-device struct to make independent of fatfs.
2019-10-29 12:12:37 +11:00
Jim Mussared
ece4e21a55
stm32/Makefile: Only enable hardware sqrt on parts that support it.
...
Not enough to detect f7/h7, need to use the specific parts.
Follow-up to 580a2656d1 .
2019-10-28 15:08:28 +11:00
Mike Wadsten
f69ef97f24
docs: Move ubluetooth under "MicroPython-specific libraries".
...
CPython does not have a bluetooth module,
so it is not appropriate to call ubluetooth
a Python standard library or micro-library.
2019-10-23 11:43:01 -05:00
Mike Teachman
f301170c7c
esp32/machine_hw_spi: Fix exception msg when host is already in use.
...
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-23 13:31:13 +11:00
Michael Neuling
079cc940a6
powerpc: Add initial port to bare metal PowerPC arch.
...
Runs in microwatt (GHDL and FPGA) and qemu.
Port done initially by Michael Neuling, with help from Anton Blanchard and
Jordan Niethe.
2019-10-22 22:45:33 +11:00
Andrew Leech
19ca025b45
stm32/sdram: Fix to use new mpu_config_start/mpu_config_end signature.
2019-10-22 22:02:06 +11:00
Jim Mussared
19e87742c4
docs/library/bluetooth: Rename to "ubluetooth".
2019-10-22 21:58:05 +11:00
Jim Mussared
b02d7e612d
extmod/modbluetooth: Rename module to "ubluetooth".
...
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-22 21:58:05 +11:00
Damien George
30e25174bb
tests: Rename "array" module to "uarray".
2019-10-22 19:16:54 +11:00
Damien George
a2eea57b1d
docs/library: Rename "array" module to "uarray".
2019-10-22 16:40:58 +11:00
Damien George
21a60935a5
py/modarray: Rename "array" module to "uarray".
...
Following the other modules like ustruct, ucollections.
See issues #4370 and #4449 .
2019-10-22 16:35:46 +11:00