summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-03-14 11:09:14 +1100
committerDamien George <damien@micropython.org>2024-03-15 12:04:37 +1100
commitbfc3dde2c9cee31c85f838d0e89780378170551d (patch)
treebac18ca7a39494695e57bd4d76277f6d7b4b6be3 /py
parentdd134e4836ceee23234b35279bb120259b350787 (diff)
extmod/modmachine: Add MICROPY_PY_MACHINE_RESET configuration option.
Disabled by default, but enabled on all boards that previously had `MICROPY_PY_MACHINE_BARE_METAL_FUNCS` enabled. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py')
-rw-r--r--py/mpconfig.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 182115ed7..85b9e2c9c 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -1692,6 +1692,11 @@ typedef double mp_float_t;
#define MICROPY_PY_MACHINE (0)
#endif
+// Whether to include: reset, reset_cause
+#ifndef MICROPY_PY_MACHINE_RESET
+#define MICROPY_PY_MACHINE_RESET (0)
+#endif
+
// Whether to include: bitstream
#ifndef MICROPY_PY_MACHINE_BITSTREAM
#define MICROPY_PY_MACHINE_BITSTREAM (0)