Jim Mussared
ca3d4c84e4
docs/library/ubluetooth: Add docs for gatts_set_buffer.
2019-10-29 23:11:11 +11:00
Jim Mussared
d16a27da51
extmod/modbluetooth: Add gatts_set_buffer.
...
- Adds an explicit way to set the size of a value's internal buffer,
replacing `ble.gatts_write(handle, bytes(size))` (although that
still works).
- Add an "append" mode for values, which means that remote writes
will append to the buffer.
2019-10-29 23:09:02 +11:00
Kamil Klimek
53f3cbc2c4
zephyr/main: Use mp_stack API instead of local pointer for stack top.
...
The MP_STATE_THREAD(stack_top) is always available so use it instead of
creating a separate variable. This also allows gc_collect() to be used as
an independent function, without real_main() being called.
2019-10-29 23:05:07 +11:00
Damien George
a8138b75b1
examples/embedding: Replace symlink of mpconfigport.h with real file.
2019-10-29 22:53:34 +11:00
Damien George
162016ad9c
travis: Add job to build and test unix minimal port.
...
To test that unix minimal port builds, and that test-suite can run with
minimal features enabled.
2019-10-29 22:23:00 +11:00
Damien George
943dd33b5f
tests/basics: Split sys.exit test to separate file so it can be skipped.
2019-10-29 22:22:37 +11:00
Damien George
1d51115246
tests: Add feature check for uio module and skip corresponding tests.
2019-10-29 22:22:37 +11:00
Damien George
eebffb2b5b
tests/basics: Automatically skip tests that use str/bytes modulo-format.
2019-10-29 22:22:37 +11:00
Damien George
52299ed3f0
tests/run-tests: Add misc list of tests that use slice, to skip them.
2019-10-29 22:22:37 +11:00
Damien George
b5186c9271
tests/basics: Split out specific slice tests to separate files.
...
So they can be automatically skipped if slice is not enabled.
2019-10-29 22:22:37 +11:00
Damien George
ecb77e40e0
tests: Add feature check for slice and skip corresponding tests.
2019-10-29 22:22:37 +11:00
Damien George
9162a87d4d
tests/basics: Use bytes not bytearray when checking user buffer proto.
...
Using bytes will test the same path for the buffer protocol in
py/objtype.c.
2019-10-29 22:22:37 +11:00
Damien George
aeea204e98
tests/basics: Split out specific bytearray tests to separate files.
...
So they can be automatically skipped if bytearray is not enabled.
2019-10-29 22:22:37 +11:00
Damien George
6e9ba1cf4b
tests: Add feature check for bytearray and skip corresponding tests.
2019-10-29 22:22:37 +11:00
Damien George
7a49fc387c
tests/basics/builtin_dir.py: Look for "version" in dir(sys).
...
Because "version" will always be there, but "exit" may not.
2019-10-29 22:22:37 +11:00
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