Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd01a981

Browse files
committed
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>
1 parent9c8c219 commitd01a981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎py/mpconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ typedef double mp_float_t;
14691469

14701470
// Whether to provide "io.IOBase" class to support user streams
14711471
#ifndefMICROPY_PY_IO_IOBASE
1472-
#defineMICROPY_PY_IO_IOBASE (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES)
1472+
#defineMICROPY_PY_IO_IOBASE (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_CORE_FEATURES)
14731473
#endif
14741474

14751475
// Whether to provide "io.BytesIO" class

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp