summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* examples/http_server.py: Refactor/simplify for Python 3.5.Paul Sokolovsky2016-04-02
|
* examples/http_client.py: Introduce main() function.Paul Sokolovsky2016-04-02
| | | | | Allows to re-run code if it was imported as a module (e.g., on bare-metal ports).
* examples/http_client.py: Improve CPython compatibility in stream mode.Paul Sokolovsky2016-04-02
|
* unix/file: "encoding" arg to open() isn't kw-only.Paul Sokolovsky2016-04-02
| | | | | And with "buffering" arg introduced, it's non possible to make it non-kwonly.
* unix/file: Parse "buffering" argument of open() builtin.Paul Sokolovsky2016-04-02
| | | | | It's ignored (unbuffered, raw I/O is used), but least makes it compatible with CPython.
* esp8266: Use VM_HOOK to call ets_loop_iter within the VM.Damien George2016-04-02
| | | | Starting with a divisor of 10, pystone_lowmem gives a score of 256.
* example/http_client.py: Remove unused code.Paul Sokolovsky2016-04-01
|
* examples: http_client.py, http_server.py aren't just unix, move to network/.Paul Sokolovsky2016-04-01
|
* py/map: Prevent map resize failure from destroying map.Stephen Kyle2016-04-01
|
* esp8266/uart: Get ctrl-C working now that event-based REPL is disabled.Damien George2016-04-01
|
* esp8266/uart: Comment out old, unused rx buffering code.Damien George2016-04-01
| | | | | | | This was originally used for non-event based REPL processing. Then it was unused when event-based processing was activated. But now that event based is disabled, and non-event based is back, there has been new ring buffer code to process the chars.
* esp8266: Switch to non event-driven REPL to support paste mode.Paul Sokolovsky2016-04-01
|
* esp8266: Support dedicated REPL loop (aka pull-style).Paul Sokolovsky2016-04-01
| | | | | | | | Event-driven loop (push-style) is still supported and default (controlled by MICROPY_REPL_EVENT_DRIVEN setting, as expected). Dedicated loop worked even without adding ets_loop_iter(), though that needs to be revisited later.
* esp8266: Disallow recursive calls to REPL.Paul Sokolovsky2016-04-01
| | | | | | | | | Before this change, if REPL blocked executing some code, it was possible to still input new statememts and excuting them, all leading to weird, and portentially dangerous interaction. TODO: Current implementation may have issues processing input accumulated while REPL was blocked.
* unix: implement -i option (inspect - start REPL after script is finished)Pavol Rusnak2016-04-01
|
* esp8266: Move PHY mode constants from modesp to modnetwork.Paul Sokolovsky2016-04-01
|
* esp8266: Reset term_obj on reboot.Damien George2016-03-31
| | | | | Also, term_obj can be NULL if socket enables REPL duplication signalling before os.dupterm is called, so it should be checked.
* esp8266: Implement input part of dupterm handling.Paul Sokolovsky2016-03-31
| | | | | | | | The idea is following: underlying interrupt-driven or push-style data source signals that more data is available for dupterm processing via call to mp_hal_signal_dupterm_input(). This triggers a task which pumps data between actual dupterm object (which may perform additional processing on data from low-level data source) and input ring buffer.
* esp8266: Switch back to accumulating input data via ring buffer.Paul Sokolovsky2016-03-30
| | | | | | | | But now it's generic ring buffer implemented via ringbuf.h, and is intended for any type of input, including dupterm's, not just UART. The general process work like this: an interrupt-driven input source puts data into input_buf, and then signals new data available via call to mp_hal_signal_input().
* esp8266: Fix issue when current repl line was garbage-collected.Paul Sokolovsky2016-03-30
| | | | Reference it from root pointers section.
* py/ringbuf.h: Add reusable ring buffer class.Paul Sokolovsky2016-03-30
| | | | | | Features inline get/put operations for the highest performance. Locking is not part of implementation, operation should be wrapped with locking externally as needed.
* docs: network: esp8266: .scan() is now synchronous and returns result list.Paul Sokolovsky2016-03-30
|
* docs: network: esp8266: status is WLAN object method.Paul Sokolovsky2016-03-30
|
* esp8266: Support synchronous wifi scanning.Damien George2016-03-30
| | | | | | | That is: aps = if0.scan() TODO: make sure that returned list has tuple with values in "standard" order (whatever that standard is).
* py/parsenum: Use pow function to apply exponent to decimal number.Damien George2016-03-29
| | | | | | Pow is already a dependency when compiling with floats, so may as well use it here to reduce code size and speed up the conversion for most cases.
* py/formatfloat: Fix further cases of buffer overflow in formatting.Damien George2016-03-29
| | | | | Includes extensive test cases to catch hopefully all cases where buffer might overflow.
* py/formatfloat: Fix case of float format where leading digit was "10".Damien George2016-03-29
| | | | | | | | | | When taking the logarithm of the float to determine the exponent, there are some edge cases that finish the log loop too large. Eg for an input value of 1e32-epsilon, this is actually less than 1e32 from the log-loop table and finishes as 10.0e31 when it should be 1.0e32. It is thus rendered as :e32 (: comes after 9 in ascii). There was the same problem with numbers less than 1.
* esp8266: Reduce heap size for now to avoid random segfaults on WiFi connect.Paul Sokolovsky2016-03-29
|
* esp8266: Let esp8266 "os" messages go to standard (REPL) UART.Paul Sokolovsky2016-03-29
| | | | That's definitely helpful for debugging.
* esp8266/esp_mphal: Add support for debug UART-only output.Paul Sokolovsky2016-03-29
| | | | | | | | | Helpful when debugging dupterm support (because otherwise all output is spooled to dupterm too). To use: mp_printf(&mp_debug_print, "...");
* esp8266: Enable uos.dupterm() method.Paul Sokolovsky2016-03-29
|
* esp8266: Add basic support for duplicating REPL output.Paul Sokolovsky2016-03-29
|
* esp8266: Implement os.urandom function.Damien George2016-03-29
| | | | Uses what is suspected to be a hardware random number generator.
* esp8266: Allow to build without FatFs support again.Paul Sokolovsky2016-03-28
|
* esp8266: Support importing modules from filesystem.Paul Sokolovsky2016-03-28
|
* docs: Correct pin interrupt example code for the WiPy.danicampora2016-03-28
|
* esp8266: Zero out fs_user_mount state on (soft) reset.Damien George2016-03-28
| | | | | Otherwise device stays mounted on soft reset and leads to corruption (since block device object is now gone).
* esp8266/moduos: Add os.remove(), proxying to VFS object.Paul Sokolovsky2016-03-28
|
* esp8266/moduos: Factor out VFS method proxy helper.Paul Sokolovsky2016-03-28
|
* esp8266/moduos: Add listdir() proxy for MP_STATE_PORT(fs_user_mount)[0].Paul Sokolovsky2016-03-28
| | | | | I.e. os.listdir(...) will redirect to MP_STATE_PORT(fs_user_mount)[0].listdir(...).
* esp8266/moduos: Use mp_rom_map_elem_t for static const dictionary.Damien George2016-03-28
|
* esp8266: deploy: Use --flash_size=8m option to esptool.py.Paul Sokolovsky2016-03-28
| | | | | Most esp8266 modules have at least 1MB (8Mbit) of flash. If not set, vendor functions allow to access only first 512K.
* esp8266/esp8266.ld: Put FatFs to FlashROM.Paul Sokolovsky2016-03-27
|
* esp8266: Enable FatFs support.Paul Sokolovsky2016-03-27
|
* esp8266/README: Update for the current status of the port.Paul Sokolovsky2016-03-27
|
* esp8266/modesp: flash_read(): Accept buffer to read to as a second argument.Paul Sokolovsky2016-03-27
|
* esp8266/modesp: flash_write(): Writes in multiples of 4 bytes.Paul Sokolovsky2016-03-27
|
* esp8266: Set up UART handling task soon into init process.Paul Sokolovsky2016-03-27
| | | | | Otherwise, events may be posted to non-initialized task, which leads to segfaults.
* extmod/vfs_fat_diskio: Actually support sectors != 512 with Python blockdevs.Paul Sokolovsky2016-03-27
|
* unix/unix_mphal: Hack to make uos.dupterm() actually work.Paul Sokolovsky2016-03-27
| | | | | | | See https://github.com/micropython/micropython/issues/1736 for the list of complications. This workaround instead of duplicating REPL to another stream, switches to it, because read(STDIN) we use otherwise is blocking call, so it and custom REPL stream can't be used together.