Damien George
338f0849d9
py/mkenv.mk: Use $(TOP) instead of ".." to reference tools, mpy-cross.
8 years ago
Damien George
436d97b3f9
docs/library/machine.UART: Update and improve uart.any() docs.
8 years ago
Damien George
aca898eeb0
esp8266/machine_uart: Add uart.any() method.
Returns 0 or 1, corresponding to no or at least 1 char waiting.
8 years ago
Damien George
218a876f97
tests/basics/builtin_range: Add tests for negative slicing of range.
8 years ago
Damien George
03659c51ca
py/objrange: Fix slicing of range when step of slice is negative.
8 years ago
Damien George
e1b0f2a16f
tests/basics/list_slice_3arg: Add more tests for negative slicing.
8 years ago
Damien George
eb4c37f7a4
py/sequence: Fix boundary errors when slicing with a negative step.
8 years ago
Damien George
d007351b33
docs/library/micropython: Document the newer micropython functions.
8 years ago
Damien George
55dd83a7ba
drivers/display/lcd160cr_test: Allow test to take orientation parameter.
8 years ago
Damien George
f351c6db5e
drivers/display/lcd160cr: Fix get_line method and enhance screen_dump.
The docs are updated and describe the new behaviour of these methods.
8 years ago
Damien George
e4a53570d0
docs: Change single occurrence of "Micropython" to "MicroPython".
8 years ago
Paul Sokolovsky
0af974b777
examples/hwapi/soft_pwm2_uasyncio: Update for call_later_ms().
Following finalized naming in uasyncio.
8 years ago
Paul Sokolovsky
0912334f54
zephyr/modusocket: getaddrinfo: Use RAISE_ERRNO for proper error decoding.
8 years ago
Paul Sokolovsky
5f648ff60e
zephyr/main: Check default netif before applying operations to it.
If no network driver is enabled (e.g., it doesn't exist for a particular
board), it will be NULL.
8 years ago
Paul Sokolovsky
aa9ce283c2
zephyr/modusocket: Get rid of cur_pkt object member.
Instead, just peek a packet at the head of the queue and work with it.
8 years ago
Paul Sokolovsky
a3008e447c
zephyr/modusocket: First step to switch to alternative FIFO processing.
Here we wait for non-empty FIFO, and then directly access/drop its head
element.
8 years ago
Damien George
88c51c3592
tools/mpy-tool.py: Fix regression with freezing floats in obj repr C.
Regression was introduced by ec534609f6
8 years ago
Damien George
a004554dc1
stmhal/modmachine: Remove TODO comment that is now implemented.
8 years ago
Damien George
37bd3b4f4c
stmhal/modmachine: Add machine.UART class, linking to pyb.UART.
pyb.UART has a superset of machine.UART functionality so can be used to
provide compatibility with other ports that also implement machine.UART.
8 years ago
puuu
4b235800a4
esp8266/modnetwork: In connect, fix potential buffer overflows.
8 years ago
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