diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-03-29 14:20:05 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-03-29 14:20:05 +0000 |
| commit | c9fd6645b0a1af73f3854ddc2745596070985a18 (patch) | |
| tree | 24440350973d243c8f5522d9e1c7862b14b54767 /stmhal/input.c | |
| parent | c689c194710f4acf4cabd193795b57e5a101420e (diff) | |
stmhal: Factor out stdio and readline to separate files.
Adds readline_init() to clear readline history on soft reset. Addresses
issue #387.
Diffstat (limited to 'stmhal/input.c')
| -rw-r--r-- | stmhal/input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stmhal/input.c b/stmhal/input.c index f53018a42..d704c2cf7 100644 --- a/stmhal/input.c +++ b/stmhal/input.c @@ -3,10 +3,9 @@ #include "mpconfig.h" #include "qstr.h" #include "obj.h" +#include "readline.h" #include "usb.h" -extern int readline(vstr_t *line, const char *prompt); - STATIC mp_obj_t mp_builtin_input(uint n_args, const mp_obj_t *args) { if (n_args == 1) { mp_obj_print(args[0], PRINT_REPR); |
