Damien George
58321dd985
all: Convert mp_uint_t to mp_unary_op_t/mp_binary_op_t where appropriate
...
The unary-op/binary-op enums are already defined, and there are no
arithmetic tricks used with these types, so it makes sense to use the
correct enum type for arguments that take these values. It also reduces
code size quite a bit for nan-boxing builds.
2017-08-29 13:16:30 +10:00
Damien George
be8e5744e6
py/nlrx86,x64: Replace #define of defined() with portable macro usage.
...
Using gcc -Wpedantic will warn that #define of defined() is non-portable
and this patch fixes this.
2017-08-29 12:52:18 +10:00
Damien George
613510bce8
drivers/memory/spiflash: Change from hard-coded soft SPI to generic SPI.
...
The SPI flash driver now supports using an arbitrary SPI object to
communicate with the flash chip, and in particular can use a hardware SPI
peripheral.
2017-08-29 11:37:18 +10:00
Paul Sokolovsky
d5336ba136
docs/machine.Signal: Improve style/grammar and add usage example.
2017-08-29 00:08:40 +03:00
Paul Sokolovsky
37379a2974
py/objstr: startswith, endswith: Check arg to be a string.
...
Otherwise, it will silently get incorrect result on other values types,
including CPython tuple form like "foo.png".endswith(("png", "jpg"))
(which MicroPython doesn't support for unbloatedness).
2017-08-29 00:06:21 +03:00
Paul Sokolovsky
c5c095690f
docs/library/network: Fix ref to "socket" module (should be "usocket").
2017-08-28 14:00:16 +03:00
Paul Sokolovsky
358a7ba014
docs: More xrefs to "MicroPython port" in glossary.
2017-08-28 13:51:05 +03:00
Damien George
7e6881cf7d
stmhal/boards/pllvalues.py: Make script work with both Python 2 and 3.
2017-08-24 22:43:36 +10:00
Damien George
3e1412a1fb
stmhal/Makefile: Use GEN_PINS_HDR var instead of writing it explicitly.
2017-08-24 13:09:35 +10:00
Damien George
a8052d343c
stmhal/modmachine: For F7 MCU, save power by reducing internal volt reg.
2017-08-24 12:20:26 +10:00
Damien George
41b4686dd7
stmhal: Compute PLL freq table during build instead of at run time.
...
Allows for simpler, smaller and faster code at run time when selecting the
boards frequency, and allows more customisation opportunities for the PLL
values depending on the target MCU.
2017-08-24 11:38:39 +10:00
Damien George
b84268d49c
docs/pyboard/tutorial: Add "timeout=0" to UART in pass-through example.
...
Without this the pass-through will pause for 1 second at each character.
2017-08-23 17:01:43 +10:00
Damien George
fc483706d3
stmhal/modmachine: Improve support for sleep/deepsleep on F7 MCUs.
...
Changes for F7 are:
- machine.reset_cause() now reports DEEPSLEEP_RESET correctly;
- machine.sleep() is further optimised to reduce power consumption;
- machine.deepsleep() is now implemented and working.
2017-08-23 17:00:02 +10:00
Damien George
49316b864b
stmhal/modmachine: Make machine.bootloader() work when MPU is enabled.
2017-08-23 16:58:48 +10:00
Damien George
1f78e7a431
docs: Bump version to 1.9.2.
2017-08-23 11:46:35 +10:00
Damien George
f9ecaa132f
py/asmthumb: Use existing macro to properly clear the D-cache.
...
This macro is provided by stmhal/mphalport.h and makes sure the addr and
size arguments are correctly aligned.
2017-08-23 11:32:27 +10:00
Paul Sokolovsky
64a3c52f66
docs: Consistently link to micropython-lib in glossary.
2017-08-22 09:33:31 +03:00
Ein Terakawa
ab2c64cc76
esp8266: Fix UART stop bit constants.
...
As per the "ESP8266 Technical Reference".
2017-08-21 22:50:07 +10:00
Damien George
1c6b442d32
extmod/modubinascii: Don't post-increment variable that won't be used.
2017-08-21 22:05:39 +10:00
Damien George
f5309fc4ff
py/formatfloat: Don't post-increment variable that won't be used again.
2017-08-21 22:04:23 +10:00
Damien George
103ae43f95
py/objcomplex: Remove unnecessary assignment of variable.
2017-08-21 22:03:27 +10:00
Damien George
ad6aae13a4
py/compile: Remove unused pn_colon code when compiling func params.
2017-08-21 22:00:34 +10:00
Damien George
4ec803a42a
all: Make static dicts use mp_rom_map_elem_t type and MP_ROM_xxx macros.
2017-08-21 21:34:23 +10:00
Damien George
4c736ea8fc
extmod,unix: For uos.stat interpret st_size member as an unsigned int.
...
This prevents large files (eg larger than 2gb on a 32-bit arch) from
showing up as having a negative size. Fixes issue #3227 .
2017-08-21 20:47:22 +10:00
Damien George
b16a755a0b
py/mkrules.mk: Use "find -path" when searching for frozen obj files.
...
This allows the command to succeed without error even if there is no
$(BUILD)/build directory, which is the case for mpy-cross.
2017-08-21 20:32:30 +10:00