extmod/modmachine: Add MICROPY_PY_MACHINE_SIGNAL configuration option.

Enabled by default.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2024-03-14 10:58:41 +11:00
parent c231c89651
commit 23ccbcf230
3 changed files with 11 additions and 5 deletions

View File

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