diff options
| author | Damien George <damien.p.george@gmail.com> | 2019-06-19 14:02:08 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2019-07-01 17:10:12 +1000 |
| commit | b7da67cdaaf32317cfc9a3940bd58f2aab4976c9 (patch) | |
| tree | c3e6adefdb30d5c4f7b5edd3b263825e4be37358 /py | |
| parent | 378659209778a1bde24e9b15793087023b02bbd9 (diff) | |
lib/utils/sys_stdio_mphal: Add support to poll sys.stdin and sys.stdout.
A port must provide the following function for this to work:
uintptr_t mp_hal_stdio_poll(uintptr_t poll_flags);
Diffstat (limited to 'py')
| -rw-r--r-- | py/mphal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/mphal.h b/py/mphal.h index 92de01d08..66d80705a 100644 --- a/py/mphal.h +++ b/py/mphal.h @@ -34,6 +34,10 @@ #include <mphalport.h> #endif +#ifndef mp_hal_stdio_poll +uintptr_t mp_hal_stdio_poll(uintptr_t poll_flags); +#endif + #ifndef mp_hal_stdin_rx_chr int mp_hal_stdin_rx_chr(void); #endif |
