diff options
| author | Damien George <damien@micropython.org> | 2022-10-06 11:14:58 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-01-20 22:28:50 +1100 |
| commit | 4f3780a156e1ba3f6981ab3a90be655a718f88f5 (patch) | |
| tree | 8a65be84c5d2189bdbd9ae79e7d8e846ad36b054 /examples/embedding/mpconfigport.h | |
| parent | a8a1ad13916aa74fca30ad23061a5552935bf097 (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.h | 16 |
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) |
