From 0b32e50365b6e36474e183a7240ccfc8fa56830a Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 13 Feb 2015 15:04:53 +0000 Subject: 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. --- cc3200/misc/FreeRTOSHooks.c | 1 - cc3200/misc/mperror.c | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'cc3200/misc') diff --git a/cc3200/misc/FreeRTOSHooks.c b/cc3200/misc/FreeRTOSHooks.c index 85dc2f373..4fd5b02ad 100644 --- a/cc3200/misc/FreeRTOSHooks.c +++ b/cc3200/misc/FreeRTOSHooks.c @@ -35,7 +35,6 @@ #include "obj.h" #include "inc/hw_memmap.h" #include "pybuart.h" -#include "pybstdio.h" #include "osi.h" diff --git a/cc3200/misc/mperror.c b/cc3200/misc/mperror.c index d85881340..12fd3d8ad 100644 --- a/cc3200/misc/mperror.c +++ b/cc3200/misc/mperror.c @@ -37,7 +37,6 @@ #include "obj.h" #include "inc/hw_memmap.h" #include "pybuart.h" -#include "pybstdio.h" #include "utils.h" @@ -45,9 +44,9 @@ void NORETURN __fatal_error(const char *msg) { if (msg != NULL) { // wait for 20ms UtilsDelay(UTILS_DELAY_US_TO_COUNT(20000)); - stdout_tx_str("\r\nFATAL ERROR:"); - stdout_tx_str(msg); - stdout_tx_str("\r\n"); + mp_hal_stdout_tx_str("\r\nFATAL ERROR:"); + mp_hal_stdout_tx_str(msg); + mp_hal_stdout_tx_str("\r\n"); } for ( ;; ) {__WFI();} } -- cgit v1.2.3