summaryrefslogtreecommitdiffstatshomepage
path: root/unix/unix_mphal.c
Commit message (Collapse)AuthorAge
* unix/unix_mphal: Implement mp_hal_ticks_us().Paul Sokolovsky2016-05-21
| | | | Similar to existing mp_hal_ticks_ms().
* 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.
* unix/unix_mphal: Be sure to wrap dupterm code with MICROPY_PY_OS_DUPTERM.Paul Sokolovsky2016-01-01
|
* unix/unix_mphal: Handle exceptions in call to dupterm's .read().Paul Sokolovsky2016-01-01
|
* extmod/moduos_dupterm: Make mp_uos_dupterm_tx_strn() function reusable.Paul Sokolovsky2016-01-01
| | | | Function to actually spool output terminal data to dupterm object.
* unix: Implement uos.dupterm(). Conditional on MICROPY_PY_OS_DUPTERM.Paul Sokolovsky2015-12-28
|
* unix/unix_mphal: Raise KeyboardInterrupt straight from signal handler.Paul Sokolovsky2015-12-23
| | | | | | | | POSIX doesn't guarantee something like that to work, but it works on any system with careful signal implementation. Roughly, the requirement is that signal handler is executed in the context of the process, its main thread, etc. This is true for Linux. Also tested to work without issues on MacOSX.
* unix/unix_mphal: Just consistently set sigaction.sa_flags to 0.Paul Sokolovsky2015-12-18
|
* unix/unix_mphal: Properly initialize struct sigaction.Paul Sokolovsky2015-12-17
| | | | | | This solves long-standing non-deterministic bug, which manifested itself on x86 32-bit (at least of reported cases) - segfault on Ctrl+C (i.e. SIGINT).
* unix/unix_mphal: Use size_t instead of mp_uint_t in stdout_tx_strn decls.Damien George2015-11-27
|
* unix/unix_mphal: Typo fix in comment.Paul Sokolovsky2015-11-03
|
* all: Add py/mphal.h and use it in all ports.Damien George2015-10-31
| | | | | | py/mphal.h contains declarations for generic mp_hal_XXX functions, such as stdio and delay/ticks, which ports should provide definitions for. A port will also provide mphalport.h with further HAL declarations.
* unix, stmhal: Introduce mp_hal_delay_ms(), mp_hal_ticks_ms().Paul Sokolovsky2015-10-27
| | | | | | | | These MPHAL functions are intended to replace previously used HAL_Delay(), HAL_GetTick() to provide better naming and MPHAL separation (they are fully equivalent otherwise). Also, refactor extmod/modlwip to use them.
* unix/unix_mphal: Implement HAL_Delay() and HAL_GetTick().Paul Sokolovsky2015-10-19
|
* unix: Use MICROPY_HAL_H macro for header inclusion.Alex March2015-09-19
| | | | | Follow the same format as other ports using the macro to include the HAL header.
* unix: Add option to use uPy readline, and enable by default.Damien George2015-05-27
| | | | | | This gets uPy readline working with unix port, with tab completion and history. GNU readline is still supported, configure using MICROPY_USE_READLINE variable.
* unix: Factor out stdio and ctrl-C code to unix_mphal.c file.Damien George2015-05-27