summaryrefslogtreecommitdiffstatshomepage
path: root/qemu-arm/mpconfigport.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-13 21:24:21 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-13 21:24:28 +1100
commita7a2344c9df8ed8cba48e6947d15653450f953ba (patch)
tree5572e15c8546c82410fe29e9b23fa1f804e02849 /qemu-arm/mpconfigport.h
parent643876fb77d45540e5b82f450a7907f39ec95c6a (diff)
downloadmicropython-a7a2344c9df8ed8cba48e6947d15653450f953ba.tar.gz
micropython-a7a2344c9df8ed8cba48e6947d15653450f953ba.zip
qemu-arm: Add basic uos module with generic VFS capabilities.
Diffstat (limited to 'qemu-arm/mpconfigport.h')
-rw-r--r--qemu-arm/mpconfigport.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/qemu-arm/mpconfigport.h b/qemu-arm/mpconfigport.h
index 3452266f4b..f642c64287 100644
--- a/qemu-arm/mpconfigport.h
+++ b/qemu-arm/mpconfigport.h
@@ -35,6 +35,7 @@
#define MICROPY_PY_UHASHLIB (1)
#define MICROPY_PY_MACHINE (1)
#define MICROPY_USE_INTERNAL_PRINTF (0)
+#define MICROPY_VFS (1)
// type definitions for the specific machine
@@ -58,7 +59,11 @@ typedef long mp_off_t;
#define MICROPY_PORT_BUILTINS \
{ MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj },
+// extra built-in modules to add to the list of known ones
+extern const struct _mp_obj_module_t mp_module_uos;
+
#define MICROPY_PORT_BUILTIN_MODULES \
+ { MP_ROM_QSTR(MP_QSTR_uos), MP_ROM_PTR(&mp_module_uos) }, \
{ MP_ROM_QSTR(MP_QSTR_umachine), MP_ROM_PTR(&mp_module_machine) }, \
// We need to provide a declaration/definition of alloca()