summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-07-06 20:31:16 +1000
committerDamien George <damien@micropython.org>2025-07-08 11:15:11 +1000
commit688161830717ad34fe8b499455c2fcafee662c62 (patch)
tree6b8eb9165685105887f159060f103ee2898622d1
parentec65cac971263975b32ec9fc73db512fdeb21ad7 (diff)
zephyr/mpconfigport: Enable sys.maxsize.
Costs +48 bytes. Useful to introspect the target. Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--ports/zephyr/mpconfigport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/zephyr/mpconfigport.h b/ports/zephyr/mpconfigport.h
index bf85ef6ea..576618e36 100644
--- a/ports/zephyr/mpconfigport.h
+++ b/ports/zephyr/mpconfigport.h
@@ -100,6 +100,7 @@
#define MICROPY_PY_TIME_INCLUDEFILE "ports/zephyr/modtime.c"
#define MICROPY_PY_ZEPHYR (1)
#define MICROPY_PY_ZSENSOR (1)
+#define MICROPY_PY_SYS_MAXSIZE (1)
#define MICROPY_PY_SYS_STDFILES (1)
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
@@ -150,6 +151,8 @@ typedef long mp_off_t;
#define MP_STATE_PORT MP_STATE_VM
+#define MP_SSIZE_MAX (0x7fffffff)
+
// extra built in names to add to the global namespace
#define MICROPY_PORT_BUILTINS \
{ MP_ROM_QSTR(MP_QSTR_open), MP_ROM_PTR(&mp_builtin_open_obj) },