- Aug 29, 2017
-
-
Damien George authored
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.
-
Damien George authored
Using gcc -Wpedantic will warn that #define of defined() is non-portable and this patch fixes this.
-
Damien George authored
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.
-
- Aug 28, 2017
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
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).
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- Aug 24, 2017
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
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.
-
- Aug 23, 2017
-
-
Damien George authored
Without this the pass-through will pause for 1 second at each character.
-
Damien George authored
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.
-
Damien George authored
-
Damien George authored
-
Damien George authored
This macro is provided by stmhal/mphalport.h and makes sure the addr and size arguments are correctly aligned.
-
- Aug 22, 2017
-
-
Paul Sokolovsky authored
-
- Aug 21, 2017
-
-
Ein Terakawa authored
As per the "ESP8266 Technical Reference".
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
This prevents large files (eg larger than 2gb on a 32-bit arch) from showing up as having a negative size. Fixes issue #3227.
-
Damien George authored
This allows the command to succeed without error even if there is no $(BUILD)/build directory, which is the case for mpy-cross.
-
- Aug 20, 2017
-
-
Paul Sokolovsky authored
Per POSIX, this is EINVAL, so raises OSError(EINVAL).
-
Paul Sokolovsky authored
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.
-
Tom Collins authored
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).
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
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.
-
Paul Sokolovsky authored
Describe that the only portable way to deal with addresses is by using getaddrinfo(). Describe that some ports may support tuple addresses using "socket" module (vs "usocket" of native MicroPython).
-
Paul Sokolovsky authored
It's too minor a point to start the module description with it.
-
Paul Sokolovsky authored
Calls out to Zephyr's shell, submodule "net", command "iface", and shows network interface information (if CONFIG_NET_SHELL is enabled).
-
- Aug 19, 2017
-
-
Paul Sokolovsky authored
The original issue leading to crash on startup if no default network interface was presented, was resolved some time ago. Note that this enables generic networking subsystem, not networking on Carbon.
-
Paul Sokolovsky authored
Was changed to "sa_family" for POSIX compatibility.
-
- Aug 17, 2017
-
-
Alex Robbins authored
This clarifies return values and the handling of invalid (e.g. newline) characters. Encoding conforms to RFC 3548, but decoding does not, as it ignores invalid characters in base64 input. Instead, it conforms to MIME handling of base64 (RFC 2045). Note that CPython doesn't document handling of invalid characters in a2b_base64() docs: https://docs.python.org/3/library/binascii.html#binascii.a2b_base64 , so we specify it more explicitly than it, based on CPython's actual behavior (with which MicroPython now compliant).
-
Alex Robbins authored
This implementation ignores invalid characters in the input. This allows it to decode the output of b2a_base64, and also mimics the behavior of CPython.
-
Damien George authored
The value of 0 can't be used because otherwise mp_binary_get_size will let a null byte through as the type code (intepreted as byterray). This can lead to invalid type-specifier strings being let through without an error in the struct module, and even buffer overruns.
-
- Aug 16, 2017
-
-
stijn authored
This makes the -d commandline argument usable again. Pass empty string as parent name as listing starts from the root.
-
Paul Sokolovsky authored
As required for zephyr.stack_analyze().
-