| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2016-07-28 | py/objstringio: Implement MP_STREAM_SEEK ioctl and add seek() method. | Paul Sokolovsky | |
| 2016-07-28 | py/objstringio: Add MP_STREAM_FLUSH ioctl and flush() method. | Paul Sokolovsky | |
| No-op for this object. | |||
| 2016-07-28 | unix/file: Use generic stream flush() method. | Paul Sokolovsky | |
| 2016-07-27 | esp8266/modpybuart: Fix UART parity setting. | daniel-k | |
| The configuration bits for the UART register were wrong and the parity couldn't be enabled, because the exist_parity member hasn't been updated. I took this ESP8266 register description (http://esp8266.ru/esp8266-uart-reg/) as reference. Verification has been done with a logic analyzer. | |||
| 2016-07-27 | unix/file: fdfile_ioctl(): Fix argument to check_fd_is_open(). | Paul Sokolovsky | |
| 2016-07-27 | py/stream: Implement generic flush() method, in terms of C-level ioctl. | Paul Sokolovsky | |
| 2016-07-27 | unix/file: ioctl(): Check that file is open before operations. | Paul Sokolovsky | |
| 2016-07-27 | unix/file: Implement MP_STREAM_FLUSH ioctl. | Paul Sokolovsky | |
| 2016-07-26 | tests/run-tests: Make "regex'ed .exp" facility available to device tests. | Paul Sokolovsky | |
| Required to pass bytes_compare3.py (opptional warnings) on devices. | |||
| 2016-07-26 | py/stream: Stream module works with errno's, so should include mperrno.h. | Paul Sokolovsky | |
| 2016-07-26 | unix/mpconfigport.h: Include stdio.h by default. | Paul Sokolovsky | |
| This allows to use printf() in a any source file with unix port, for quick debugging. | |||
| 2016-07-25 | tests/unicode_subscr.py: Detailed test for subscripting unicode strings. | Paul Sokolovsky | |
| 2016-07-25 | py/objstrunicode: str_index_to_ptr: Implement positive indexing properly. | Paul Sokolovsky | |
| Order out-of-bounds check, completion check, and increment in the right way. | |||
| 2016-07-25 | py/objstrunicode: str_index_to_ptr: Should handle bytes too. | Paul Sokolovsky | |
| There's single str_index_to_ptr() function, called for both bytes and unicode objects, so should handle each properly. | |||
| 2016-07-25 | py/stream.h: Remove dated comment of POSIX-specificity of EAGAIN. | Paul Sokolovsky | |
| We have adopted POSIX-compatible error numbers as MicroPython's native. | |||
| 2016-07-25 | py/stream.h: Move mp_stream_write_adaptor() inside ifdef block. | Paul Sokolovsky | |
| 2016-07-24 | tests/extmod/btree1: Close database at the end of test. | Paul Sokolovsky | |
| 2016-07-24 | extmod/modbtree: Check __bt_open() return value for error. | Paul Sokolovsky | |
| 2016-07-23 | esp8266/_boot.py: Decrease GC alloc threshold to quarter of heap size. | Paul Sokolovsky | |
| The idea behind decrease is: bytecode and other static data is also kept on heap, and can easily become half of heap, then setting threshold to half of heap will have null effect - GC will happen on complete heap exhaustion like before. But exactly in such config maintaining heap defragmented is very important, so lower threshold to accommodate that. | |||
| 2016-07-23 | extmod/modwebrepl: Use mp_stream_close() method. | Paul Sokolovsky | |
| 2016-07-23 | examples/http_client*: Be sure to close socket. | Paul Sokolovsky | |
| Otherwise, on bare-metal/RTOS systems can lead to resource leaks. | |||
| 2016-07-23 | extmod/modussl_axtls: Use mp_stream_close() method. | Paul Sokolovsky | |
| 2016-07-23 | esp8266/_boot.py: Set GC alloc threshold to half of heap size. | Paul Sokolovsky | |
| Should keep good chunk of heap unfragmented, if a user application allows that at all. | |||
| 2016-07-23 | esp8266: dupterm_task_init() should be called before running _boot.py, etc. | Paul Sokolovsky | |
| Because they may use dupterm functionality (e.g. WebREPL running on boot). | |||
| 2016-07-22 | examples/embedding: Add README. | Paul Sokolovsky | |
| 2016-07-22 | examples/embedding: Example for embedding MicroPython in an app. | Paul Sokolovsky | |
| 2016-07-22 | wundows/README: Typo fix. | Paul Sokolovsky | |
| 2016-07-22 | mpy-cross: Use binary file translation mode for creating mpy files on windows | stijn | |
| This is a fix for https://github.com/micropython/micropython/issues/2209: by default a file created using open() uses text translation mode so writing \n to it will result in the file having \r\n. This is obviously problematic for binary .mpy files, so provide functions for setting the open mode and use binary mode in mpy-cross' main(). | |||
| 2016-07-22 | lib/utils/stdout_helpers: Move from minimal/uart_extra.c for reuse. | Paul Sokolovsky | |
| 2016-07-22 | tests/bytes_compare: Rework test for bytes <-> str comparison. | Paul Sokolovsky | |
| This may produce a warning, depending on MicroPython configuration. | |||
| 2016-07-22 | esp8266: Enable MICROPY_PY_STR_BYTES_CMP_WARN. | Paul Sokolovsky | |
| 2016-07-22 | unix: Enable MICROPY_PY_STR_BYTES_CMP_WARN. | Paul Sokolovsky | |
| Also, fix a warning text (remove "duplicate" BytesWarning). | |||
| 2016-07-22 | py/mpconfig.h: Fix description for MICROPY_PY_STR_BYTES_CMP_WARN. | Paul Sokolovsky | |
| 2016-07-22 | py/obj: Issue a warning when str and bytes objects are compared. | Paul Sokolovsky | |
| Something like: if foo == "bar": will be always false if foo is b"bar". In CPython, warning is issued if interpreter is started as "python3 -b". In MicroPython, MICROPY_PY_STR_BYTES_CMP_WARN setting controls it. | |||
| 2016-07-21 | py: Fix nlrthumb.c when DEBUG=1 is defined | Dave Hylands | |
| 2016-07-21 | minimal: Disable MICROPY_GC_ALLOC_THRESHOLD. | Paul Sokolovsky | |
| 2016-07-21 | unix: Disable MICROPY_GC_ALLOC_THRESHOLD for minimal build. | Paul Sokolovsky | |
| 2016-07-21 | py/gc: Implement GC running by allocation threshold. | Paul Sokolovsky | |
| Currently, MicroPython runs GC when it could not allocate a block of memory, which happens when heap is exhausted. However, that policy can't work well with "inifinity" heaps, e.g. backed by a virtual memory - there will be a lot of swap thrashing long before VM will be exhausted. Instead, in such cases "allocation threshold" policy is used: a GC is run after some number of allocations have been made. Details vary, for example, number or total amount of allocations can be used, threshold may be self-adjusting based on GC outcome, etc. This change implements a simple variant of such policy for MicroPython. Amount of allocated memory so far is used for threshold, to make it useful to typical finite-size, and small, heaps as used with MicroPython ports. And such GC policy is indeed useful for such types of heaps too, as it allows to better control fragmentation. For example, if a threshold is set to half size of heap, then for an application which usually makes big number of small allocations, that will (try to) keep half of heap memory in a nice defragmented state for an occasional large allocation. For an application which doesn't exhibit such behavior, there won't be any visible effects, except for GC running more frequently, which however may affect performance. To address this, the GC threshold is configurable, and by default is off so far. It's configured with gc.threshold(amount_in_bytes) call (can be queries without an argument). | |||
| 2016-07-21 | lib/utils/pyexec: Use full path to readline.h header, per latest conventions. | Paul Sokolovsky | |
| 2016-07-17 | tests/extmod/machine_pinbase: Skip if machine.PinBase is not available. | Paul Sokolovsky | |
| 2016-07-16 | unix: Cache libaxtls.a in local build dir. | Paul Sokolovsky | |
| Allows to build the library variant for other ports in parallel. | |||
| 2016-07-16 | esp8266: Cache Xtensa-built libaxtls.a in local build dir. | Paul Sokolovsky | |
| Allows to build the library variant for other archs in parallel. | |||
| 2016-07-16 | esp8266/moduos: Add rmdir() function. | Paul Sokolovsky | |
| 2016-07-16 | extmod/vfs_fat: Implement rmdir() method. | Paul Sokolovsky | |
| Shares the code with remove() method due to the same underlying f_unlink() FatFs operation. | |||
| 2016-07-15 | extmod/modussl_axtls: Add dummy setblocking() method. | Paul Sokolovsky | |
| Accepts only value of True. | |||
| 2016-07-14 | tests: Add test for extended arguments to stream .write() method. | Paul Sokolovsky | |
| 2016-07-14 | py/stream: Implement 2- and 3-arg write() method as an extension to CPython. | Paul Sokolovsky | |
| 3-arg form: stream.write(data, offset, length) 2-arg form: stream.write(data, length) These allow efficient buffer writing without incurring extra memory allocation for slicing or creating memoryview() object, what is important for low-memory ports. All arguments must be positional. It might be not so bad idea to standardize on 3-arg form, but 2-arg case would need check and raising an exception anyway then, so instead it was just made to work. | |||
| 2016-07-13 | esp8266: Select axTLS for SSL implementation, following recent refactor. | Paul Sokolovsky | |
| 2016-07-13 | extmod/modussl_axtls: Further changes to allow alternative SSL modules. | Paul Sokolovsky | |
| Make variable MICROPY_SSL_AXTLS=1 should be defined to activate modussl_axtls and link with -laxtls. | |||
| 2016-07-13 | extmod/modussl: Rename to modussl_axtls.c, to allow impl using other SSL libs. | Paul Sokolovsky | |
