diff options
Diffstat (limited to 'minimal')
-rw-r--r-- | minimal/main.c | 3 | ||||
-rw-r--r-- | minimal/mpconfigport.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/minimal/main.c b/minimal/main.c index 1d600d5847..29b5af1af7 100644 --- a/minimal/main.c +++ b/minimal/main.c @@ -6,7 +6,6 @@ #include "py/compile.h" #include "py/runtime.h" #include "py/repl.h" -#include "py/pfenv.h" #include "py/gc.h" #include "pyexec.h" @@ -26,7 +25,7 @@ void do_str(const char *src) { nlr_pop(); } else { // uncaught exception - mp_obj_print_exception(printf_wrapper, NULL, (mp_obj_t)nlr.ret_val); + mp_obj_print_exception(&mp_plat_print, (mp_obj_t)nlr.ret_val); } } diff --git a/minimal/mpconfigport.h b/minimal/mpconfigport.h index 02ad5bd627..b08bdf8b7d 100644 --- a/minimal/mpconfigport.h +++ b/minimal/mpconfigport.h @@ -60,6 +60,9 @@ typedef void *machine_ptr_t; // must be of pointer size typedef const void *machine_const_ptr_t; // must be of pointer size typedef long mp_off_t; +void mp_hal_stdout_tx_strn_cooked(const char *str, mp_uint_t len); +#define MP_PLAT_PRINT_STRN(str, len) mp_hal_stdout_tx_strn_cooked(str, len) + // extra built in names to add to the global namespace extern const struct _mp_obj_fun_builtin_t mp_builtin_open_obj; #define MICROPY_PORT_BUILTINS \ |