Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-12-13 | stm32/boards/PYBD_SF2: Configure LEDs as inverted, for LED.intensity(). | Damien George | |
2019-12-13 | tests/pyb: Refactor pyboard tests to work on PYBv1, PYBLITEv1 and PYBD. | Damien George | |
2019-12-13 | tests/extmod/vfs_lfs_error: Use small ints in seek error test. | Damien George | |
So accessing the seek offset (at the C level) doesn't cause an OverflowError on 32-bit targets. | |||
2019-12-13 | tests/basics/memoryview_itemsize: Make portable to 32- and 64-bit archs. | Damien George | |
2019-12-13 | tests/stress/qstr_limit: Tune params to run with stm32 port. | Damien George | |
Because MICROPY_ALLOC_PATH_MAX is only 128 for this port. | |||
2019-12-13 | stm32/modusocket: Handle case of NULL NIC in socket ioctl. | Damien George | |
2019-12-13 | tests: Add .exp files for basics/parser and import/import_override. | Damien George | |
Because CPython 3.8.0 now produces different output: - basics/parser.py: CPython does not allow '\\\n' as input. - import/import_override: CPython imports _io. | |||
2019-12-13 | travis: Build urandom native module in coverage job. | Damien George | |
2019-12-13 | examples/natmod: Add urandom native module example. | Damien George | |
2019-12-13 | py/dynruntime: Implement uint new/get, mp_obj_len and mp_obj_subscr. | Damien George | |
2019-12-13 | stm32/Makefile: Enable max buffer size on W5200 NIC when used with lwIP. | Damien George | |
Because in network_wiznet5k the TX/RX buffers are set to 16k each when in MACRAW mode, which is used with lwIP. | |||
2019-12-13 | drivers/wiznet5k: Allow selecting maximum fixed buffer size for MACRAW. | Damien George | |
Enabling WIZCHIP_USE_MAX_BUFFER will make the TX/RX buffers the maximum available size, for use with MACRAW mode. | |||
2019-12-12 | travis: Add tests for building and importing dynamic native modules. | Damien George | |
2019-12-12 | examples/natmod: Add features1 and features2 examples. | Damien George | |
2019-12-12 | tests: Add script to run dynamic-native-module tests. | Damien George | |
2019-12-12 | tools/mpy-tool.py: Raise exception if trying to freeze relocatable mpy. | Damien George | |
2019-12-12 | tests/import: Add test for importing viper code with additional flags. | Damien George | |
2019-12-12 | py/dynruntime: Add support for float API to make/get floats. | Damien George | |
We don't want to add a feature flag to .mpy files that indicate float support because it will get complex and difficult to use. Instead the .mpy is built using whatever precision it chooses (float or double) and the native glue API will convert between this choice and what the host runtime actually uses. | |||
2019-12-12 | py/nativeglue: Add float new/get functions with both single and double. | Damien George | |
2019-12-12 | py/persistentcode: Make ARM Thumb archs support multiple sub-archs. | Damien George | |
2019-12-12 | examples/natmod: Add ure example. | Damien George | |
2019-12-12 | examples/natmod: Add framebuf example. | Damien George | |
2019-12-12 | examples/natmod: Add uzlib example. | Damien George | |
2019-12-12 | examples/natmod: Add uheapq example. | Damien George | |
2019-12-12 | examples/natmod: Add btree example. | Damien George | |
2019-12-12 | extmod: Add dynamic-runtime guards to btree/framebuf/uheapq/ure/uzlib. | Damien George | |
So they can be built as dynamic native modules, as well as existing static native modules. | |||
2019-12-12 | extmod/modbtree: Use mp_printf instead of printf. | Damien George | |
2019-12-12 | tools/mpy_ld.py: Add new mpy_ld.py tool and associated build files. | Damien George | |
This commit adds a new tool called mpy_ld.py which is essentially a linker that builds .mpy files directly from .o files. A new header file (dynruntime.h) and makefile fragment (dynruntime.mk) are also included which allow building .mpy files from C source code. Such .mpy files can then be dynamically imported as though they were a normal Python module, even though they are implemented in C. Converting .o files directly (rather than pre-linked .elf files) allows the resulting .mpy to be more efficient because it has more control over the relocations; for example it can skip PLT indirection. Doing it this way also allows supporting more architectures, such as Xtensa which has specific needs for position-independent code and the GOT. The tool supports targets of x86, x86-64, ARM Thumb and Xtensa (windowed and non-windowed). BSS, text and rodata sections are supported, with relocations to all internal sections and symbols, as well as relocations to some external symbols (defined by dynruntime.h), and linking of qstrs. | |||
2019-12-12 | tools/mpy-tool.py: Add ability to merge multiple .mpy files into one. | Damien George | |
Usage: mpy-tool.py -o merged.mpy --merge mod1.mpy mod2.mpy The constituent .mpy files are executed sequentially when the merged file is imported, and they all use the same global namespace. | |||
2019-12-12 | py/nativeglue: Add funcs/types to native glue table for dynamic runtime. | Damien George | |
These allow discovery of symbols by native code that is loaded dynamically. | |||
2019-12-12 | py/nativeglue: Add new header file with native function table typedef. | Damien George | |
2019-12-12 | py/persistentcode: Add ability to relocate loaded native code. | Damien George | |
Implements text, rodata and bss generalised relocations, as well as generic qstr-object linking. This allows importing dynamic native modules on all supported architectures in a unified way. | |||
2019-12-10 | docs/library/uos: Add notes and links about littlefs failures. | Damien George | |
2019-12-10 | docs/library/ubluetooth: Add note about API being under development. | Damien George | |
2019-12-09 | stm32/main: Fix SKIPSD file detection so SD card is mounted by default. | Jim Mussared | |
The condition for skipping was accidentally inverted in 7723dac3371ccf081c2490b33b69492dc42818bd Fixes issue #5400. | |||
2019-12-09 | py/objenumerate: Check for valid args in enumerate constructor. | Emil Renner Berthing | |
For the case where MICROPY_CPYTHON_COMPAT is disabled. This fix makes basics/fun_error2.py pass and not crash the interpreter. | |||
2019-12-09 | mpy-cross/README.md: Add notes about -march and -O. | Jim Mussared | |
2019-12-09 | docs/reference/filesystem: Add note and example about using filesystem. | Damien George | |
2019-12-09 | docs/reference/filesystem: Fix typo in block device code example. | Daniel Mizyrycki | |
2019-12-09 | nrf/boards/particle_xenon: Enable USB CDC on Particle Xenon board. | Daniel Mizyrycki | |
2019-12-09 | stm32/boards/xxx_WB55: Enable littlefs2 on WB55 boards. | Damiano Mazzella | |
2019-12-05 | nrf/main: Execute boot.py/main.py frozen modules without a file system. | Andrej Krejcir | |
When the file system is not enabled, the boot.py and main.py modules will still be executed, if they are frozen. | |||
2019-12-05 | stm32/uart: Add support for UART4/5 on L0 MCUs. | Chris Mason | |
2019-12-05 | esp32/boards: Enable ULP in base sdk configuration. | Andrew Leech | |
Fixes issue #5159. | |||
2019-12-05 | extmod/modbluetooth: Allow setting ringbuf size via BLE.config(rxbuf=). | Damien George | |
The size of the event ringbuf was previously fixed to compile-time config value, but it's necessary to sometimes increase this for applications that have large characteristic buffers to read, or many events at once. With this commit the size can be set via BLE.config(rxbuf=512), for example. This also resizes the internal event data buffer which sets the maximum size of incoming data passed to the event handler. | |||
2019-12-04 | extmod/modbluetooth: Add optional 4th arg to gattc_write for write mode. | Damien George | |
This allows the user to explicitly select the behaviour of the write to the remote peripheral. This is needed for peripherals that have characteristics with WRITE_NO_RESPONSE set (instead of normal WRITE). The function's signature is now: BLE.gattc_write(conn_handle, value_handle, data, mode=0) mode=0 means write without response, while mode=1 means write with response. The latter was the original behaviour so this commit is a change in behaviour of this method, and one should specify 1 as the 4th argument to get back the old behaviour. In the future there could be more modes supported, such as long writes. | |||
2019-12-04 | docs: Add littlefs docs and a filesystem tutorial. | Jim Mussared | |
2019-12-04 | docs/library: Add docs for pyb.Flash class. | Jim Mussared | |
2019-12-04 | docs/reference: Add docs describing use of pyboard.py. | Jim Mussared | |
2019-12-04 | docs: Remove spaces on lines that are empty. | Damien George | |