| Age | Commit message (Collapse) | Author |
|
|
|
Also, other small cleanups/improvements.
|
|
Now address comes first, and args related to struct type are groupped next.
Besides clear groupping, should help catch errors eagerly (e.g. forgetting
to pass address will error out).
Also, improve args number checking/reporting overall.
|
|
This requires some special handling, which was previosuly applied only to
the main code path.
|
|
|
|
|
|
|
|
Using Damien's approach where conf.py and topindex.html are
shared by all ports.
|
|
See issue #1306.
|
|
After enabling line editing support on Windows console, this is no longer
trivial.
|
|
|
|
|
|
This allows to do "ar[i]" and "ar[i] = val" in viper when ar is a Python
object and i and/or val are native viper types (eg ints).
Patch also includes tests for this feature.
|
|
|
|
|
|
Addresses issue #1268.
|
|
|
|
Eg, builtin map can map over a map, etc, and call iternext deeply.
Addresses issue #1294.
|
|
|
|
|
|
|
|
|
|
With network.server_timeout(secs) the timeout can be changed.
The default value is 300 secs. Minimmum accpeted is 5 secs.
Without params the function returns the current configured timeout.
|
|
|
|
Turns out this is supposed to be called only for UDP connections.
Patch by Josef Gajdusek.
|
|
|
|
|
|
"Structure class" is its descriptor, encoded as a dictionary. Then,
uctypes.struct() instantiates an actual object, and thus requires memory
address.
|
|
So unix version, which now includes upip as a frozen module, can be built
without Internet connection.
|
|
MicroPython doesn't come with standard library included, so it is important
to be able to easily install needed package in a seamless manner. Bundling
package manager (upip) inside an executable solves this issue.
upip is bundled only with standard executable, not "minimal" or "fast"
builds.
|
|
Pasting more or less sizable text into ESP8266 REPL leads to random chars
missing in the received input. Apparent cause is that using RTOS messages
to pass individual chars one by one is to slow and leads to UART FIFO
overflow. So, instead of passing chars one by one, use RTOS msg to signal
that input data is available in FIFO, and then let task handler to read
data directly from FIFO.
With this change, lost chars problem is gone, but the pasted text is
truncated after some position. At least 500 chars can be pasted reliably
(at 115200 baud), but 1K never pastes completely.
|
|
I tested this on my CERB40 board and it seems to be working fine.
|
|
|
|
This patch converts Q(abc) to "Q(abc)" to protect the abc from the
C preprocessor, then converts back after the preprocessor is finished.
So now we can safely put includes in mpconfig(port).h, and also
preprocess qstrdefsport.h (latter is now done also in this patch).
Addresses issue #1252.
|
|
"raise" is a common word that was found to exist in a vendor's stdlib.
|
|
This patch was needed for gcc 4.4.
|
|
These scripts should run under as wide a range of Python versions as
possible.
|
|
1. Updated linker script, now user app appears to contain exception vector
table and oesn't work (faults) without it.
2. Commened out support for GPIO pulldown, which was removed in this SDK
version without clear explanation, but apparently because it was released
without proper validation, and now turns out it doesn't work as expected,
or there's a different function there.
|
|
I document as much as I could guess from experiments and reading the
code for the ``esp`` module for the ESP8266 port of Micropython.
For now the tag has to be set manually with -t option when building,
when we have properly split documentation, there will be a separate
config file for esp8266 with that the tag "port_esp8266" set.
To build use:
make SPHINXOPTS="-t port_esp8266" html
|
|
Default implementation uses VT100-style sequences which are not implemented
by all terminals out there
|
|
xterm and others use the ESC[~3 sequence when pressing the delete key
|
|
This assures the terminal prints it's prompt on a fresh line instead of
appending it to the uPy prompt after exit.
|
|
After switching to builtin readline support, "minimal" no longer builds, and
minimal doesn't really need readline support.
|
|
Using MICROPY_PY_SYS_PATH_DEFAULT macro define. A usecase is building a
distribution package, which should not have user home path by default in
sys.path. In such case, MICROPY_PY_SYS_PATH_DEFAULT can be defined on
make command-line (using CFLAGS_EXTRA).
|
|
|
|
Currently, frozen packages are not supported, but eventually they should be,
so make sure to store complete directory hierarchy.
|
|
|
|
|
|
|
|
|