summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* tests/basics: Enable tests for list slice getting with 3rd arg.Damien George2016-11-26
| | | | Also add a test to check case when 3rd arg is 0.
* tests/basics: Change dict_fromkeys test so it doesn't use generators.Damien George2016-11-26
| | | | And then it can run with the native emitter.
* py/compile: Remove comment about TODO for short circuiting for if-stmt.Damien George2016-11-26
| | | | | Short circuiting is handled correctly by c_if_cond, and constants within short-circuit expressions are optimised by the parser.
* tests/basics: Add tests for if-expressions.Damien George2016-11-26
|
* tests/basics: Add test for dict.fromkeys where arg is a generator.Damien George2016-11-26
| | | | | Improves coverage because it tests the case where the arg does not have a __len__ slot.
* stmhal/machine_i2c: Provide HW implementation of I2C peripherals for F4.Damien George2016-11-25
| | | | | With this patch machine.I2C() uses HW I2C peripheral blocks on F4 MCUs. Software I2C is used for other MCUs.
* stmhal/i2c: Expose the pyb_i2c_obj_t struct and some relevant functions.Damien George2016-11-25
| | | | So they can be used by other parts of the code.
* stmhal/i2c: Add support for I2C4 hardware block on F7 MCUs.Damien George2016-11-25
|
* stmhal: Add beginnings of port-specific machine.I2C implementation.Damien George2016-11-24
| | | | | | | This allows one to construct an I2C object using ids that are specific to the stmhal port, eg machine.I2C('X'). Right now the implementation of I2C uses software I2C but the idea is to just change the C-level I2C protocol functions to hardware implementations later on.
* extmod/machine_i2c: Add hook to constructor to call port-specific code.Damien George2016-11-24
| | | | | If MICROPY_PY_MACHINE_I2C_MAKE_NEW is defined then it is called when an I2C object is constructed with an id which is not -1.
* extmod/machine_i2c: Expose soft I2C obj and readfrom/writeto funcs.Damien George2016-11-24
| | | | For external use by ports if needed.
* extmod/machine_i2c: Remove trivial function wrappers.Damien George2016-11-23
|
* extmod/machine_i2c: Add 'stop' argument to i2c readfrom/writeto meths.Damien George2016-11-23
|
* extmod/machine_i2c: Make i2c.write[to] methods return num of ACKs recvd.Damien George2016-11-23
|
* extmod/machine_i2c: Add 'nack' argument to i2c.readinto.Damien George2016-11-23
|
* extmod/machine_i2c: Make C-level functions return -errno on I2C error.Damien George2016-11-23
|
* extmod/machine_i2c: Remove unneeded i2c_write_mem/i2c_read_mem funcs.Damien George2016-11-23
|
* extmod/machine_i2c: Rewrite mem xfer funcs in terms of C-level protocol.Damien George2016-11-23
|
* extmod/machine_i2c: Rewrite i2c.scan in terms of C-level protocol.Damien George2016-11-23
|
* extmod/machine_i2c: Add argument to C funcs to control stop generation.Damien George2016-11-23
|
* extmod/machine_i2c: Add a C-level I2C-protocol, refactoring soft I2C.Damien George2016-11-23
|
* docs/library/machine.I2C: Refine definitions of I2C methods.Damien George2016-11-23
|
* stmhal/i2c: Remove use of legacy I2C_NOSTRETCH_DISABLED option.Damien George2016-11-22
| | | | In the new HAL this is renamed to I2C_NOSTRETCH_DISABLE.
* tests/basics: Improve user class coverage.Rami Ali2016-11-22
|
* tests/extmod: Improve ujson coverage.Rami Ali2016-11-22
|
* py/objtype: Implement __call__ handling for an instance w/o heap alloc.Paul Sokolovsky2016-11-22
| | | | By refactoring and reusing code from objboundmeth.
* stmhal: Updates to get F411 MCUs compiling with latest ST HAL.Damien George2016-11-21
|
* tests/micropython: Move alloc-less traceback test to separate test file.Damien George2016-11-21
| | | | | The native emitter doesn't provide proper traceback info so this test should not be run in that case.
* tests/micropython: Add test for creating traceback without allocation.Damien George2016-11-21
|
* stmhal/i2c: Use the HAL's I2C IRQ handler for F7 and L4 MCUs.Damien George2016-11-21
| | | | | The custom IRQ handler only works for F4 MCUs, which have the SR1 register.
* unix/Makefile: Update freedos target for change of USELECT config name.Damien George2016-11-21
|
* extmod/moduselect: Fix comment describing endif.Damien George2016-11-21
|
* extmod/machine_mem: Typo fix in comment.Paul Sokolovsky2016-11-21
|
* cc3200: Update for moduselect moved to extmod/.Paul Sokolovsky2016-11-21
|
* unix: Rename define for unix moduselect to MICROPY_PY_USELECT_POSIX.Paul Sokolovsky2016-11-21
| | | | | To not conflict with recently made available globally baremetal moduselect.
* stmhal/moduselect: Move to extmod/ for reuse by other ports.Paul Sokolovsky2016-11-21
|
* examples/accellog.py: Change 1: to /sd/, and update comment about FS.Damien George2016-11-18
|
* examples/hwapi: Add hwconfig for console tracing of LED operations.Paul Sokolovsky2016-11-18
|
* extmod/machine_i2c: Release SDA on bus errorRadomir Dopieralski2016-11-17
|
* extmod/machine_i2c: Raise an error when clock stretching times outRadomir Dopieralski2016-11-17
|
* extmod/machine_i2c: Make the clock stretching timeout configurableRadomir Dopieralski2016-11-17
|
* examples/hwapi: Add example for machine.time_pulse_us().Paul Sokolovsky2016-11-17
|
* stmhal: Update HALCOMMITS due to change to hal.Krzysztof Blazewicz2016-11-16
|
* stmhal/make-stmconst.py: Restore Python 2 compatibility.Damien George2016-11-16
|
* stmhal: Update HALCOMMITS due to change to hal.Damien George2016-11-16
|
* stmhal/make-stmconst.py: Add support for files with invalid utf8 bytes.Damien George2016-11-16
|
* stmhal/mphalport.h: use single GPIOx->BSRR registerKrzysztof Blazewicz2016-11-16
|
* stmhal/hal: do not include <stdio.h> in HAL headersKrzysztof Blazewicz2016-11-16
| | | | | | | | stdio.h was included in all HAL files only to provide definition of NULL symbol "stdio.h" includes "types.h" which contains some conflicting definitions with "drivers/cc3000/inc/socket.h"
* stmhal/i2c: provide custom IRQ handlersKrzysztof Blazewicz2016-11-16
| | | | | Use custom handlers providing minimal required functionality because those provided by ST increase code size by almost 2 KiB.
* stmhal/can: clear FIFO flags in IRQ handlerKrzysztof Blazewicz2016-11-16
| | | | | | | | HAL Driver before v1.4.2 had a bug which caused clearing all pending flags in MSR, TSR, RF0R and RF1R instead of only the requested one. This is why micropython got away without explicitly clearing flags in IRQ handler.