From e03158d2b92e9e110e88a2e8e29418a2f6bfc4f0 Mon Sep 17 00:00:00 2001 From: Christian Walther Date: Fri, 5 May 2023 23:17:32 +0200 Subject: [PATCH] examples/embedding-full: Enable uctypes module. Signed-off-by: Christian Walther --- examples/embedding-full/main.c | 2 ++ examples/embedding-full/mpconfigport.h | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/embedding-full/main.c b/examples/embedding-full/main.c index c4c1e040ad..0b1d2adf64 100644 --- a/examples/embedding-full/main.c +++ b/examples/embedding-full/main.c @@ -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" diff --git a/examples/embedding-full/mpconfigport.h b/examples/embedding-full/mpconfigport.h index 6120bd70a8..adbaa48e07 100644 --- a/examples/embedding-full/mpconfigport.h +++ b/examples/embedding-full/mpconfigport.h @@ -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.