extmod/modmachine: Add MICROPY_PY_MACHINE_MEMX configuration option.

Enabled by default.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2024-03-14 11:01:33 +11:00
parent 23ccbcf230
commit dd134e4836
3 changed files with 9 additions and 2 deletions

View File

@@ -1702,6 +1702,11 @@ typedef double mp_float_t;
#define MICROPY_PY_MACHINE_PULSE (0)
#endif
// Whether to provide the "machine.mem8/16/32" objects
#ifndef MICROPY_PY_MACHINE_MEMX
#define MICROPY_PY_MACHINE_MEMX (MICROPY_PY_MACHINE)
#endif
// Whether to provide the "machine.Signal" class
#ifndef MICROPY_PY_MACHINE_SIGNAL
#define MICROPY_PY_MACHINE_SIGNAL (MICROPY_PY_MACHINE)