summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* tools/mpy-tool.py: Support freezing of complex numbers.Damien George2016-09-03
|
* extmod/modframebuf: Fix fill and scroll when height not divisible by 8.Radomir Dopieralski2016-09-02
| | | | | | | There was a bug in `framebuf1_fill` function, that makes it leave a few lines unfilled at the bottom if the height is not divisible by 8. A similar bug is fixed in the scroll method.
* tools/mpy-tool.py: Compute the hash value for str/bytes objects.Damien George2016-09-02
| | | | This makes it more efficient at runtime to hash str/bytes objects.
* tools/mpy-tool.py: Store qstr config values in global config object.Damien George2016-09-02
| | | | | Makes it easier to access them without passing around another dict of the config values.
* tests/unix/extra_coverage: Add test for str/bytes with invalid hash.Damien George2016-09-02
|
* py: If str/bytes hash is 0 then explicitly compute it.Damien George2016-09-02
|
* py/makeqstrdata.py: Compute the qstr hash from bytes, not characters.Damien George2016-09-02
|
* py/mpprint: Fail an assertion with unsupported format specifiers.Delio Brignoli2016-09-01
| | | | | | Arguments of an unknown type cannot be skipped and continuing to parse a format string after encountering an unknown format specifier leads to undefined behaviour. This patch helps to find use of unsupported formats.
* drivers/sdcard: Port the SDCard driver to new machine API.Radomir Dopieralski2016-09-01
| | | | With backwards compatibility for pyboard.
* stmhal/spi: Support new machine SPI methods in legacy SPI object.Damien George2016-09-01
|
* stmhal/spi: Factor out SPI transfer code to a single function.Damien George2016-09-01
|
* esp8266/modpybhspi: Simplify HSPI driver by using 1 function for xfers.Damien George2016-09-01
|
* esp8266/modpybspi: Use generic SPI helper methods to implement SPI.Damien George2016-09-01
|
* extmod: Add machine_spi with generic SPI C-protocol and helper methods.Damien George2016-09-01
| | | | | | | The idea is that all ports can use these helper methods and only need to provide initialisation of the SPI bus, as well as a single transfer function. The coding pattern follows the stream protocol and helper methods.
* unix,stmhal,esp8266: When find'ing frozen files don't use extra slash.Damien George2016-08-31
| | | | | | | | This extra forward slash for the starting-point directory is unnecessary and leads to additional slashes on Max OS X which mean that the frozen files cannot be imported. Fixes #2374.
* py/mkrules.mk: Allow to override name of libmicropython.aPaul Sokolovsky2016-08-30
| | | | | Or alternatively, refer to an exact library file, not just phony target "lib".
* lib/utils/pyexec: qstr_pool_info() requires size_t* parameters.Paul Sokolovsky2016-08-30
|
* docs/esp8266/quickref: Add internal links to docs for some modules.Damien George2016-08-29
|
* docs/pyboard/quickref: Add section on "delay and timing" for utime mod.Damien George2016-08-29
| | | | And remove reference to deprecated pyb.delay() and pyb.millis().
* docs/pyboard/quickref: Add links to pinouts for other pyboard variants.Damien George2016-08-29
|
* .gitignore: Add *.pyc, because Python 2 doesn't use __pycache__.Krzysztof Blazewicz2016-08-29
|
* stmhal: Update boot.py files to use VCP instead of CDC.Philip Potter2016-08-29
|
* docs/library: Add reference for pyb.usb_mode and pyb.USB_HID.Philip Potter2016-08-29
|
* docs/pyboard: Update USB mouse tutorial to use pyb.USB_HID().Philip Potter2016-08-29
|
* docs/pyboard: Update USB mouse tutorial to use VCP instead of CDC.Philip Potter2016-08-29
|
* docs/esp8266: Update quickref and tutorial for OneWire/DS18X20 driver.Damien George2016-08-29
|
* esp8266/modules/ds18x20.py: Add support for DS18S20 devices.Damien George2016-08-29
|
* esp8266/modules/onewire: Change onewire.read() to onewire.readinto().Damien George2016-08-29
| | | | | This allows 1-wire drivers (eg DS18X20) to perform in-place operations and hence do less memory allocations.
* esp8266/modules: Split onewire.py into OneWire and DS18X20 driver.Damien George2016-08-29
| | | | | | | | | | The OneWire class is now in its own onewire.py module, and the temperature sensor class is in its own ds18x20.py module. The latter is renamed to DS18X20 to reflect the fact that it will support both the "S" and "B" variants of the device. These files are moved to the modules/ subdirectory to take advantage of frozen bytecode.
* docs/esp8266/quickref: Fix and update the SPI docsRadomir Dopieralski2016-08-28
| | | | | Use the `SPI` factory function in the examples, and use proper baud rate of 80 000 000.
* esp8266/modmachinewdt: Implement machine.WDT class.Paul Sokolovsky2016-08-28
|
* tests/run-tests: Disable thread_gc1.py test on Travis.Damien George2016-08-27
| | | | It has reliability issues (cause unknown at this time).
* py/bc.h: Rename _mp_code_state to _mp_code_state_t.Damien George2016-08-27
| | | | This rename was missed in the previous patch.
* py: Rename struct mp_code_state to mp_code_state_t.Damien George2016-08-27
| | | | Also at _t to mp_exc_stack pre-declaration in struct typedef.
* extmod/modframebuf: Fix pixel accessor to return a 1-bit result.Damien George2016-08-27
|
* tests/extmod/vfs_fat_ramdisk: Add tests for VFS.umount()Radomir Dopieralski2016-08-26
| | | | Try to un-mount a file system and re-mount it again.
* py/emitglue: Use more compact mp_raise_ValueError function.Damien George2016-08-26
|
* py/modstruct: Use more compact mp_raise_ValueError function.Damien George2016-08-26
| | | | Saves a few bytes of code size.
* tests/cmdline: Add test for -O option to check optimisation value.Damien George2016-08-26
|
* py/compile: Don't compile assert statements when optimisations enabled.Damien George2016-08-26
| | | | As per CPython.
* stmhal/modusocket: set self->nic to MP_OBJ_NULL after socket closeKrzysztof Blazewicz2016-08-26
| | | | | | | | This patch makes second and next calls to <socket>.close() a no-op. It prevents GC from closing the underlying resource after user already used <socket>.close() explicitly. fixes #2355
* py/gc: Add MICROPY_GC_CONSERVATIVE_CLEAR option to always zero memory.Damien George2016-08-26
| | | | | | | | | There can be stray pointers in memory blocks that are not properly zero'd after allocation. This patch adds a new config option to always zero all allocated memory (via gc_alloc and gc_realloc) and hence help to eliminate stray pointers. See issue #2195.
* esp8266/modous: Add os.umount method to unmount a filesystem.Radomir Dopieralski2016-08-26
| | | | | | | | This is an object-oriented approach, where uos is only a proxy for the methods on the vfs object. Some internals had to be exposed (the STATIC keyword removed) for this to work. Fixes #2338.
* lib/berkeley-db-1.xx: Update to upstream, fixes MacOSX build.Paul Sokolovsky2016-08-25
|
* esp8266/hspi: Enable duplex operation of hardware SPIRadomir Dopieralski2016-08-25
| | | | | | Without this, spi.read(1, 0xff) would use 16 clock cycles, first to send 0xff and then to receive one byte, as visible with a logic analyzer.
* lib/utils/stdout_helpers: Fix function signature to match py/mphal.h.Paul Sokolovsky2016-08-25
|
* stmhal: Update pin print to print new constantsDave Hylands2016-08-25
| | | | | | This updates the print function for machine.Pin to print out the new constants from the Hardware API defintion rather than the legacy definitions.
* esp8266/modpybrtc: Use 64-bit arithmetic when computing alarm expiry.Damien George2016-08-25
|
* tests/run-tests: Disable thread/stress_heap.py when running on Travis.Damien George2016-08-25
| | | | | It has reliability issues and sometimes fails on Travis (reason currently unknown).
* stmhal: Make ADC channel 16 available on L4 MCUs.Matt Brejza2016-08-25
|