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.
2017-05-16 13:43:06 +03:00
Damien George
88c51c3592
tools/mpy-tool.py: Fix regression with freezing floats in obj repr C.
...
Regression was introduced by ec534609f6
2017-05-16 18:53:02 +10:00
Damien George
a004554dc1
stmhal/modmachine: Remove TODO comment that is now implemented.
2017-05-16 17:44:14 +10:00
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.
2017-05-16 17:40:22 +10:00
puuu
4b235800a4
esp8266/modnetwork: In connect, fix potential buffer overflows.
2017-05-16 17:30:45 +10:00
Scott Shawcroft
b1925b1bd8
atmel-samd: Fixup autoreset after switching boot to running once.
2017-05-15 20:21:26 -07:00
Scott Shawcroft
3f5028c666
atmel-samd: Support wav file playback. Tested up to 16bit 22.1khz. Must be mono file!
...
SD card support may work but likely needs buffer tuning. Its untested.
Fixes #105
2017-05-15 19:52:38 -07:00
Scott Shawcroft
292ba89ac2
tools: Make now runs uf2conv itself.
2017-05-15 15:44:43 -07:00
Scott Shawcroft
974847ac8d
atmel-samd: Add a safe mode which detects hard faults and reboots without running user code again.
2017-05-15 15:29:04 -07:00
Tom Collins
162a0f942b
tests/io/bytesio_ext: Test read() after seek() past end of BytesIO object.
2017-05-15 23:58:06 +03:00
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).
2017-05-15 23:58:04 +03:00
Paul Sokolovsky
d5713c8618
docs/library/index: Add important summary of the intro section as warning.
...
To make them harder to miss.
2017-05-15 00:26:44 +03:00
Paul Sokolovsky
0ba136fbe9
docs/machine.Signal: Add initial draft description of Signal class.
2017-05-14 23:12:06 +03:00
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.
2017-05-14 22:52:16 +03:00
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.
2017-05-14 18:24:50 +03:00
Paul Sokolovsky
55491031be
tools/mpy_cross_all.py: Helper tool to run mpy-cross on the entire project.
2017-05-14 17:51:12 +03:00
Paul Sokolovsky
0c57979ce2
zephyr/modusocket: Implement getaddrinfo().
2017-05-13 16:42:35 +03:00
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.
2017-05-13 16:22:14 +03:00
Paul Sokolovsky
69f0b4ad5b
zephyr/modusocket: Switch to net_pkt_append() returning length.
...
Requires patch in review.
2017-05-13 16:05:10 +03:00
Paul Sokolovsky
39d3335606
zephyr/modusocket: Update for net_pkt refactor.
2017-05-13 15:47:47 +03:00
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).
2017-05-13 15:23:31 +03:00
Paul Sokolovsky
054a381d7c
tests/extmod/vfs_fat_more: Make skippable is uos is not available.
...
Fixes Zephyr tests.
2017-05-13 14:13:53 +03:00
Damien George
cda09727b4
tests/extmod/vfs_fat: Add test for ilistdir of a non-existent directory.
2017-05-13 19:10:15 +10:00
Damien George
f95e4e7782
extmod/vfs_fat_misc: Remove dot-dirs filter since FatFS already does it.
2017-05-13 18:58:46 +10:00
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 ).
2017-05-13 17:56:16 +10:00
Scott Shawcroft
790c38e18c
atmel-samd: Rework boot, main and REPL order.
...
Boot will only run once now before USB is started. Its output goes to
boot_out.txt. After main and REPL will run with VM and hardware resets
between each.
2017-05-12 18:26:14 -07:00
Damien George
ec534609f6
tools/mpy-tool.py: Use MP_ROM_xxx macros to support nanbox builds.
2017-05-13 10:08:13 +10:00
Scott Shawcroft
7672bf7736
atmel-samd: Rename auto-reset to auto-reload to reduce confusion with physical reset buttons.
2017-05-12 16:45:38 -07:00
Scott Shawcroft
e0f931afd3
atmel-samd: Fix pin reset to ensure USB and SWD are not reset.
2017-05-12 16:09:13 -07:00
Scott Shawcroft
e1a6f6d584
atmel-samd: Rework SPI flash defines for clarity.
...
Also add sector protection support for the SAMD Xplained board.
2017-05-12 14:47:39 -07:00
Scott Shawcroft
7ea76e0889
atmel-samd: Pin reset improvements.
...
* Reset SWD lines to SWD rather than GPIO. This makes OpenOCD happier.
* Default speaker enable lines to False for CircuitPlayground to prevent
the speaker from buzzing when no sound is playing. Fixes #126
2017-05-12 13:14:01 -07:00
Scott Shawcroft
6984425f5d
atmel-samd: Correctly wait for the SPI DMA transaction to finish.
2017-05-12 13:13:50 -07:00
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.
2017-05-12 22:05:07 +03:00
Paul Sokolovsky
d57c6564dc
zephyr/prj_qemu_x86.conf: Bump RAM size to 320K.
2017-05-12 21:58:51 +03:00
Paul Sokolovsky
50d7ed325a
zephyr/modusocket: Add SOL_SOCKET and SO_REUSEADDR constants.
2017-05-12 21:55:42 +03:00
Paul Sokolovsky
1659c0645d
zephyr/modusocket: Add dummy setsockopt() implementation.
2017-05-12 21:54:32 +03:00
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.
2017-05-12 18:32:25 +03:00
Paul Sokolovsky
5c312861a6
unix/Makefile: Enable frozen bytecode modules dir.
2017-05-12 18:31:22 +03:00
Paul Sokolovsky
ddf0b7dbc3
esp8266/scripts: Move initsetup & port_diag tools to modules/.
2017-05-12 17:58:50 +03:00
Paul Sokolovsky
e9308c189a
esp8266/scripts: Move drivers/modules to modules/ (frozen bytecode).
2017-05-12 17:57:23 +03:00
Paul Sokolovsky
5f7ce2a1ca
esp8266/modules/flashbdev: Reserve one sector for native code storage.
2017-05-12 16:08:54 +03:00
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.
2017-05-12 16:00:05 +03:00
Paul Sokolovsky
0987ad5e30
esp8266/esp8266.ld, esp8266_ota.ld: Grow main firmware size by 32KB.
...
To accommodate both system and user frozen modules.
2017-05-12 16:00:05 +03:00
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.
2017-05-12 15:14:25 +10:00
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.
2017-05-12 15:14:24 +10:00
Paul Sokolovsky
5feeba8897
examples/hwapi/hwconfig*: Use inline Signal() args where possible.
2017-05-12 01:19:13 +03:00
Scott Shawcroft
c138d0f025
Merge pull request #128 from ntoll/master
...
Rename LEFT_BUTTON -> BUTTON_A, RIGHT_BUTTON -> BUTTON_B.
2017-05-11 10:04:05 -07:00
Nicholas H.Tollervey
f3152571c6
Rename LEFT_BUTTON -> BUTTON_A, RIGHT_BUTTON -> BUTTON_B.
2017-05-11 14:48:17 +01:00
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.
2017-05-11 23:40:16 +10:00
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.
2017-05-11 23:40:16 +10:00