aboutsummaryrefslogtreecommitdiff
path: root/cc3200/misc
diff options
context:
space:
mode:
authorDamien George2015-02-13 15:04:53 +0000
committerDamien George2015-02-13 15:04:53 +0000
commit0b32e50365b6e36474e183a7240ccfc8fa56830a (patch)
tree101cf35f6844c50672af4f15b5866e226bcb47d9 /cc3200/misc
parentc385a639e6316cba4ff0e7a859325807857d8f00 (diff)
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')
-rw-r--r--cc3200/misc/FreeRTOSHooks.c1
-rw-r--r--cc3200/misc/mperror.c7
2 files changed, 3 insertions, 5 deletions
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();}
}