summaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-05-13 23:49:21 +0100
committerDamien George <damien.p.george@gmail.com>2015-05-24 14:31:33 +0100
commit3c4b5d42817944438c16fe6f1c70447ffc751110 (patch)
tree7a8c50e63ffda480a91a86245bc6aba02c5b0587 /py/mpconfig.h
parent968b7dd173d58d917c18dfa7706087db2abcfa6c (diff)
stmhal: Implement sys.std{in,out,err}.buffer, for raw byte mode.
It's configurable and only enabled for stmhal port.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 560fdce9c..5065e3682 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -594,6 +594,11 @@ typedef double mp_float_t;
#define MICROPY_PY_SYS_STDFILES (0)
#endif
+// Whether to provide sys.{stdin,stdout,stderr}.buffer object
+// This is implemented per-port
+#ifndef MICROPY_PY_SYS_STDIO_BUFFER
+#define MICROPY_PY_SYS_STDIO_BUFFER (0)
+#endif
// Extended modules