aboutsummaryrefslogtreecommitdiff
path: root/stmhal/mpconfigport.h
diff options
context:
space:
mode:
authorDamien George2014-06-11 15:41:14 +0100
committerDamien George2014-06-11 15:41:14 +0100
commitb7572ad11b31d4e357139e877a0815ebd6ae515e (patch)
tree393ba374c13c2e0f13cbcc3b3a4221ed1d4543d5 /stmhal/mpconfigport.h
parent58cbb4d661ee40af5ef2b6a6a7f15b1b2ee5b4e5 (diff)
stmhal, file: Implement a,x,+ open modes, seek and tell.
Also now returns correct POSIX errno when an IO operation fails. Addresses issues #516 and #676.
Diffstat (limited to 'stmhal/mpconfigport.h')
-rw-r--r--stmhal/mpconfigport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h
index 5b99ffca5..28cd90bb0 100644
--- a/stmhal/mpconfigport.h
+++ b/stmhal/mpconfigport.h
@@ -48,6 +48,8 @@
#define MICROPY_PY_SYS_EXIT (1)
#define MICROPY_PY_SYS_STDFILES (1)
#define MICROPY_PY_CMATH (1)
+#define MICROPY_PY_IO (1)
+#define MICROPY_PY_IO_FILEIO (1)
// extra built in names to add to the global namespace
extern const struct _mp_obj_fun_native_t mp_builtin_help_obj;