summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
...
| * py: Add very simple but correct hashing for float and complex numbers.Damien George2017-04-04
| | | | | | | | | | | | | | | | | | | | Hashing of float and complex numbers that are exact (real) integers should return the same integer hash value as hashing the corresponding integer value. Eg hash(1), hash(1.0) and hash(1+0j) should all be the same (this is how Python is specified: if x==y then hash(x)==hash(y)). This patch implements the simplest way of doing float/complex hashing by just converting the value to int and returning that value.
| * docs/library/btree: Add btree module docs.Paul Sokolovsky2017-04-04
| |
| * zephyr/prj_base.conf: Add config for net_buf logging.Paul Sokolovsky2017-04-03
| | | | | | | | Disabled by default.
| * tests/run-tests: Introduce generic "minimal" target.Paul Sokolovsky2017-04-03
| | | | | | | | Used e.g. by Zephyr port.
| * esp8266: Remove unused entry in port root pointers.Damien George2017-04-03
| |
| * tests/micropython/heapalloc_iter: Improve skippability.Paul Sokolovsky2017-04-03
| |
| * tests/float/byte*_construct: Skip on missing array module.Paul Sokolovsky2017-04-03
| |
| * tests/extmod/vfs_fat_fileio*: Improve skippability.Paul Sokolovsky2017-04-03
| | | | | | | | Should be skipped on missing uso, uerrno modules.
| * run-tests: Add feature check for "const" keyword and skip related tests.Paul Sokolovsky2017-04-02
| |
| * tests: vfs_fat_fileio.py is too big to be parsed in 16K heap, split in 2.Paul Sokolovsky2017-04-02
| | | | | | | | This restores ability to run testsuite with 16K heap.
| * py/objstr: Use MICROPY_FULL_CHECKS for range checking when constructing bytes.Paul Sokolovsky2017-04-02
| | | | | | | | | | | | | | Split this setting from MICROPY_CPYTHON_COMPAT. The idea is to be able to keep MICROPY_CPYTHON_COMPAT disabled, but still pass more of regression testsuite. In particular, this fixes last failing test in basics/ for Zephyr port.
| * tests/run-tests: Be sure to close Pyboard object on completion.Paul Sokolovsky2017-04-02
| | | | | | | | So underlying device was properly closed too.
| * tools/pyboard: Tighten up Pyboard object closure on errors.Paul Sokolovsky2017-04-02
| | | | | | | | Some "device" implementations may be sensitive to this.
| * zephyr/modusocket: Implement recv() for TCP sockets.Paul Sokolovsky2017-04-02
| | | | | | | | | | Short read approach is taken - at most, the remaining data in the current fragment will be returned.
| * tests/basics: Add tests for list and bytearray growing using themselves.Damien George2017-04-02
| |
| * py/obj.h: Make sequence grow more efficient and support overlapping.Damien George2017-04-02
| | | | | | | | | | | | The first memmove now copies less bytes in some cases (because len_adj <= slice_len), and the memcpy is replaced with memmove to support the possibility that dest and slice regions are overlapping.
| * zephyr/modusocket: Implement recv() for UDP sockets.Paul Sokolovsky2017-04-01
| | | | | | | | | | | | | | The foundation of recv() support is per-socket queue of incoming packets, implemented using Zephyr FIFO object. This patch implements just recv() for UDP, because TCP recv() requires much more fine-grained control of network fragments and handling other issues, like EOF condition, etc.
| * all: Move BYTES_PER_WORD definition from ports to py/mpconfig.hDamien George2017-04-01
| | | | | | | | | | It can still be overwritten by a port in mpconfigport.h but for almost all cases one can use the provided default.
| * zephyr/modusocket: Implement send().Paul Sokolovsky2017-03-31
| |
| * zephyr/modusocket: Implement bind() and connect().Paul Sokolovsky2017-03-31
| |
| * all: Use full path name when including mp-readline/timeutils/netutils.Damien George2017-03-31
| | | | | | | | | | | | | | This follows the pattern of how all other headers are now included, and makes it explicit where the header file comes from. This patch also removes -I options from Makefile's that specify the mp-readline/timeutils/ netutils directories, which are no longer needed.
| * unix: Convert mp_uint_t to size_t in alloc.c.Pavol Rusnak2017-03-31
| |
| * stmhal/i2c: Clean the cache so that I2C DMA works on F7 MCUs.Damien George2017-03-31
| |
| * stmhal: Move L4/F7 I2C timing constants from mpconfigboard.h to i2c.c.Damien George2017-03-31
| | | | | | | | | | | | | | | | Such constants are MCU specific so shouldn't be specified in the board config file (else it leads to too much duplication of code). This patch also adds I2C timing values for the F767/F769 for 100k, 400k and 1MHz I2C bus frequencies.
| * zephyr: Integrate modusocket into build.Paul Sokolovsky2017-03-31
| |
| * zephyr/modusocket: Initial version of usocket module for Zephyr.Paul Sokolovsky2017-03-31
| | | | | | | | So far, socket creation and closure is implemented.
| * zephyr: Fix NLR segfault in minimal build.Paul Sokolovsky2017-03-30
| | | | | | | | | | Requires inclusion of zephyr.h to properly detect that we're building for Zephyr.
| * zephyr/Makefile: Add workaround (fix?) for broken builds for DTS targets.Paul Sokolovsky2017-03-30
| |
| * py/objzip: Convert mp_uint_t to size_t.Damien George2017-03-30
| |
| * stmhal/dma: Don't include SDMMC2 struct if SDMMC2 is not available.Damien George2017-03-30
| | | | | | | | Not all F7 MCUs have SDMMC2.
| * stmhal/boards: Remove F769 alt function table, it's same as for F767.Damien George2017-03-30
| |
| * stmhal/boards/STM32F769DISC: Fix user switch pin, and document stlink.Damien George2017-03-30
| |
| * stmhal/boards/STM32F769DISC: Get SD card working by using SDMMC2.Damien George2017-03-30
| |
| * stmhal/boards: Update F76x alternate function table to add SDMMC2.Damien George2017-03-30
| |
| * stmhal/sdcard: Add support for SDMMC2 on F7 MCUs.Damien George2017-03-30
| | | | | | | | | | | | By default the SDIO (F4) or SDMMC1 (L4, F7) is used as the SD card peripheral, but if a board config defines MICROPY_HW_SDMMC2_CK and other pins then the SD card driver will use SDMMC2.
| * stmhal: Support SDMMC alternate functions in pin generation.Damien George2017-03-30
| |
| * zephyr/Makefile: Rework to use modern, official build integration.Paul Sokolovsky2017-03-30
| | | | | | | | | | | | | | | | Build happens in 3 stages: 1. Zephyr config header and make vars are generated from prj.conf. 2. libmicropython is built using them. 3. Zephyr is built and final link happens.
| * modutimeq: Add peektime() function (provisional).Jan Pochyla2017-03-29
| | | | | | | | | | | | | | | | | | | | | | Allows to get event time for a head item in the queue. The usecase if waiting for the next event *OR* I/O completion. I/O completion may happen before event triggers, and then wait should continue for the remaining event time (or I/O completion may schedule another earlier event altogether). The new function has a strongly provisional status - it may be converted to e.g. peek() function returning all of the event fields, not just time.
| * cc3200/mods/pybi2c: Raise OSError if readfrom_mem fails to write addr.Damien George2017-03-29
| |
| * stmhal/spi: Increase SPI transfer timeout, proportional to num bytes.Damien George2017-03-29
| | | | | | | | | | | | | | With the existing timeout of 100ms the transfer would end prematurely if the baudrate was low and the number of bytes to send was high. This patch fixes the problem by making the timeout proportional to the number of bytes that are being transferred.
| * cc3200: Update for changes to mp_obj_str_get_data.Damien George2017-03-29
| |
| * esp8266: Update for changes to mp_obj_str_get_data.Damien George2017-03-29
| |
| * stmhal: Update for changes to mp_obj_str_get_data.Damien George2017-03-29
| |
| * lib/netutils: Update for changes to mp_obj_str_get_data.Damien George2017-03-29
| |
| * extmod: Update for changes to mp_obj_str_get_data.Damien George2017-03-29
| |
| * py: Change mp_uint_t to size_t for mp_obj_str_get_data len arg.Damien George2017-03-29
| |
| * stmhal: Update to use size_t for tuple/list accessors.Damien George2017-03-29
| |
| * esp8266: Update to use size_t for tuple/list accessors.Damien George2017-03-29
| |
| * cc3200: Update to use size_t for tuple/list accessors.Damien George2017-03-29
| |
| * unix: Convert mp_uint_t to size_t for use of mp_obj_list_get.Damien George2017-03-29
| |