diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2023-07-21 13:39:36 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-07-24 23:53:20 +1000 |
commit | 975a687447f5fed27e08001d5760259ec523631c (patch) | |
tree | c6a23d144cb8358c16ac0962c7a4e17497ce7a6c /py | |
parent | 14374850ce54f0e1d446355738b31d4b0ba7aabe (diff) |
py/mpconfig: Add MICROPY_PY_PLATFORM, enabled at extra features level.
Previously this was explicitly enabled on esp32/stm32/renesas/mimxrt/samd,
but didn't get a default feature level because it wasn't in py/mpconfig.h.
With this commit it's now enabled at the "extra features" level, which adds
rp2, unix-standard, windows, esp8266, webassembly, and some nrf boards.
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'py')
-rw-r--r-- | py/mpconfig.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index e6f1531ce..c617f573b 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -1726,6 +1726,11 @@ typedef double mp_float_t; #define MICROPY_PY_ONEWIRE (0) #endif +// Whether to provide the "platform" module +#ifndef MICROPY_PY_PLATFORM +#define MICROPY_PY_PLATFORM (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES) +#endif + /*****************************************************************************/ /* Hooks for a port to add builtins */ |