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
Paul Sokolovsky
e3383e9352
py/stream: seek: Consistently handle negative offset for SEEK_SET.
...
Per POSIX, this is EINVAL, so raises OSError(EINVAL).
2017-08-20 22:02:41 +03:00
Paul Sokolovsky
0cd9ab7755
py/objstringio: Fix regression with handling SEEK_SET.
...
For SEEK_SET, offset should be treated as unsigned, to allow full-width
stream sizes (e.g. 32-bit instead of 31-bit). This is now fully documented
in stream.h. Also, seek symbolic constants are added.
2017-08-20 22:02:41 +03:00
Tom Collins
168350cd98
py/objstringio: Prevent offset wraparound for io.BytesIO objects.
...
Too big positive, or too big negative offset values could lead to overflow
and address space wraparound and thus access to unrelated areas of memory
(a security issue).
2017-08-20 22:00:05 +03:00
Paul Sokolovsky
387a8d26f9
docs/glossary: Fix typos in micropython-lib paragraph.
2017-08-20 10:44:02 +03:00
Paul Sokolovsky
46583e9057
docs/glossary: Elaborate on possible MicroPython port differences.
...
State that this doc describes generic, "core" MicroPython functionality,
any particular port may diverge in both directions, by both omitting
some functionality, and adding more, both cases described outside the
generic documentation.
2017-08-20 10:11:44 +03:00