- 02 Apr, 2016 13 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Needed for frozen scripts, and for future growth of binary.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
This is helpful when running on deeply embedded targets, but may be "security risk". Caveat emptor.
-
Paul Sokolovsky authored
Allows to re-run code if it was imported as a module (e.g., on bare-metal ports).
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Allows to re-run code if it was imported as a module (e.g., on bare-metal ports).
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
And with "buffering" arg introduced, it's non possible to make it non-kwonly.
-
Paul Sokolovsky authored
It's ignored (unbuffered, raw I/O is used), but least makes it compatible with CPython.
-
- 01 Apr, 2016 11 commits
-
-
Damien George authored
Starting with a divisor of 10, pystone_lowmem gives a score of 256.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Stephen Kyle authored
-
Damien George authored
-
Damien George authored
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.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
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.
-
Paul Sokolovsky authored
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.
-
Pavol Rusnak authored
-
Paul Sokolovsky authored
-
- 31 Mar, 2016 2 commits
-
-
Damien George authored
Also, term_obj can be NULL if socket enables REPL duplication signalling before os.dupterm is called, so it should be checked.
-
Paul Sokolovsky authored
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.
-
- 30 Mar, 2016 6 commits
-
-
Paul Sokolovsky authored
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().
-
Paul Sokolovsky authored
Reference it from root pointers section.
-
Paul Sokolovsky authored
Features inline get/put operations for the highest performance. Locking is not part of implementation, operation should be wrapped with locking externally as needed.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
That is: aps = if0.scan() TODO: make sure that returned list has tuple with values in "standard" order (whatever that standard is).
-
- 29 Mar, 2016 8 commits
-
-
Damien George authored
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.
-
Damien George authored
Includes extensive test cases to catch hopefully all cases where buffer might overflow.
-
Damien George authored
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.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
That's definitely helpful for debugging.
-
Paul Sokolovsky authored
Helpful when debugging dupterm support (because otherwise all output is spooled to dupterm too). To use: mp_printf(&mp_debug_print, "...");
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-