diff options
| author | Damien George | 2014-03-29 14:20:05 +0000 |
|---|---|---|
| committer | Damien George | 2014-03-29 14:20:05 +0000 |
| commit | c9fd6645b0a1af73f3854ddc2745596070985a18 (patch) | |
| tree | 24440350973d243c8f5522d9e1c7862b14b54767 /stmhal/modpyb.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/modpyb.c')
| -rw-r--r-- | stmhal/modpyb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stmhal/modpyb.c b/stmhal/modpyb.c index 432dc859c..45bd8b1e0 100644 --- a/stmhal/modpyb.c +++ b/stmhal/modpyb.c @@ -11,6 +11,7 @@ #include "gc.h" #include "gccollect.h" #include "systick.h" +#include "pybstdio.h" #include "pyexec.h" #include "led.h" #include "gpio.h" @@ -202,8 +203,6 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(pyb_hid_send_report_obj, pyb_hid_send_report); MP_DEFINE_CONST_FUN_OBJ_2(pyb_I2C_obj, pyb_I2C); // TODO put this in i2c.c #endif -extern int stdin_rx_chr(void); - STATIC mp_obj_t pyb_input(void ) { return mp_obj_new_int(stdin_rx_chr()); } |
