aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-06-06upip: Upgrade to 0.5.3 to follow uctypes.struct() signature change.Paul Sokolovsky
2015-06-06docs/uctype: Update for constructor argument order changes.Paul Sokolovsky
Also, other small cleanups/improvements.
2015-06-06moductypes: Swap address and descriptor args in constructor.Paul Sokolovsky
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.
2015-06-06unix: Make micropython -m <module> work for frozen modules.Paul Sokolovsky
This requires some special handling, which was previosuly applied only to the main code path.
2015-06-05py: Expose KeyboardInterrupt in builtins module.Damien George
2015-06-04docs: Change "Micro Python" to "MicroPython" in all places in docs.Damien George
2015-06-04docs: Update license date range to include 2015.Damien George
2015-06-04docs: Generate a separate docs build for each port.Daniel Campora
Using Damien's approach where conf.py and topindex.html are shared by all ports.
2015-06-04unix: Allow to cat a script into stdin from the command line.Damien George
See issue #1306.
2015-06-04windows/README: Add notes on running under Wine.Paul Sokolovsky
After enabling line editing support on Windows console, this is no longer trivial.
2015-06-04windows: Implement the mp_hal_xxx functions and enable mp-readlinestijn
2015-06-04py: Implement native multiply operation in viper emitter.Damien George
2015-06-04py: Implement implicit cast to obj for viper load/store index/value.Damien George
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.
2015-06-04cc3200: Do not kick the watchdog inside the idle task.Daniel Campora
2015-06-04cc3200: Close ftp and telnet server sockets if listening fails.Daniel Campora
2015-06-03stmhal: Fix slow SPI DMA transfers by removing wfi from DMA wait loop.Damien George
Addresses issue #1268.
2015-06-03tests: Add test for recursive iternext stack overflow.Damien George
2015-06-03py: Add stack check to mp_iternext, since it can be called recursively.Damien George
Eg, builtin map can map over a map, etc, and call iternext deeply. Addresses issue #1294.
2015-06-03unix: Update .gitignore; now ignores coverage build.Damien George
2015-06-03unix: Prepare upip frozen modules under build/.Paul Sokolovsky
2015-06-03tools/make-frozen.py: Handle trailing slash in argument more reliably.Paul Sokolovsky
2015-06-03tools: Add codestats.sh to compute code statistics such as size, speed.Damien George
2015-06-03cc3200: Add method to configure the servers timeout.Daniel Campora
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.
2015-06-03unix: Uncompress upip tarball to build directory.Paul Sokolovsky
2015-06-02esp8266: Do not call espconn_create in constructor of esp.socket.Paul Sokolovsky
Turns out this is supposed to be called only for UDP connections. Patch by Josef Gajdusek.
2015-06-02cc3200: Fix 'MP_QSTR_sd' undeclared error when building for the LAUNCHXL.Daniel Campora
2015-06-02docs/uctypes: Typo fix.Paul Sokolovsky
2015-06-02docs/uctypes: Fix API description errors.Paul Sokolovsky
"Structure class" is its descriptor, encoded as a dictionary. Then, uctypes.struct() instantiates an actual object, and thus requires memory address.
2015-06-02tools: Add upip 0.5.2 tarball.Paul Sokolovsky
So unix version, which now includes upip as a frozen module, can be built without Internet connection.
2015-06-02unix: Include upip as fronzen modules inside the standard interpreter.Paul Sokolovsky
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.
2015-06-01esp8266: Fix lost chars problem when block-xfering data (e.g., when pasting).Paul Sokolovsky
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.
2015-06-01stmhal: Add support for UART5Dave Hylands
I tested this on my CERB40 board and it seems to be working fine.
2015-05-31frozenmod: Include header with function prototypes.Paul Sokolovsky
2015-05-30py: Wrap qstr defs in quotes to protect from C preprocessor.Damien George
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.
2015-05-30py/parsenum.c: Rename "raise" func to "raise_exc" to avoid name clash.Damien George
"raise" is a common word that was found to exist in a vendor's stdlib.
2015-05-30py: Add further autodetection of endianess in mpconfig.h.Damien George
This patch was needed for gcc 4.4.
2015-05-30py: Get makeqstrdata.py and makeversionhdr.py running under Python 2.6.Damien George
These scripts should run under as wide a range of Python versions as possible.
2015-05-30esp8266: Update to SDK version 1.1.0 (MIT-licensed).Josef Gajdusek
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.
2015-05-30docs: Document esp module for ESP8266.Radomir Dopieralski
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
2015-05-30lib/mp-readline: Allow overriding implementation of cursor functionsstijn
Default implementation uses VT100-style sequences which are not implemented by all terminals out there
2015-05-30lib/mp-readline: Add implementation for deleting a characterstijn
xterm and others use the ESC[~3 sequence when pressing the delete key
2015-05-30unix: Print an extra newline to the output on ctrl-Dstijn
This assures the terminal prints it's prompt on a fresh line instead of appending it to the uPy prompt after exit.
2015-05-30unix: minimal: Don't use readline support.Paul Sokolovsky
After switching to builtin readline support, "minimal" no longer builds, and minimal doesn't really need readline support.
2015-05-30unix: Allow to override default sys.path value.Paul Sokolovsky
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).
2015-05-30tools/make-frozen.py: Open files in binary mode.Paul Sokolovsky
2015-05-30tools/make-frozen.py: Preserve directory hierarchy.Paul Sokolovsky
Currently, frozen packages are not supported, but eventually they should be, so make sure to store complete directory hierarchy.
2015-05-29bootstrap_upip.sh: Allow to install into a path given by argument.Paul Sokolovsky
2015-05-29cc3200: Add period set method to the Timer class.Daniel Campora
2015-05-29cc3200: Fix incorrect type for the wake cause variable.Daniel Campora
2015-05-29cc3200: Clean up WLAN API. Make WLAN.info() an attrtuple.Daniel Campora