summaryrefslogtreecommitdiff
path: root/stm/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-25 14:18:18 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-25 14:18:18 +0000
commitcaac542b235003f7b79d7aa23eaebe8f2c772508 (patch)
treef70b42312f091b10c9e3d871fe1a70d573e7cba4 /stm/main.c
parent1dfde891e3e26543da6d42215da6a23c32b0a8bc (diff)
Proper support for registering builtin modules in ROM.
Comes with some refactoring of code and renaming of files. All modules are now named mod*.[ch].
Diffstat (limited to 'stm/main.c')
-rw-r--r--stm/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stm/main.c b/stm/main.c
index 6ad311127..44be4d348 100644
--- a/stm/main.c
+++ b/stm/main.c
@@ -24,6 +24,7 @@
#include "lexerfatfs.h"
#include "parse.h"
#include "obj.h"
+#include "objmodule.h"
#include "parsehelper.h"
#include "compile.h"
#include "runtime0.h"
@@ -273,7 +274,7 @@ soft_reset:
rt_store_name(MP_QSTR_open, rt_make_function_n(2, pyb_io_open));
// load the pyb module
- mp_obj_module_register(MP_QSTR_pyb, (mp_obj_t)&pyb_module);
+ mp_module_register(MP_QSTR_pyb, (mp_obj_t)&pyb_module);
// check if user switch held (initiates reset of filesystem)
bool reset_filesystem = false;