summaryrefslogtreecommitdiff
path: root/examples/embedding/mpconfigport.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-10-06 11:14:58 +1100
committerDamien George <damien@micropython.org>2023-01-20 22:28:50 +1100
commit4f3780a156e1ba3f6981ab3a90be655a718f88f5 (patch)
tree8a65be84c5d2189bdbd9ae79e7d8e846ad36b054 /examples/embedding/mpconfigport.h
parenta8a1ad13916aa74fca30ad23061a5552935bf097 (diff)
examples/embedding: Rework example to use ports/embed.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'examples/embedding/mpconfigport.h')
-rw-r--r--examples/embedding/mpconfigport.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/examples/embedding/mpconfigport.h b/examples/embedding/mpconfigport.h
index 89c180b2a..ed34a5d76 100644
--- a/examples/embedding/mpconfigport.h
+++ b/examples/embedding/mpconfigport.h
@@ -1 +1,15 @@
-#include "mpconfigport_minimal.h"
+/* This file is part of the MicroPython project, http://micropython.org/
+ * The MIT License (MIT)
+ * Copyright (c) 2022-2023 Damien P. George
+ */
+
+// Include common MicroPython embed configuration.
+#include <port/mpconfigport_common.h>
+
+// Use the minimal starting configuration (disables all optional features).
+#define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_MINIMUM)
+
+// MicroPython configuration.
+#define MICROPY_ENABLE_COMPILER (1)
+#define MICROPY_ENABLE_GC (1)
+#define MICROPY_PY_GC (1)