Paul Sokolovsky
a45e280c58
py/stream.h: Add bigger inventory of stream ioctl's.
9 years ago
Paul Sokolovsky
f38e8f5217
extmod/modwebsocket: Record current fragment type (binary/text/etc.)
Also, handle continuation frames (untested).
9 years ago
Paul Sokolovsky
5b1c221785
extmod/modwebsocket: Add option for blocking writes to non-blk sockets.
This is strange asymmetry which is sometimes needed, e.g. for WebREPL: we
want to process only available input and no more; but for output, we want
to get rid of all of it, because there's no other place to buffer/store
it. This asymmetry is akin to CPython's asyncio asymmetry, where reads are
asynchronous, but writes are synchronous (asyncio doesn't expect them to
block, instead expects there to be (unlimited) buffering for any sync write
to completely immediately).
9 years ago
Paul Sokolovsky
397b705647
extmod/modwebsocket: Reset mask between packets.
9 years ago
Paul Sokolovsky
7e9182f3aa
extmod/modwebsocket: Make sure to propagate EOF.
9 years ago
pohmelie
b32b0d38fe
unix: freedos strip and size names for binaries
After this you need only one path for build (path/to/djgpp/bin). Original patch made by @dhylands
9 years ago
Tom Sparks
20d9bc2d76
extmod/modure: re_exec() renamed to ure_exec() due to collison in 4.3BSD.
Addresses issue #1972 .
9 years ago
Paul Sokolovsky
05ba2433f6
extmod/modwebsocket: Properly check number of args to constructor.
9 years ago
Paul Sokolovsky
5e919b7ef8
lib/axtls: Update to the latest upstream master.
9 years ago
Paul Sokolovsky
9c04299da1
docs: esp8266: Enable "machine" module docs.
The docs are still heavily biased towards WiPy, so will need a lot of
exclusions.
9 years ago
Paul Sokolovsky
5e7fa7c80c
docs/ubinascii: Document non-standard "sep" argument to hexlify().
9 years ago
Martin Fischer
8a8e775035
stmhal: Consistently enable USB SOF Irqs for all USB modes (FS and HS).
SOF irqs are now standard for rx/tx USB transfers, so enable them for both
FS and HS modes. Fixes #1944 .
9 years ago
Damien George
04d5e644fc
py/objarray: Fix array.append so it doesn't extend if append fails.
Addresses issue #1965 .
9 years ago
Damien George
2c915e1ae6
py: Implement basic with support in native emitter.
9 years ago
Damien George
ce8b4e8749
py: Combine continuous block of emit steps into with_cleanup emit call.
Because different emitters need to handle with-cleanup in different ways.
9 years ago
Damien George
2c407bcf20
esp8266: Switch from terse error messages to normal ones.
Adds 2k to the code size.
9 years ago
Paul Sokolovsky
d85439fd19
esp8266/README: Add short troubleshooting section.
9 years ago
Damien George
1a0a323ca8
esp8266: Add initial implementation of machine.UART.
Currently UART(0) and UART(1) are exposed and only uart.write works.
9 years ago
Paul Sokolovsky
4e51a3038c
cc3200/mods/modwlan: Include stream.h after recent refactor.
9 years ago
Damien George
96eca22322
esp8266: Make destination for vendor OS debug output soft-configurable.
Use esp.osdebug(None) to disable, or esp.osdebug(uart_id) to send output
to a UART.
9 years ago
Paul Sokolovsky
e6a4d4e23c
py: Move stream-related declarations from obj.h to stream.h.
9 years ago
Paul Sokolovsky
e4cb7c6158
docs/esp8266/quickref: Add note about physical vs logical pin numbers.
9 years ago
Paul Sokolovsky
2c8356c482
esp8266/modnetwork: require_if(): Report the actual interface required.
9 years ago
Paul Sokolovsky
f81ea6307c
docs/ubinascii: Document a2b_base64(), b2a_base64().
9 years ago
Paul Sokolovsky
de12502d89
esp8266: Move pyb.unique_id() to machine.unique_id().
9 years ago
Paul Sokolovsky
81fd5685fc
esp8266: Move pyb.hard_reset() to machine.reset().
9 years ago
Paul Sokolovsky
1b811b946e
unix/modsocket: Use mp_const_empty_map instead of creating empty map.
9 years ago
Paul Sokolovsky
069654f2be
py/obj.h: Add comment why mp_fun_kw_t takes non-const mp_map_t*.
mp_fun_kw_t takes mp_map_t* (and not const mp_map_t*) to ease passing
this arg to mp_map_lookup(), which may modify its arg, depending on
flags.
9 years ago
pohmelie
cee888255b
unix: djgpp errno.h have no ENOTSUP, so define it to Linux value.
9 years ago
Paul Sokolovsky
28d4b94dce
docs/machine: Change wording to be a bit more port-neutral.
9 years ago
Paul Sokolovsky
69b702276b
docs/os: Change wording to be a bit more port-neutral.
9 years ago
Paul Sokolovsky
e24674d44e
docs: esp8266: esp.socket is deprecated, remove from docs.
9 years ago
Paul Sokolovsky
69256ac0b1
esp8266: Bump heap size to 24k.
9 years ago
Paul Sokolovsky
debbaac1bd
esp8266: Update flashing instructions in README.
9 years ago
Paul Sokolovsky
919b70b7ec
esp8266: Switch back to flashing combined firmware (single file).
With gap between segments minimized, there's not much padding to flash,
so no big speed overhead.
9 years ago
Paul Sokolovsky
8d2bcaf3cd
esp8266: Minimize gap between Inst/DataRAM segments and FlashROM segment.
With .rodata being in FlashROM now, gap can be much smaller now. InstRAM
can be max 32K, and with segment headers, that already makes it more than
32K. Then there's some .data still, and the next Flash page boundary is
0x9000. That figure should be more or less future-proof.
TODO: Refactor makeimg to take FlashROM segment offset from file name.
9 years ago
Paul Sokolovsky
9698a60591
esp8266/ets_alt_task: Comment out debug output.
9 years ago
Paul Sokolovsky
fcd6862597
esp8266: Bump iROM size to 512k.
Needed for frozen scripts, and for future growth of binary.
9 years ago
Paul Sokolovsky
ef0c5db2ed
esp8266: Move .rodata where it belongs with -mforce-l32 help.
9 years ago
Paul Sokolovsky
254a5646c1
docs: Update copyright notice.
9 years ago
Paul Sokolovsky
333a63efaa
esp8266/README: Add link to docs.
9 years ago
Paul Sokolovsky
4f2d59e82f
examples/http_client_ssl.py: HTTPS client example.
9 years ago
Paul Sokolovsky
ec5f8db49d
examples/http_server.py: Bind to 0.0.0.0, to be accessible from other hosts.
This is helpful when running on deeply embedded targets, but may be
"security risk". Caveat emptor.
9 years ago
Paul Sokolovsky
c07a03a36d
examples/http_server.py: Introduce main() function.
Allows to re-run code if it was imported as a module (e.g., on bare-metal
ports).
9 years ago
Paul Sokolovsky
aa3fb7b387
examples/http_server.py: Refactor/simplify for Python 3.5.
9 years ago
Paul Sokolovsky
fd2b71f972
examples/http_client.py: Introduce main() function.
Allows to re-run code if it was imported as a module (e.g., on bare-metal
ports).
9 years ago
Paul Sokolovsky
a5d07c3aba
examples/http_client.py: Improve CPython compatibility in stream mode.
9 years ago
Paul Sokolovsky
a5d2af7949
unix/file: "encoding" arg to open() isn't kw-only.
And with "buffering" arg introduced, it's non possible to make it
non-kwonly.
9 years ago
Paul Sokolovsky
e5fa163a4c
unix/file: Parse "buffering" argument of open() builtin.
It's ignored (unbuffered, raw I/O is used), but least makes it compatible
with CPython.
9 years ago
Damien George
a0cb4eda9a
esp8266: Use VM_HOOK to call ets_loop_iter within the VM.
Starting with a divisor of 10, pystone_lowmem gives a score of 256.
9 years ago