Skip to content

Commit

Permalink
docs/develop/porting.rst: Fix build and import problems in the example.
Browse files Browse the repository at this point in the history
  • Loading branch information
rimbi authored and dpgeorge committed Feb 4, 2022
1 parent 5679fe6 commit 5943a2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/develop/porting.rst
Expand Up @@ -146,6 +146,9 @@ The following is an example of an ``mpconfigport.h`` file:
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE)
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
// Enable u-modules to be imported with their standard name, like sys.
#define MICROPY_MODULE_WEAK_LINKS (1)
// Fine control over Python builtins, classes, modules, etc.
#define MICROPY_PY_ASYNC_AWAIT (0)
#define MICROPY_PY_BUILTINS_SET (0)
Expand Down Expand Up @@ -296,7 +299,7 @@ like this:
mphalport.c \
...
SRC_QSTR += modport.c
SRC_QSTR += modmyport.c
If all went correctly then, after rebuilding, you should be able to import the new module:

Expand Down

0 comments on commit 5943a2e

Please sign in to comment.