aboutsummaryrefslogtreecommitdiff
path: root/stmhal/mpconfigport.h
diff options
context:
space:
mode:
authorDamien George2014-04-13 19:00:56 +0100
committerDamien George2014-04-13 19:00:56 +0100
commit86a03044e343433115bbbe37df544fc1305f36d3 (patch)
tree7676a23be4f68b5cf151a64c50c8e10f06f5b6ee /stmhal/mpconfigport.h
parente2a48b66c2a94375d3af00500073e05a5e5fd75a (diff)
stmhal: Add stdin/stdout/stderr objects.
Available via sys.std{in,out,err}. Basic reading and writing supported. Even sys.stdin.readline!
Diffstat (limited to 'stmhal/mpconfigport.h')
-rw-r--r--stmhal/mpconfigport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h
index 6a3182346..d7045c42f 100644
--- a/stmhal/mpconfigport.h
+++ b/stmhal/mpconfigport.h
@@ -19,6 +19,7 @@
*/
#define MICROPY_ENABLE_LFN (1)
#define MICROPY_LFN_CODE_PAGE (437) /* 1=SFN/ANSI 437=LFN/U.S.(OEM) */
+#define MICROPY_MOD_SYS_STDFILES (1)
// extra built in names to add to the global namespace
extern const struct _mp_obj_fun_native_t mp_builtin_help_obj;