Tom Collins
162a0f942b
tests/io/bytesio_ext: Test read() after seek() past end of BytesIO object.
8 years ago
Tom Collins
53461deb04
py/objstringio: Fix StringIO reads at or beyond EOF.
Existing code failed if seek() went past EOF (which is acceptable when writing).
8 years ago
Paul Sokolovsky
d5713c8618
docs/library/index: Add important summary of the intro section as warning.
To make them harder to miss.
8 years ago
Paul Sokolovsky
0ba136fbe9
docs/machine.Signal: Add initial draft description of Signal class.
8 years ago
Paul Sokolovsky
c19f07bd52
docs/machine.Pin: There's no toggle() method in MicroPython hardware API.
May be a port-specific method, not portable, not part of the official
specification.
8 years ago
Tom Collins
f06d0839bd
py/modsys: update conditionals for code referencing sys.stdout
Working on a build with PY_IO enabled (for PY_UJSON support) but PY_SYS_STDFILES disabled (no filesystem). There are multiple references to mp_sys_stdout_obj that should only be enabled if both PY_IO and PY_SYS_STDFILES are enabled.
8 years ago
Paul Sokolovsky
55491031be
tools/mpy_cross_all.py: Helper tool to run mpy-cross on the entire project.
8 years ago
Paul Sokolovsky
0c57979ce2
zephyr/modusocket: Implement getaddrinfo().
8 years ago
Paul Sokolovsky
86c4544ef9
zephyr/modusocket: If there're no packets in recv_q, cancel waiter.
This solves a case when socker_read() has blocked on fifo, and then peer
closed event arrives.
8 years ago
Paul Sokolovsky
69f0b4ad5b
zephyr/modusocket: Switch to net_pkt_append() returning length.
Requires patch in review.
8 years ago
Paul Sokolovsky
39d3335606
zephyr/modusocket: Update for net_pkt refactor.
8 years ago
Paul Sokolovsky
c022c9a2f0
zephyr/modusocket: Wrap pkt_get_info() call.
The most important info it returns are numbers of free buffers
in different pools (rx/tx packet headers, data fragments).
8 years ago
Paul Sokolovsky
054a381d7c
tests/extmod/vfs_fat_more: Make skippable is uos is not available.
Fixes Zephyr tests.
8 years ago
Damien George
cda09727b4
tests/extmod/vfs_fat: Add test for ilistdir of a non-existent directory.
8 years ago
Damien George
f95e4e7782
extmod/vfs_fat_misc: Remove dot-dirs filter since FatFS already does it.
8 years ago
Robert HH
71df60cf42
esp8266/ets_alt_task.c: Prevent spurious large increment of ticks_ms()
This happened when the overflow counter for ticks_ms() was interrupted
by an external hard interrupt (issue #3076 ).
8 years ago
Damien George
ec534609f6
tools/mpy-tool.py: Use MP_ROM_xxx macros to support nanbox builds.
8 years ago
Paul Sokolovsky
5383a50072
zephyr/README: Update to require Zephyr 1.8.
There're a lot of changes and fixes in 1.8 regarding IP stack,
incompatible with previous Zephyr versions, so supporting them
doesn't make sense.
This is the last commit which should build with Zephyr 1.7.
8 years ago
Paul Sokolovsky
d57c6564dc
zephyr/prj_qemu_x86.conf: Bump RAM size to 320K.
8 years ago
Paul Sokolovsky
50d7ed325a
zephyr/modusocket: Add SOL_SOCKET and SO_REUSEADDR constants.
8 years ago
Paul Sokolovsky
1659c0645d
zephyr/modusocket: Add dummy setsockopt() implementation.
8 years ago
Paul Sokolovsky
a4e38db30d
unix: Move upip to frozen bytecode dir.
For x86_64 build, this saves only 128 bytes on the final executable
size, but still an improvement.
8 years ago
Paul Sokolovsky
5c312861a6
unix/Makefile: Enable frozen bytecode modules dir.
8 years ago
Paul Sokolovsky
ddf0b7dbc3
esp8266/scripts: Move initsetup & port_diag tools to modules/.
8 years ago
Paul Sokolovsky
e9308c189a
esp8266/scripts: Move drivers/modules to modules/ (frozen bytecode).
8 years ago
Paul Sokolovsky
5f7ce2a1ca
esp8266/modules/flashbdev: Reserve one sector for native code storage.
8 years ago
Paul Sokolovsky
3e05df7fd1
esp8266/modesp: flash_user_start: Use value from linker script.
Make esp8266_common.ld export size reserved to all code segments, and use
that in esp.flash_user_start() implementation.
8 years ago
Paul Sokolovsky
0987ad5e30
esp8266/esp8266.ld, esp8266_ota.ld: Grow main firmware size by 32KB.
To accommodate both system and user frozen modules.
8 years ago
Tom Collins
760aa0996f
tests/basics/lexer: Add line continuation tests for lexer.
Tests for an issue with line continuation failing in paste mode due to the
lexer only checking for \n in the "following" character position, before
next_char() has had a chance to convert \r and \r\n to \n.
8 years ago
Tom Collins
6f56412ec3
py/lexer: Process CR earlier to allow newlines checks on chr1.
Resolves an issue where lexer failed to accept CR after line continuation
character. It also simplifies the code.
8 years ago
Paul Sokolovsky
5feeba8897
examples/hwapi/hwconfig*: Use inline Signal() args where possible.
8 years ago
Damien George
1d8c3f4cff
mpy-cross/Makefile: Override undefine any inherited variables.
This is a temporary hack to allow othe Makefiles to build mpy-cross
recursively.
8 years ago
Damien George
a1f254028d
py/mkrules.mk: Add dependency of .mpy files upon mpy-cross.
This ensures that mpy-cross is automatically built (and is up-to-date) for
ports that use frozen bytecode. It also makes sure that .mpy files are
re-built if mpy-cross is changed.
8 years ago
Damien George
6d221fe284
docs/library/uos: Add description of uos.ilistdir() function.
8 years ago
Damien George
d70f688f25
extmod/vfs: Use MP_S_IFDIR, MP_S_IFREG consts instead of magic numbers.
8 years ago
Damien George
f1609bc843
ports: Add ilistdir in uos module.
8 years ago
Damien George
852c215d76
tests/extmod/vfs: Update tests to reflect new ilistdir() method.
8 years ago
Damien George
d4cd4831b0
extmod/vfs_fat: Replace listdir() with implementation of ilistdir().
VfsFat no longer has the listdir() method. Rather, if listdir()
functionality is needed then one should use uos.listdir() which will call
VfsFat.ilistdir().
8 years ago
Damien George
87283c1974
extmod/vfs: Implement mp_vfs_ilistdir().
uos.ilistdir() is the core function, returning an iterator that yields
3-tuples. uos.listdir() is implemented in terms of ilistdir().
8 years ago
Paul Sokolovsky
edc02bd952
unix/main: Implement -m option for packages.
8 years ago
Damien George
9bd67d9fbc
tests/extmod: Make some vfs tests fully unmount FSs before running.
Otherwise the existing FSs can interfere with the tests, and in some
cases the tests can write to the real FS on the device.
8 years ago
Tom Collins
d00d062af2
tests/basics/lexer: Add lexer tests for input starting with newlines.
8 years ago
Tom Collins
2998647c4e
py/lexer: Simplify lexer startup by using dummy bytes and next_char().
Now consistently uses the EOL processing ("\r" and "\r\n" convert to "\n")
and EOF processing (ensure "\n" before EOF) provided by next_char().
In particular the lexer can now correctly handle input that starts with CR.
8 years ago
Damien George
e711e2d44a
tests/basics: Add memoryview test for big ints.
8 years ago
Damien George
2e9e14980d
tests/basics: Update array test for big-int with lL typecodes.
8 years ago
Damien George
6cfa61a4cc
py/binary: Handle storing big-ints to all arrays types.
Prior to this patch only 'q' and 'Q' type arrays could store big-int
values. With this patch any big int that is stored to an array is handled
by the big-int implementation, regardless of the typecode of the array.
This allows arrays to work with all type sizes on all architectures.
8 years ago
Paul Sokolovsky
4a4490ffcc
py/modio: resource_stream: Implement "package" param handling.
8 years ago
Paul Sokolovsky
c1e0eb7afe
unix/main: Don't allow to specify too small heap size.
This will lead to crash like:
FATAL: uncaught NLR 80a5420
On x86_32, the minimum heap size is smaller, but not 2 times, so just
use value which works for x86_64.
8 years ago
Damien George
0986675451
stmhal: Convert all module and method tables to use MP_ROM macros.
8 years ago
Damien George
084824f866
tests: Move super-as-local test from cpydiff to basic tests.
It's now possible to use the name "super" as a local variable.
8 years ago