We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5679fe6 commit 5943a2eCopy full SHA for 5943a2e
1 file changed
docs/develop/porting.rst
@@ -146,6 +146,9 @@ The following is an example of an ``mpconfigport.h`` file:
146
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE)
147
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
148
149
+ // Enable u-modules to be imported with their standard name, like sys.
150
+ #define MICROPY_MODULE_WEAK_LINKS (1)
151
+
152
// Fine control over Python builtins, classes, modules, etc.
153
#define MICROPY_PY_ASYNC_AWAIT (0)
154
#define MICROPY_PY_BUILTINS_SET (0)
@@ -296,7 +299,7 @@ like this:
296
299
mphalport.c \
297
300
...
298
301
- SRC_QSTR += modport.c
302
+ SRC_QSTR += modmyport.c
303
304
If all went correctly then, after rebuilding, you should be able to import the new module:
305
0 commit comments