aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2015-05-29cc3200: Rename pyb.reset() to pyb.hard_reset() and add pyb.unique_id().Daniel Campora
2015-05-28esp8266: Add a bunch of miscellaneous methodsJosef Gajdusek
2015-05-28esp8266: Add pyb.ADC classJosef Gajdusek
2015-05-28esp8266: Enable setting CPU frequency to 160MHzJosef Gajdusek
2015-05-28tests: Add special tests to test mp_printf function to improve coverage.Damien George
2015-05-28tests: Add some tests for printing floats to improve coverage.Damien George
2015-05-28py: Remove unnecessary extra handling of padding of nan/inf.Damien George
C's printf will pad nan/inf differently to CPython. Our implementation originally conformed to C, now it conforms to CPython's way. Tests for this are also added in this patch.
2015-05-28py: Reduce size of mp_printf by eliminating unnecessary code.Damien George
Saves around 120 bytes on Thumb2 archs.
2015-05-28cc3200: Remove WIPY-SD variant, and make the WiPy the default board.Daniel Campora
2015-05-28cc3200: Rename Pin.get_config() to Pin.info().Daniel Campora
2015-05-28cc3200: Make small changes in WLAN to improve the API.Daniel Campora
2015-05-28tests: Add tests to create valid and invalid UART, I2C, SPI, CAN busses.Damien George
2015-05-28stmhal: Fix off-by-one error when checking for valid I2C and SPI bus.Damien George
2015-05-28ACKNOWLEDGEMENTS: Add 1 backer name to the file.Damien George
2015-05-27tools: Allow pyboard constructor to take a baudrate parameter.Dave Hylands
This allows pyboard.py to be used over a UART interface rather than just over a USB serial interface.
2015-05-27stmhal: Allow to name SPI busses, and give them names for pyboard.Damien George