Paul Sokolovsky
f00ecdb54d
extmod/moduos_dupterm: Renamed to uos_dupterm.
...
As part of file naming clean up (moduos_dupterm doesn't implement a
full module, so should skip "mod" prefix, similar to other files in
extmod/).
2016-10-26 02:08:37 +03:00
Paul Sokolovsky
67c91df7e8
docs/machine.SPI.rst: Fix typos and formatting, clarify.
...
Clarify the class implements master side of the protocol, also put adhoc
WiPy paramter after the generic, described in the current Hardware API
version.
2016-10-25 17:03:35 +03:00
Paul Sokolovsky
760ed4629f
unix/Makefile: Remove references to deprecated pip-micropython.
2016-10-25 13:11:08 +03:00
Paul Sokolovsky
d5cf8c5753
.travis.yml: minimal: Use CROSS=1, for binary size check.
...
x86 has bloated alignements, etc. Use ARM binary to catch any code size
increases promptly.
2016-10-25 11:43:56 +03:00
Paul Sokolovsky
ca008bfd2d
.travis.yml: Integrate tools/check_code_size.sh.
2016-10-25 11:43:55 +03:00
Paul Sokolovsky
f7aa692093
tools/check_code_size.sh: Code size validation script for CI.
2016-10-25 11:43:55 +03:00
Radomir Dopieralski
984a867341
esp8266/scripts: Make neopixel/apa102 handle 4bpp LEDs with common code.
...
The NeoPixel class now handles 4 bytes-per-pixel LEDs (extra byte is
intensity) and arbitrary byte ordering. APA102 class is now derived from
NeoPixel to reduce code size and support fill() operation.
2016-10-25 14:21:07 +11:00
Damien George
f1b2b1b600
docs/library/builtins: Add docs for delattr and slice.
2016-10-25 11:02:47 +11:00
Paul Sokolovsky
2550d7dfd2
esp8266: Add support for building firmware version for 512K modules.
...
To build, "make 512k".
Disabled are FatFs support (no space for filesystem), Python functionality
related to files, btree module, and recently enabled features. With all
this, there's only one free FlashROM page.
2016-10-25 00:43:11 +03:00
Paul Sokolovsky
b78144c64d
tools/pip-micropython: Remove deprecated wrapper tool.
...
Deprecated for long time, pip-micropython now can't install packages
optimized for low-heap ports (like whole of micropython-lib).
2016-10-24 16:52:15 +03:00
Paul Sokolovsky
e6af94d13b
esp8266/modesp: Add flash_user_start() function.
...
As we're looking towards adding OTA support, calculation of a FlashROM
area which can be used for filesystem (etc.) may become complex, so
introduce C function for that. So far it just hardcodes current value,
0x90000. In the future the function may be extended (and renamed) to
return the size of area too.
2016-10-24 16:52:15 +03:00
Damien George
266e4acdc2
docs/library/machine.SPI: Remove spurious "of".
2016-10-24 14:41:21 +11:00
Damien George
25c6fc731b
tests/basics: Add test for builtin "delattr".
2016-10-24 13:50:39 +11:00
Damien George
5076e5c339
py: Add "delattr" builtin, conditional on MICROPY_CPYTHON_COMPAT.
2016-10-24 13:50:03 +11:00
Damien George
bc5b896f24
tests/basics/builtin_slice: Add test for "slice" builtin name.
2016-10-24 13:35:39 +11:00
Damien George
bdb0d2d0bc
py/modbuiltins: Add builtin "slice", pointing to existing slice type.
2016-10-24 13:35:39 +11:00
Damien George
5694201930
extmod/vfs_fat_file: Make file.close() a no-op if file already closed.
...
As per CPython semantics. In particular, file.__del__() should not raise
an exception if the file is already closed.
2016-10-24 12:59:20 +11:00
Alex March
06e7032906
qemu-arm: Exclude extmod/vfs_fat_fileio.py test.
2016-10-24 12:49:19 +11:00
Alex March
cb20d999bc
tests/extmod/vfs_fat: Improve VFS test coverage.
...
Covered case:
- Stat cases
- Invalid read/write/flush/close
- Invalid mkdir/rmdir/remove/getcwd
- File seek/tell, modes a/x/+, t/b
- Writing to a full disk
- Full path rename, slash trim
- Rename cases
- Bytestring listdir
- File object printing
2016-10-24 12:49:19 +11:00
Paul Sokolovsky
b6c22c42ab
esp8266/etshal.h: Add few more ESP8266 vendor lib prototypes.
2016-10-23 16:43:07 +03:00
Paul Sokolovsky
a4dbb4230a
minimal/Makefile: Split rule for firmware.bin generation.
2016-10-22 22:01:44 +03:00
Paul Sokolovsky
197a5724d8
tools: Upgrade upip to 1.1.4.
...
Fix error on unix when installing to non-existing absolute path.
2016-10-22 21:14:58 +03:00
Daniel Thompson
479b961d39
zephyr: Implement utime module.
...
This provides time and sleep together with the usual ticks_us/_ms/_diff
and sleep_us/ms family.
We also provide access to Zephyr's high precision timer as ticks_cpu().
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org >
2016-10-22 20:15:26 +03:00
Paul Sokolovsky
1b76614d41
esp8266/Makefile: deploy: Remove deprecated line.
2016-10-22 18:56:43 +03:00
Fabricio Biazzotto
979e9a45d8
ACKNOWLEDGEMENTS: Change backer 905 info, replace city with name.
2016-10-22 14:45:35 +11:00