summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/misc/mperror.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-02-13 15:04:53 +0000
committerDamien George <damien.p.george@gmail.com>2015-02-13 15:04:53 +0000
commit0b32e50365b6e36474e183a7240ccfc8fa56830a (patch)
tree101cf35f6844c50672af4f15b5866e226bcb47d9 /cc3200/misc/mperror.c
parentc385a639e6316cba4ff0e7a859325807857d8f00 (diff)
downloadmicropython-0b32e50365b6e36474e183a7240ccfc8fa56830a.tar.gz
micropython-0b32e50365b6e36474e183a7240ccfc8fa56830a.zip
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.
Diffstat (limited to 'cc3200/misc/mperror.c')
-rw-r--r--cc3200/misc/mperror.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/cc3200/misc/mperror.c b/cc3200/misc/mperror.c
index d858813406..12fd3d8ad9 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();}
}