Skip to content

Commit

Permalink
examples/embedding-full: Enable uctypes module.
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Walther <cwalther@gmx.ch>
  • Loading branch information
cwalther committed Jun 18, 2023
1 parent 82b8679 commit 66ebdf8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions examples/embedding-full/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ static const char *example_2 =
"print('time.gmtime(736622952) = 2023-05-05T17:29:12Z:', time.gmtime(736622952))\n"
"import math\n"
"help(math)\n"
"import uctypes\n"
"help(uctypes)\n"
"import frozenhello\n"
"help(frozenhello)\n"
"print('frozenhello.hello():', frozenhello.hello())\n"
Expand Down
5 changes: 3 additions & 2 deletions examples/embedding-full/mpconfigport.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@
// Requires MICROPY_EVENT_POLL_HOOK, don't bother as we have no pollable objects.
#define MICROPY_PY_SELECT (0)

// Can be enabled once extmod/moductypes.c is included in the build.
#define MICROPY_PY_UCTYPES (0)
// On by default and works in this configuration, but disable it to avoid a
// linker error if you don't include extmod/moductypes.c in the build.
//#define MICROPY_PY_UCTYPES (0)

// Can be enabled once either shared/runtime/sys_stdio_mphal.c or
// extmod/vfs_posix_file.c is included in the build.
Expand Down

0 comments on commit 66ebdf8

Please sign in to comment.