summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-05-07 13:49:12 +1000
committerDamien George <damien@micropython.org>2025-05-09 12:43:27 +1000
commitd01a981a9b924ccb8b25b8d13621c3bba3d04bb4 (patch)
treedc5b9ce2c65a00371f8588f64d128506e2f82fa6
parent9c8c219f8af4128822dc525cc7d934533bd4675a (diff)
downloadmicropython-d01a981a9b924ccb8b25b8d13621c3bba3d04bb4.tar.gz
micropython-d01a981a9b924ccb8b25b8d13621c3bba3d04bb4.zip
py/mpconfig: Enable io.IOBase at core feature level.
IOBase is quite an important building block of other parts of the system, such as `mpremote mount` and running .mpy and native tests. This feature costs +244 bytes of firmware size on ARM Thumb2 architectures, which is worth the cost for the extra features it enables. The change here means that `io.IOBase` is now enabled on all nrf boards, (previously it was only nRF52840 and nRF9160) and also B_L072Z_LRWAN1 (there is no change to other ports or boards). Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--py/mpconfig.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index d06932a77b..9001b8983b 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -1469,7 +1469,7 @@ typedef double mp_float_t;
// Whether to provide "io.IOBase" class to support user streams
#ifndef MICROPY_PY_IO_IOBASE
-#define MICROPY_PY_IO_IOBASE (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES)
+#define MICROPY_PY_IO_IOBASE (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_CORE_FEATURES)
#endif
// Whether to provide "io.BytesIO" class