diff options
| author | Damien George <damien.p.george@gmail.com> | 2015-02-13 15:04:53 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2015-02-13 15:04:53 +0000 |
| commit | 0b32e50365b6e36474e183a7240ccfc8fa56830a (patch) | |
| tree | 101cf35f6844c50672af4f15b5866e226bcb47d9 /stmhal/printf.c | |
| parent | c385a639e6316cba4ff0e7a859325807857d8f00 (diff) | |
stmhal: Make pybstdio usable by other ports, and use it.
Now all ports can use pybstdio.c to provide sys.stdin/stdout/stderr, so
long as they implement mp_hal_stdin_* and mp_hal_stdout_* functions.
Diffstat (limited to 'stmhal/printf.c')
| -rw-r--r-- | stmhal/printf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/printf.c b/stmhal/printf.c index f7a4f1038..7af4f659d 100644 --- a/stmhal/printf.c +++ b/stmhal/printf.c @@ -30,14 +30,14 @@ #include "py/obj.h" #include "py/pfenv.h" -#include "pybstdio.h" +#include MICROPY_HAL_H #if MICROPY_PY_BUILTINS_FLOAT #include "py/formatfloat.h" #endif STATIC void stdout_print_strn(void *dummy_env, const char *str, mp_uint_t len) { - stdout_tx_strn_cooked(str, len); + mp_hal_stdout_tx_strn_cooked(str, len); } STATIC const pfenv_t pfenv_stdout = {0, stdout_print_strn}; |
