Jim Mussared
f3f7eb48da
docs/library/uos.rst: Clarify why the extended interface exists.
2019-12-16 12:45:15 +11:00
Damien George
fb01415599
stm32/boards/PYBD_SF2: Configure LEDs as inverted, for LED.intensity().
2019-12-13 17:28:24 +11:00
Damien George
4b184d1281
tests/pyb: Refactor pyboard tests to work on PYBv1, PYBLITEv1 and PYBD.
2019-12-13 17:27:29 +11:00
Damien George
7280bf40d9
tests/extmod/vfs_lfs_error: Use small ints in seek error test.
...
So accessing the seek offset (at the C level) doesn't cause an
OverflowError on 32-bit targets.
2019-12-13 15:59:08 +11:00
Damien George
1098d1d630
tests/basics/memoryview_itemsize: Make portable to 32- and 64-bit archs.
2019-12-13 15:59:08 +11:00
Damien George
33b0a7e601
tests/stress/qstr_limit: Tune params to run with stm32 port.
...
Because MICROPY_ALLOC_PATH_MAX is only 128 for this port.
2019-12-13 15:58:28 +11:00
Damien George
71c6bfd08a
stm32/modusocket: Handle case of NULL NIC in socket ioctl.
2019-12-13 14:45:21 +11:00
Damien George
624f4ca39b
tests: Add .exp files for basics/parser and import/import_override.
...
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 14:20:47 +11:00
Damien George
4da763fc49
travis: Build urandom native module in coverage job.
2019-12-13 13:33:45 +11:00
Damien George
ba84453f77
examples/natmod: Add urandom native module example.
2019-12-13 13:33:40 +11:00
Damien George
48e9262f55
py/dynruntime: Implement uint new/get, mp_obj_len and mp_obj_subscr.
2019-12-13 13:29:11 +11:00
Damien George
c2eaf56634
stm32/Makefile: Enable max buffer size on W5200 NIC when used with lwIP.
...
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 12:36:12 +11:00
Damien George
cd9de63c0e
drivers/wiznet5k: Allow selecting maximum fixed buffer size for MACRAW.
...
Enabling WIZCHIP_USE_MAX_BUFFER will make the TX/RX buffers the maximum
available size, for use with MACRAW mode.
2019-12-13 12:34:42 +11:00
Damien George
ac769672fd
travis: Add tests for building and importing dynamic native modules.
2019-12-12 20:15:28 +11:00
Damien George
60c3c22a0d
examples/natmod: Add features1 and features2 examples.
2019-12-12 20:15:28 +11:00
Damien George
4eef940edb
tests: Add script to run dynamic-native-module tests.
2019-12-12 20:15:28 +11:00
Damien George
fc97d6d1b5
tools/mpy-tool.py: Raise exception if trying to freeze relocatable mpy.
2019-12-12 20:15:28 +11:00
Damien George
111d1ffb64
tests/import: Add test for importing viper code with additional flags.
2019-12-12 20:15:28 +11:00
Damien George
abc642973d
py/dynruntime: Add support for float API to make/get floats.
...
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 20:15:28 +11:00
Damien George
ff58961944
py/nativeglue: Add float new/get functions with both single and double.
2019-12-12 20:15:28 +11:00
Damien George
9ac949cdbd
py/persistentcode: Make ARM Thumb archs support multiple sub-archs.
2019-12-12 20:15:28 +11:00
Damien George
42c1aed2bb
examples/natmod: Add ure example.
2019-12-12 20:15:28 +11:00
Damien George
2a485e1084
examples/natmod: Add framebuf example.
2019-12-12 20:15:28 +11:00
Damien George
16e591e412
examples/natmod: Add uzlib example.
2019-12-12 20:15:28 +11:00
Damien George
83f9fb169e
examples/natmod: Add uheapq example.
2019-12-12 20:15:28 +11:00