summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/modpyb.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/modpyb.c')
-rw-r--r--stmhal/modpyb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/stmhal/modpyb.c b/stmhal/modpyb.c
index 432dc859c1..45bd8b1e0f 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());
}