Vincenzo Frascino
a3519332b6
zephyr: Use board/SoC values for startup banner based on Zephyr config.
...
This patch modifies the HW macro definition in order to let micropython
report correctly the BOARD and the SOC on which it is working on.
2016-10-26 19:00:16 +03:00
Paul Sokolovsky
3cdccb9b14
zephyr: Fix mp_hal_set_interrupt_char() declaration to be compatible.
...
With other ports. Other ports declare it in mphalport.h, it can be
inline or macro.
2016-10-26 17:53:28 +03:00
Paul Sokolovsky
6832cbd69d
lib/utils/pyexec: Fix compilation warning of type vs format mismatch.
...
This happens with some compilers on some architectures, which don't define
size_t as unsigned int. MicroPython's printf() dooesn't support obscure
format specifiers for size_t, so the obvious choice is to explicitly cast
to unsigned, to match %u used in printf().
2016-10-26 13:45:03 +03:00
Vincenzo Frascino
c38ea32810
lib/utils/pyexec: Add mp_hal_set_interrupt_char() prototype.
...
This patch removes a compilation warning in pyexec.
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org >
2016-10-26 13:42:27 +03:00
Paul Sokolovsky
73b72799f3
examples/http_server_simplistic: Add "not suitable for real use" note.
2016-10-26 12:25:33 +03:00
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