| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2015-10-14 | unix/modjni: call_method: Check for Java exception after method return. | Paul Sokolovsky | |
| 2015-10-13 | tests: Add more tests for viper 16/32-bit load/store, and ellipsis. | Damien George | |
| 2015-10-13 | py/qstr: Fix calc of qstr memory usage, due to new qstr chunk allocation. | Damien George | |
| 2015-10-13 | docs: Fix formatting of DAC code examples. | Damien George | |
| 2015-10-13 | stmhal: Allow to set bits resolution for DAC; 8 is default, can have 12. | Damien George | |
| This patch allows to configure the DAC resolution in the constructor and in the init function, eg: dac = DAC(1, bits=12). The default resolution is 8 bits for backwards compatibility. The bits sets the maximum value accepted by write and write_timed methods, being 2**bits - 1. When using write_timed with 12-bit resolution, the input buffer is treated as an unsigned half-word array, typecode 'H'. See PR #1130 for discussion. | |||
| 2015-10-13 | py: Implement ptr32 load and store in viper emitter. | Damien George | |
| 2015-10-13 | unix/modtermios: tcsetattr: If 0 passed for "when" param, treat as TCSANOW. | Paul Sokolovsky | |
| As we dn't export constants for TCSANOW, etc., zero makes a good "don't care" param, and now it will work also under Android Bionic and any other libc. | |||
| 2015-10-12 | py: Add support to call __init__ from a builtin module on first import. | Damien George | |
| 2015-10-12 | py: Allow to to build MicroPython as a static library. | Paul Sokolovsky | |
| The whole current port gets slurped into a static lib named "libmicropython.a". Maybe that's not ideal, but at least something to start with. | |||
| 2015-10-12 | py/parse: Make parser error handling cleaner, less spaghetti-like. | Damien George | |
| 2015-10-12 | py: Move constant folding from compiler to parser. | Damien George | |
| It makes much more sense to do constant folding in the parser while the parse tree is being built. This eliminates the need to create parse nodes that will just be folded away. The code is slightly simpler and a bit smaller as well. Constant folding now has a configuration option, MICROPY_COMP_CONST_FOLDING, which is enabled by default. | |||
| 2015-10-12 | py/objarray: Allow to create array of void pointers, as extension to CPython. | Paul Sokolovsky | |
| Using 'P' format specifier (matches struct module). This is another shortcut for FFI, just as previously introduced "array of objects" ('O'). | |||
| 2015-10-12 | unix: Add exit and paste-mode hints to shell startup banner. | Damien George | |
| Thanks to @nyov for the initial patch. | |||
| 2015-10-12 | README.md: Document "Ctrl+D" shell exit. | nyov | |
| 2015-10-12 | Rename "Micro Python" to "MicroPython" in REPL, help, readme's and misc. | Damien George | |
| 2015-10-11 | stmhal: Enable REPL auto indent; document paste mode in help(). | Damien George | |
| 2015-10-11 | repl: Add paste mode to friendly REPL, entered via CTRL-E. | Damien George | |
| Use CTRL-E to enter paste mode. Prompt starts with "===" and accepts all characters verbatim, echoing them back. Only control characters are CTRL-C which cancels the input and returns to normal REPL, and CTRL-D which ends the input and executes it. The input is executed as though it were a file. The input is not added to the prompt history. | |||
| 2015-10-11 | py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming. | Paul Sokolovsky | |
| 2015-10-11 | py/makeqstrdata.py: Catch and report case of empty input file. | Paul Sokolovsky | |
| The usual cause would be that a cross-compiler for a port is not in PATH. | |||
| 2015-10-10 | unix/modsocket: Fix usage of pointers to locals outside scope | Anmol Sarma | |
| 2015-10-10 | drivers/sdcard: Allow up to 5 retries to initialise SD card. | Damien George | |
| Apparently some cards need more than 2 retries. See issue #1482. | |||
| 2015-10-10 | docs: Describe properly how MCU can be woken from pyb.standby() state. | Damien George | |
| 2015-10-10 | unix/modjni: py2jvalue: Support bool and None values. | Paul Sokolovsky | |
| 2015-10-09 | tests: In pyb RTC tests, check wakeup register values. | Peter Hinch | |
| 2015-10-09 | stmhal: Fix USB CDC-only mode under Windows. | Dave Hylands | |
| This fix adds PIDs 9801 and 9802 to the pybcdc.inf file. When in CDC only mode, it presents itself as a Communcations device rather than as a composite device. Presenting as a composite device with only the CDC interface seems to confuse windows. To test and make sure that the correct pybcdc.inf was being used, I used USBDeview from http://www.nirsoft.net/utils/usb_devices_view.html to uninstall any old pyboard drivers (Use Control-F and search for pyboard). I found running USBDeview as administrator worked best. Installing the driver in CDC+MSC mode first is recommended (since the pybcdc.inf file in on the internal flash drive). Then when you switch modes everything seems to work properly. I used https://github.com/dhylands/upy-examples/blob/master/boot_switch.py to easily switch the pyboard between the various USB modes for testing. | |||
| 2015-10-08 | py/parse: Factor logic when creating parse node from and-rule. | Damien George | |
| 2015-10-09 | unix/modjni: jvalue2py() is currently not used. | Paul Sokolovsky | |
| Not remove so far, may be needed later. | |||
| 2015-10-08 | unix/modjni: Allow to access fields of objects. | Paul Sokolovsky | |
| 2015-10-08 | py: Don't generate unnecessary parse nodes for assignment or kwargs. | Damien George | |
| This patch eliminates the need for a nested parse node for assignments and keyword arguments. It saves a little bit of RAM when parsing. | |||
| 2015-10-08 | tests: Add test for evaluation order of dictionary key/value pairs. | Damien George | |
| In Python 3.4 the value is evaluated before the key. In Python 3.5 it's key then value. | |||
| 2015-10-08 | py/emitnative: Raise ViperTypeError for unsupported unary ops. | Damien George | |
| 2015-10-08 | py/compile: Fix edge case when constant-folding negation of integer. | Damien George | |
| Also adds tests specifically for testing constant folding. | |||
| 2015-10-08 | stmhal: Fix RTC.wakeup so it correctly calculates WUT for large periods. | Damien George | |
| Thanks to Peter Hinch. Addresses issue #1488. | |||
| 2015-10-07 | unix/modjni: After Call*Method(), Java exception should always be checked. | Paul Sokolovsky | |
| OpenJDK seemed to return NULL in case of exception, but Dalvik returns arbitrary value, so skip such "optimizations". | |||
| 2015-10-06 | stmhal: In RTC.wakeup, fix setting of wucksel to get correct period. | Damien George | |
| Thanks to Peter Hinch. See issue #1490. | |||
| 2015-10-06 | docs: Update esp8266 documentation to match the code. | Radomir Dopieralski | |
| * Move the esp.status() to network module. * Describe the wifi.isconnected() method. * Describe esp.mac(), esp.wifi_mode(), esp.phy_mode(), esp.sleep_type(), esp.deepsleep(), and esp.flash_id() functions. | |||
| 2015-10-06 | modussl: SSL socket wrapper module based on axTLS. | Paul Sokolovsky | |
| 2015-10-05 | tests/basics/builtin_range: PEP8 fixes. | Paul Sokolovsky | |
| 2015-10-04 | lib/axtls: Update submodule, adds .gitignore . | Paul Sokolovsky | |
| 2015-10-04 | unix: Add support for building axtls dependency lib. | Paul Sokolovsky | |
| 2015-10-04 | lib/axtls: Add axtls git submodule, dependency of modussl. | Paul Sokolovsky | |
| From https://github.com/pfalcon/axtls , branch micropython. | |||
| 2015-10-04 | unix/modjni: jclass.__str__/__repr__: Return Java .toString() value. | Paul Sokolovsky | |
| 2015-10-03 | py: Allow to enable inline assembler without native emitter. | Damien George | |
| 2015-10-03 | unix/modjni: jobject.__str__/__repr__: Return Java .toString() value. | Paul Sokolovsky | |
| 2015-10-02 | tests: Allow tests to pass against CPython 3.5. | Damien George | |
| All breaking changes going from 3.4 to 3.5 are contained in basics/python34.py. | |||
| 2015-10-02 | unix/modjni: Convert Java's IndexOutOfBoundsException to Python's IndexError. | Paul Sokolovsky | |
| 2015-10-02 | minimal: Tune parser chunk allocation policy for very small heap. | Damien George | |
| 2015-10-02 | py: Allocate parse nodes in chunks to reduce fragmentation and RAM use. | Damien George | |
| With this patch parse nodes are allocated sequentially in chunks. This reduces fragmentation of the heap and prevents waste at the end of individually allocated parse nodes. Saves roughly 20% of RAM during parse stage. | |||
| 2015-10-01 | py: Catch all cases of integer (big and small) division by zero. | Damien George | |
| 2015-10-01 | py/mpz: Fix bignum anding of large negative with smaller positive int. | Damien George | |
